How to detect that the 25000 request per day limit has been reached in Google Maps?

I’m working on a website using the Google Maps Javascript API v3.

The free version of the API is limited by 25000 requests a day. But what happens if this limit is reached?

  • Google +1 Button script not loading in local html file
  • Angularjs: To Auto Fill City and State from Zip input, Need help to integrate
  • gapi.client.load versus google.load
  • how to get the +1 count in google plus using any API
  • How to retrieve a YouTube video's tags with YouTube v3 API?
  • Passing a DataTable object from JavaScript to Java
  • Is there a way to detect that the request limit has been reached so a fallback Google Maps Image API map can be displayed instead?

  • Recaptcha invalid-request-cookie
  • Welcome back, you've already connected with this app via Google+ Sign-In as *
  • How to retrieve a YouTube video's tags with YouTube v3 API?
  • YouTube API difference between API Key and Developer Key
  • Google calendar API update “Missing end time”
  • google javascript api client and multiple accounts
  • 2 Solutions collect form web for “How to detect that the 25000 request per day limit has been reached in Google Maps?”

    The usage limit is based on site or application, not the client IP address.

    You can use the Google API console to monitor your usage if you add an API key to each of your map requests. I have not seen a way to query the usage programmatically.
    https://code.google.com/apis/console

    Per the comment below by @alds, it does appear that JS Maps API v3 and Static Maps API are separate services, therefore having separate request limits. Falling back to a static Google map image could help.

    This also explains the usage limits in better detail:
    http://googlegeodevelopers.blogspot.com/2011/11/understanding-how-maps-api-usage-limits.html

    @kilogauss I would disagree that falling back to static Google Map is not an option.

    According to https://developers.google.com/maps/faq#usagelimits

    “Web sites and applications using the Google Maps API may at no cost generate up to 25,000 map loads per day FOR EACH service” (capitalization and boldface mine).

    And on https://developers.google.com/maps/faq#usage_pricing, you can see that JS Maps API v3 and Static Maps API are separate services.