Reputation: 4110
I want to use Google Maps' geocoding service and list all locations that fit user's request. According to this documentation page there are static and dynamic services. The first one is what I need but seems to me it doesn't work as I would prefer. I want to get the results as JSON but the server doesn't generate a response in JSONP compliant manner. As I found JSONP support has been removed from the API.
That's why I tried to use Geocoder class of dynamic API. The issue is that I receive no more than ten result items for any address request (at least I couldn't guess the address with more than ten result items). I understand that such limit is for real-time geocoding but does it mean that it is impossible to get a full list of all possible locations that fit a request using Google Maps API?
Upvotes: 0
Views: 1736
Reputation: 12592
You are confusing names and address. Google maps tries to be accurate as possible and returns a list of wild guesses when it doesn't find the exact match. It's up to you to find the best places that's meet your name. Geocding has nothing to do with proximity search. When you need a proximity search you need to use another api (maybe places) or do it yourself with a database with your own unique places. This holds true especially when you add the regioncode to your query. Read more about it: Google Maps API: Geocode returns different co-ordinates then Google maps. Read here about a question about google places: understand the google places api for using with a webpage.
Upvotes: 1
Reputation: 561
Yes it has limit for about 10 geocoding requests per second. Workaround? Delay each request with a status of OVER_QUERY_LIMIT
for about 100 milliseconds.
Upvotes: 0