HTML5 Zone is brought to you in partnership with:

Raymond Camden is a developer evangelist for Adobe. His work focuses on web standards, mobile development and Cold Fusion. He's a published author and presents at conferences and user groups on a variety of topics. He is the happily married proud father of three kids and is somewhat of a Star Wars nut. Raymond can be reached via his blog at www.raymondcamden.com or via email at raymondcamden@gmail.com Raymond is a DZone MVB and is not an employee of DZone and has posted 260 posts at DZone. You can read more from them at their website. View Full User Profile

Getting a quota error with Google and you've barely touched your limit?

02.14.2013
| 3226 views |
  • submit to reddit

I spent the last 30 minutes or so trying to figure out why in the heck my simple Google Maps demo was giving me this error in the console:

This site has exceeded its usage quota for Google Maps JavaScript API v3. See here for details on usage limits: https://developers.google.com/maps/documentation/javascript/usage

The "site" in question was localhost and I knew I was nowhere near my 25,000 daily limit. In fact, the Google API Console reported 44 hits over the past 30 days. To make things even more maddening, when I intentionally included a bad API key I got the exact same error.

Turns out I had forgotten to enable Google Maps V3. This is done in the "Services" menu:

You must turn on API access on the relevant line:

Obvious, right? I just wish the console message had been actually helpful.


Published at DZone with permission of Raymond Camden, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)