Google Maps API and routes

Oct 14, 2010 at 6:09 PM


I'm using GetRouteBetweenPoints to calculate distance and time between 2 points.

It works greak. But I have a doubt. I'm using this function a lot and I'm wondering if is there a problem with google maps api.

On their page they say there is a limit for 2.500 request per day.

I have 3 questions:

1. Is GetRouteBetweenPoints using google maps API? If yes, I think there is a problem with limit requests.

2. Did you experienced this problem?

3. How can understand this problem (on my code) if google cut the connection?


It never happened to me, but it can be possible to happen.

Oct 14, 2010 at 6:19 PM

I don't use it much, can't say what real limits are, you can calculate direct distance when blocked(manager.GetDistance), or you can prepare 10 keys, and use new when blocked, then limit would be 25.000 requests ;}

Oct 14, 2010 at 6:51 PM

Ok, thanks for your tip.

But I think Google can block access by IP. Am I correct?

Oct 14, 2010 at 6:58 PM

it's posible

Oct 14, 2010 at 7:12 PM

"If more than 2,500 geocode requests in a 24 hour period are received from a single IP address, or geocode requests are submitted from a single IP address at too fast a rate, the Google Maps API geocoder will begin responding with a status code of 620. This article explains how to time geocode requests from PHP and provides sample code for doing so. If excessive geocoder usage continues, access to the Google Maps API geocoder from this IP address may be blocked permanently."



Oct 14, 2010 at 7:16 PM

i see, then you can workaround this by using few proxies, different ip can by blocked but yours never, because they would block ip of some proxy

Oct 14, 2010 at 7:20 PM

yes, but I'm under a proxy already and it's not a good idea.

But thanks for your help once more!