You need to be careful to differentiate between HTTP status codes, and Geocoder response codes. 403 is an HTTP status code. 620 is a Geocoder response code indicating that your request rate is too high, or you have exceeded your daily request limit. Geocoder response codes are returned in the body of the response for parsing by your client code so that you can log or return a more meaningful error message than can be inferred from the HTTP status code alone.
Here is an example of the response to a request that has exceeded the rate limit, including the HTTP headers: HTTP/1.1 403 Forbidden Content-Type: text/xml; charset=UTF-8 Server: mfe Cache-Control: private, x-gzip-ok="" X-XSS-Protection: 0 Date: Sun, 15 Nov 2009 05:10:17 GMT Transfer-Encoding: chunked Connection: keep-alive Connection: Transfer-Encoding X-N: S <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name></name> <Status> <code>620</code> <request>geocode</request> </Status> </Response></kml> As you can see, the HTTP status code is 403, and the Geocoder response code is 620. Many thanks, Thor. On Nov 13, 1:43 pm, Dylan Phillips <[email protected]> wrote: > I totally bailed on my wife this evening, because I wanted to finish > my throttling Algorithm to ensure that I did not exceed the velocity > of the GeoCoding Requests. > > Rules: > > [check] No more than 15,000 / day > [check] When you see a Status Code of 620 add 500ms to your > Thread.Sleep than try again. > > Low and behold. When I run my batch process, I keep throwing a 403. > WTF. When I hardcode my sleep to 2000ms. No 403. > > When I removed my hardcode 2000ms sleep timer, and look for the 620, > as documented in the API: code.google.com/apis/maps/documentation/ > geocoding/#KML. Guess what? > > No 620's. > > Dudes. Do you have an idea what kinda throuble I got into this > evening, because I was working on my throttling algorithms. I'm > totally gonna be couch bound the evening. > > What's up? Help a brother out. > > Few Options: > -Send me a 620 > -Publish the 403 interval, it's gotta be faster than 2000ms > -Update the documentation > -Buy me a comfier couch > > Thanks: > Dylan -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=.
