Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OVER_QUERY_LIMIT while using google maps

I have a problem while acessing google maps from my application, when i send more than 10 requests in loop from java script i get the exception as OVER_QUERY_LIMIT from geocoder service. is there any way that i can get rid of this, i tried giving some time delays using setInterval() etc.. .but doesnt work.

like image 499
Sriharsha Avatar asked Aug 20 '10 09:08

Sriharsha


People also ask

What happens when you exceed the Google Geocoding API rate limit?

If you exceed the per-day limit or otherwise abuse the service, the Google Maps Geocoding API may stop working for you temporarily. If you continue to exceed this limit, your access to the Google Maps Geocoding API may be blocked.

What are the usage limits for the Google Maps Geocoding API Web service per day?

While there is no maximum number of requests per day, the following usage limit is still in place for the Geocoding API: 50 requests per second, calculated as the sum of client-side and server-side queries.


2 Answers

Probably you are sending too many requests per second and Google doesn't let you do that.

Read http://code.google.com/apis/maps/faq.html#geocoder_classorhttp

like image 179
Ilya Saunkin Avatar answered Sep 22 '22 03:09

Ilya Saunkin


Geocoding in the JavaScript API is rate-limited. When you first load the API, you can send 10 requests for address geocoding or 5 for reverse (latlng) geocoding before you get an OVER_QUERY_LIMIT response. When you do, use "exponential backoff" to delay your queries.

You may also want to join the discussion in Issue 4805 (gmaps-api-issues).

like image 40
miguev Avatar answered Sep 19 '22 03:09

miguev