2018年3月6日星期二

Google Map cid to placeid or get address detail by cid

I searched many posts and couldn't find a way to do it. But I found a hidden api in google map get place detail api. From Google Map Place API document: https://developers.google.com/places/web-service/details The API https://maps.googleapis.com/maps/api/place/details/json?... needs placeid as required parameter. But I found it can use cid to get place detail and place_id. Usage: https://maps.googleapis.com/maps/api/place/details/json?cid=YOUR_CID&key=YOUR_KEY That's it. It returns a result contains formatted address, place_id, name of the address and GPS coordinater. Hope it could help you!:) Happy coding. TAG: Google Map cid to placeid or get address detail by cid

1 条评论:

  1. https://www.google.com/maps/place/Sephora/@48.9022299,2.3773578,15z/data=!4m2!3m1!1s0x0:0x8968298bd04fc395?sa=X&ved=2ahUKEwiKwJPNvMXhAhUt8-AKHdjRBGsQ_BIwCnoECBAQCA

    回复删除