Get restaurants near my location

user188995 picture user188995 · Aug 15, 2012 · Viewed 151.9k times · Source

I've tried to find a suitable Google Places API that takes in My Location and returns the nearby restaurants.

Currently, I've been able to find only restaurants in a "particular" city.

https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=*MyKey*

Is there a way of implementing this?

Answer

ZzzZZz picture ZzzZZz · Aug 15, 2012

Is this what you are looking for?

https://maps.googleapis.com/maps/api/place/search/xml?location=49.260691,-123.137784&radius=500&sensor=false&key=*PlacesAPIKey*&types=restaurant

types is optional