Error: Geocode was unsuccessful due to: OVER_QUERY_LIMIT

1,057 views
Skip to first unread message

Saeid

unread,
Aug 9, 2009, 6:37:40 PM8/9/09
to Google Maps JavaScript API v3
I'm using API V3 and converting 26 addresses stored in an xml
dynamically with JavaScript to position markers on a map but I get
this error when opening the page in a browser:

Error: Geocode was unsuccessful due to: OVER_QUERY_LIMIT

Is there a limit for the number of queries one can do when geocoding?
I couldn't find any info regarding this error or the query limit on
Google API V3 pages.

The JS function I use is:

function codeAddress(address,id) {
geocoder.geocode( { address: address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK && results.length) {
if (status != google.maps.GeocoderStatus.ZERO_RESULTS) {
map.set_center(results[0].geometry.location);
var marker = new google.maps.Marker({
position: results[0].geometry.location,
map: map
});
}
} else {
alert("Geocode was unsuccessful due to: " + status);
}
});
}

Ben Appleton

unread,
Aug 9, 2009, 6:48:09 PM8/9/09
to google-map...@googlegroups.com
Yes: at present you can geocode 10 addresses at once from the browser.  If you need more, either add a delay between requests from the browser, or use the HTTP Geocoder: http://code.google.com/apis/maps/documentation/geocoding/index.html

Ridder

unread,
Aug 31, 2009, 4:26:27 AM8/31/09
to Google Maps JavaScript API v3
Hi, how long should this delay be? Do I have to make this delay
between each call or just between every 10th call?

On 10 Aug, 00:48, Ben Appleton <apple...@google.com> wrote:
> Yes: at present you can geocode 10 addresses at once from the browser.  If
> you need more, either add a delay between requests from the browser, or use
> the HTTP Geocoder:http://code.google.com/apis/maps/documentation/geocoding/index.html
>

Ben Appleton

unread,
Aug 31, 2009, 5:04:56 AM8/31/09
to google-map...@googlegroups.com

You can delay 5 seconds between every 10 calls, subject to change.  But your page will load much faster if you use the HTTP geocoder before serving your pages.

On Aug 31, 2009 6:27 PM, "Ridder" <robin.ri...@gmail.com> wrote:


Hi, how long should this delay be? Do I have to make this delay
between each call or just between every 10th call?

On 10 Aug, 00:48, Ben Appleton <apple...@google.com> wrote: > Yes: at present you can geocode 10 ad...

> On Sun, Aug 9, 2009 at 3:37 PM, Saeid <saeid.mohad...@gmail.com> wrote: > > > I'm using API V3 and...

Reply all
Reply to author
Forward
0 new messages