This is a special BB issue with the Google Static Maps API. The API speed limit is normal, but most often it appears when using BB devices.
They seem to be using an IP pool and are turning them on devices. Theoretically, this should be a very intermittent issue. If you wait a few days, he must leave.
In other words, collectively, your IP hit the Static Maps API more than 1000 times in 24 hours. This also happens if you click on the API too often for a short amount of time.
My solution was to write a simple PHP script that requested the map image from Google once, saved it as a file, and simply served it, rather than hitting the map API every time.
Here is the code:
<?php header('Content-Type: image/jpeg'); $latlng = (isset($_GET['c']))? $_GET['c'] : NULL ; $zoom = (isset($_GET['z']))? $_GET['z'] : 9 ; $file = "cache/p_$p-z_$zoom.jpg"; if(!file_exists($file)) { $parts = array( 'center' => $latlng, 'zoom' => $zoom, 'size' => '320x240', 'maptype' => 'terrain', 'sensor' => 'false', 'format' => 'jpeg' ); file_put_contents( $file, file_get_contents("http://maps.googleapis.com/maps/api/staticmap?".implode('&', $parts)) ); } echo file_get_contents($file);
source share