Saeid
unread,Aug 9, 2009, 6:37:40 PM8/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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);
}
});
}