I am working on google maps api. I have added Markers in the map.I wanted to get my markers in the nearby places section.Is there any way to implement this? A help would be appreciated.
Asked
Active
Viewed 1,725 times
0
-
can we see your approach or code you used ? – surajs1n Jul 09 '16 at 03:48
1 Answers
0
If you want to get places near by your location, then check this documentation. A Nearby Search lets you search for places within a specified area. You can refine your search request by supplying keywords or specifying the type of place you are searching for.
A Nearby Search request is an HTTP URL of the following form:
https://maps.googleapis.com/maps/api/place/nearbysearch/output?parameters
where output may be either of the following values:
- json (recommended) indicates output in JavaScript Object Notation (JSON)
- xml indicates output as XML
The following example is a search request for places of type 'restaurant' within a 500m radius of a point in Sydney, Australia, containing the word 'cruise' in their name:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&type=restaurant&name=cruise&key=YOUR_API_KEY
Example from GitHub:
Check these related links:
- Finding nearest locations using Google Maps API
- Show Current Location and Nearby Places and Route between two places using Google Maps API in Android
Hope this helps!