One problem is that the Google tile servers have code which attempts to 
detect access via an automated script and will block the offending IP 
address, returning 403 for 24 hours or until the CAPTCHA challenge 
contained within the 403 message gets a correct response. Perhaps 
there's something about your script which allows that Google code to 
quickly identify your code as being an automated script, e.g. perhaps 
Google can tell that the request is coming from something other than a 
browser.

Another problem is that the version number ("ap.83" in this case) 
changes every few months. Tiles for the previous version are only held 
for a while. Accessing the previous version, even through a browser, is 
considered to be evidence of not accessing the tiles legitimately and 
the servers will block you after a while. Therefore, even if you get it 
working, it will fail after the next tile set is released if you hard 
code the version number.


Consider performing your checks in the Javascript of the client, rather 
than from a webserver. You can either get the URL of a current tile by 
calling G_NORMAL_MAP.getTilelayers()[0].getTileUrl(tile,zoom) or (and 
this might quite possibly be within the Terms) you can listen for API 
tile fetch errors by overwriting G_NORMAL_MAP.getErrorMessage().

A modified G_NORMAL_MAP.getErrorMessage() must return a string to be 
displayed in the place where the tile should go, but before it does that 
it could review the current zoom level and map centre and decide whether 
this is likely to be an attempt to do something silly, like look at 
streetmaps in the middle of an ocean at high zoom level, or if it's a 
server failure, and GDownloadUrl() an appropriate warning to your 
server.

-- 
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to