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