Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps Javascript API quota is set to 1 [duplicate]

I'm receiving this error when using Maps Javascript API

Maps error

Apparently, it's because I have exceeded my quota limit; however Google states I have up to 100,000 requests per 24 hours (Google Usage Limits)

When I access Gmy API dashboard, it states my quota limit is one on "Map loads per day".

Google quota limit

Appreciate your help, tnks

like image 356
Chris Avatar asked Aug 04 '18 17:08

Chris


People also ask

How do I change my Google Maps API quota?

In the Cloud Console, open the Google Maps Platform Quotas page. Click the APIs drop-down and select the Maps JavaScript API. To view the quota limits, scroll down to the Requests card. A table lists the quota names and limits. To change a quota limit, click the Edit icon for that limit.

What are the API usage limits for Google Maps API?

See the service's usage and billing page for more information: While you are no longer limited to a maximum number of requests per day (QPD), the following usage limits are still in place for the Maps JavaScript API: 30,000 requests per minute (QPM). 300 requests per minute (QPM) per IP address.

What happens if my API usage reaches my billable quota limit?

If your API usage reaches your billable quota limit on any given day, your application will not be able to access the API for the remainder of that day. Millions of websites and apps use Google Maps Platform to power location experiences for their users.

Do I need an API key to use Google Maps Platform?

In order to use Google Maps Platform products, billing must be enabled on your account, and all requests must include a valid API key. The following flow will help troubleshoot this: Are you using an API key?


2 Answers

I've been having this issue too - however Google documentation contradicts itself in places.

According to "Detailed guide for users of the standard Google Maps JavaScript API" - Enable Billing (step 7) is optional.

Yet clicking more info gives you "You must enable billing on each of your projects" - it's all a bit irritating as this causes confusion for clients (as well as devs!)

OpenStreetMaps is a nice alternative, bit harder to get up and running with and no nice scroll block by default. I'm currently switching to this while Google alienate their userbase

like image 143
Drew Avatar answered Nov 15 '22 08:11

Drew


Looks like you need to have billing enabled on the account now, tried with 2 gsuites account, limit is 1 without billing account attached and unlimited with billing account attached.

Edit: see https://developers.google.com/maps/documentation/javascript/usage-and-billing?hl=en_US

Important: Enable Billing As of July 16, 2018, to continue to use the Google Maps Platform APIs, you must enable billing on each of your projects. If you choose not to add a billing account, your maps will be degraded, or other Maps API requests will return an error.

like image 30
Andrew Avatar answered Nov 15 '22 08:11

Andrew