2

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?

Aruna
  • 11,959
  • 3
  • 28
  • 42
user188995
  • 447
  • 4
  • 10
  • 17

1 Answers1

2

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

ZzzZZz
  • 437
  • 2
  • 14
  • Yes. This way what I was looking for. I'd had already found it but was having trouble in assigning the "lat" and "long". I wanted to make the script automatically determine the "lat" and "long". – user188995 Aug 16 '12 at 11:25