A client of mine is using Google Static Maps on his property lease pages. Twice this month he has gotten the dreaded Google Quota image in place of where the map should be on the page (see https://developers.google.com/maps/documentation/staticmaps/images/quota.png).
He notified me after each time it happened, but the static map on the page loaded correctly for me. He and I both viewed the page through a proxy server and it appeared correctly through there as well.
I checked my site's logs for the 2 days in question, and there were only 841 and 1,910 page loads respectively for the entire site. These were both higher volume than normal days but by no means would explain reaching the 25,000 Google Static Map limit. The image size is only 375 x 275 pixels.
Question: why would he get the quota image and not me (or the proxy server)? If it's based on IP address, he's on a very small network and there's no way the office would collectively load that particular page 25,000 times. My client uses Google Maps a lot. Is it possible that maps.google.com adds its own page loads to an IP address's total page loads from other websites? Any explanation would be most helpful. Thanks in advance.
FYI: here's the image tag we've been using for at least a year now, without incident until this month (edited):
<img src="http://maps.google.com/maps/api/staticmap?center=28.4039,-81.337&maptype=terrain&mobile=false&zoom=13&size=375x275&markers=size:small|color:blue|28.4039,-81.337&sensor=false&key={omited}&style=feature:road.local%7Cvisibility:simplified" width="375" height="275" alt="Location" class="map_canvas" />
While there is no maximum number of requests per day, the following usage limits are in place for the Maps JavaScript API: 30,000 requests per minute. 300 requests per minute per IP address. In the Google Cloud Console, this quota is referred to as Map loads per minute per user.
URL size restriction Maps Static API URLs are restricted to 8192 characters in size. In practice, you will probably not have need for URLs longer than this, unless you produce complicated maps with a high number of markers and paths.
The Maps Static API uses a pay-as-you-go pricing model. Requests for the Maps Static API are billed under the SKU for Static Maps. Along with the overall Google Terms of Use, there are usage limits specific to the Maps Static API. Manage your costs and usage with tools available in the Google Cloud Console.
Width of the image; a number between 1 and 1280 pixels. Height of the image; a number between 1 and 1280 pixels.
Google Static Maps API also indicates that there is a 50 requests per min limit.
This means that if you have a single page containing more than 50 maps, the page will exceed this limit.
StaticMapsAPI
I suggest you sign up for a key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With