I am trying to put together a site that will use the v3 api. Most of
my requests will be through javascript and cached on the server, but
right now I need to seed the existing addresses in my database with
coordinates. I have a ruby script that works great for a while, but
eventually gets the over_query_limit error.

url = "http://maps.google.com/maps/api/geocode/xml?
address=#{CGI::escape(address)}&sensor=false"

I do one request to the above url per address, then store the results
in my database. The API states a limit of 15,000 requests per day, so
I set a sleep of 5.8 seconds between requests (14900/day). The script
runs for maybe two thousand requests then it starts receiving the
over_query_limit error for all the remaining requests. I even waited a
couple days before I ran this script again to make sure there were no
other requests from this IP address to the api in the past 24 hours.

How accurate is the 15000 limit? Do I need to sleep more than 5.8
seconds between requests? Is there a more reliable way to do this?

thanks,
scott

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to