Google Maps API: Search Box and Quotas - google-maps

I have a site with a google maps search box and today I started seeing the error "You have exceeded your daily request quota for this API." This is happening whenever a key is pressed in the search box, not just when it's submitted. Also, I'm not getting autocorrect options dropping down.
My dashboard shows only 330 Google Places API requests and 7 Google Maps Javascript API requests being made today. Even that number seems incredibly high. It's for the developer version of my sight so it's just me working on it this afternoon.
How do quotas apply to the search box itself?

According to Google
We now count Google Maps JavaScript API client-side requests towards the daily limit of the associated web service API.*
https://googlegeodevelopers.blogspot.com.es/2016/06/building-for-scale-updates-to-google.html
If you are facing this error message for Search Box, this should mean that you exceeded a daily quota for Places API web service which is 1000 requests without Billing enabled.
The fact that dashboard shows 330 requests while you are receiving over quota messages is weird. Probably make sense to reach out to Cloud support to figure out if dashboard works correctly.
https://cloud.google.com/support/

Related

Google maps error after some time that is fixed 00.00 Pacific time

We are querying google maps service for static map image that stops working after some time (usually later in a day) with "StaticMaperror/Signature" error but we are not using Signature.
The problem is usually automatically gone after 00.00 AM (Pacific time) next day. There are no limits/thresholds configured on Google console portal for this API/key and it's not clear why we are getting this error after some time as it clearly looks like connected to some threshold/requests limit on on Google console portal
https://maps.googleapis.com/maps/api/staticmap?center=USA&zoom3&size=395x272&maptype=roadmap&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Based on this documentation, you are only allowed up to 25,0000 unsigned(no digital signature) static maps requests per day.
It is possible that you are hitting this limit which causes you to get those errors.
For more than requests 25, 000 requests, you are required to include a digital signature in your Static Maps API request. Here's a guide on how to generate a digital signature.
If you are still having issues or concerns regarding your specific Google Maps project, you can always reach out to Google Maps Platform support.
Hope this helps!

Google Maps Javascript API reporting I'm over limit

Google Maps Javascript API is reporting that I'm over the limit, but I'm pretty sure I'm not. I get this error:
You have exceeded your daily request quota for this API. For more information on usage limits and the Google Maps Javascript API services please see: https://developers.google.com/maps/documentation/javascript/usage
My Google API dashboard gives these numbers for the past day:
Google Places API Web Service: 407
Google Maps Geocoding API: 70
Google Maps JavaScript API: 30
What could be causing this? How can I get this up and running again, it is killing my application?
I came across your question because I am in the same position, seemingly well below the quota limits according to the console.
In the developer's console, go to the Dashboard, then click on the Google Places API Web Service. Then in the Quotas tab, scroll to the bottom and you'll see the Requests per Day. Here I was clearly reaching the 1000 requests per day limit, hence explaining the blocking of the requests.
We now count Google Maps JavaScript API client-side requests towards
the daily limit of the associated web service API.*
So it's the libraries=places and associated api usage (e.g. autosuggest in the search box) that is triggering this.

Google Places API Web Service usage 10x as fast as requests made

I may be missing something, but the google places API indicates free usage of 150,000 requests per day (provided you enable billing). https://developers.google.com/maps/pricing-and-plans/
However, every request i place appears to be counting as "10-requests" on certain places on their website. i.e. i was capped today after making 15,000 requests. Specifically, on the billing page, it appears that each request is counted as 10. On the API Manager overview page, each request appears to be counted as 10 on the bar graph of usage, however on the response code overview it is correct. [i.e it indicates i have made 15,000 2xx Success requests within past 24-hours --- which is the case--- (and a bunch of 4xx errors, resulting from me hitting the max limit in the table...) whereas the bar graph indicates usage of 150,000].
My question is, is this a mistake, or is it the case that each request using the places API Web Services does count as 10?
There is a documented 10x multiplier on place Text Search requests:
from that documentation:
The Google Places search services share the same usage limits. However, the Text Search service is subject to a 10-times multiplier. That is, each Text Search request that you make will count as 10 requests against your quota. If you've purchased the Google Places API as part of your Google Maps APIs Premium Plan contract, the multiplier may be different. Please refer to the Google Maps APIs Premium Plan documentation for details.

Suddenly got error message Maps API deactivation and Maps API exceeded quota but everything is normal in the API console

I suddenly got some random message saying "Google has deactivate Maps API" and "Site has exceed daily quota". Image attached (in Indonesian language).
In the console API the quota status is still green. This started three days ago. What would cause this?
I am using Google Maps API for Javascript version 3.17.
It looks like it's a bug with Google: Intermittent Google maps api Authorization Error
https://code.google.com/p/gmaps-api-issues/issues/detail?id=7464
Other possible answers:
I'm seeing other people with the same problem. It looks like Google gives that error message even then the actual problem is something else.
You can get this error if you don't actually enable the version of Google Maps that you're using: http://www.raymondcamden.com/2013/2/13/Getting-a-quote-error-with-Google-and-youve-barely-touched-your-limit
You may have already checked that since you've been in the console to check your usage but including it just in case.
Not having referrers set up properly will also cause it:
https://wordpress.org/support/topic/google-has-disabled-use-of-maps-api-for-this-application
Google maps api v3 reporting key error
People have also found that taking the key out for a while seems to help (though it is unclear why): Different errors (quota, disabled, bad API key, or none) when loading Google Maps API JavaScript
(Scroll to the bottom of the page for the answer)
I also started getting these errors unexpectedly, even though I was a long way from my quota.
I think maybe the browser was making too many requests for the API key for each load, or something.
So, I changed the "requests per user" setting from 1 to 2 per second, and the errors went away.

ASP.NET & Google Maps API Error Code "620"on shared hosting

We have a Map It feature on a Real Estate Website and its on a Shared Host, the feature basically shows you the location of a property of works fine for a few hours a day but it stops working later in the day because of error Code "620" for the map request from Google maps API KEY.
we need this issue fix immediately.
Sample could be found here http://www.luxuryrentalsmiamibeach.com/The-Setai-Miami-Beach-13
click on the Map It link to see example
The "Map It" link works flawlessly ATM. The Google error Code 620 means G_GEO_TOO_MANY_QUERIES which either means you had too many API requests per IP per day or in an unspecified time frame.
About the too many API requests per day you cannot do much besides load balancing, changing your IP or paying for the Google Maps API. About the too many API requests per time frame (e.g. 2000 requests per minute) you can do something by delaying your requests.
Also think about caching your results serverside to not put too much strain on the Google servers.
There are several tutorials available on the 620 error and how to circumvent it, just google for it. To get you started you can read "Geocoding multiple addresses"