Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Static Map Quota reached but nowhere close to 25,000 limit

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" />
like image 255
OmegaPhase Avatar asked Dec 13 '12 13:12

OmegaPhase


People also ask

Does Google Maps API have limit?

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.

What is the size restriction for the static map URLs?

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.

Is Google Static Maps free?

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.

What is the largest image size allowed in Static Maps API?

Width of the image; a number between 1 and 1280 pixels. Height of the image; a number between 1 and 1280 pixels.


1 Answers

Google Static Maps API also indicates that there is a 50 requests per min limit.

  • Without an API key:
    • 1 000 Static Maps requests per IP address per 24 hour period.
    • 50 Static Maps requests per IP address per minute.

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.

like image 183
htm11h Avatar answered Sep 27 '22 22:09

htm11h