android - How do I create a URL to query Google places with the CID -


i have app searches google places api , returns places based on categories choose.

the result json object contains lot of data each place. want share place via email other people. extract information want object specified place using following code:

jsonobject geometry = (jsonobject) point.get("geometry"); jsonobject location = (jsonobject) geometry.get("location"); result.setlatitude((double) location.get("lat")); result.setlongitude((double) location.get("lng")); result.seticon(point.getstring("icon"));             result.setname(point.getstring("name")); result.setvicinity(point.getstring("vicinity")); result.setid(point.getstring("place_id")); return result;  

the place_id cid of place, unique place. want share this, or able show place going google maps , search unique cid. construct web browser url follows:

http://maps.google.com/maps/place?cid=chijgzzejr9_24arnu3loimy7k4 

this doesn't work though, , web address gets converted lat/long, no place shows here.

is there easy way find place on google map using unique cid? url can share others in email or something? way if find cool place , want share it, can pass url cid?

your "cid" place id

https://maps.googleapis.com/maps/api/place/details/json?key=yourkey&placeid=chijgzzejr9_24arnu3loimy7k4

use link, can json contain information company, bottom of json

"url" : "https://maps.google.com/?cid=5687679683593497910", 

this true cid!


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -