Google Maps Javascript API reporting I'm over limit - google-maps

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.

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!

Get google maps api usage info

we using some google maps api's, and we wan't to add gapi usage/quotas to our monitoring system. Does Console api has it's own api for retrieving that metrics?
Maybe other solutions?
There is no current API endpoint to get the current quota usage information of your API. The only way to check the quota used by your application is by checking your own Developer Console. You can also see here the traffic (number of request per seconds), and error ratio of the enabled API of your project.

How do I monitor api request quotas or usage?

I am familiar with the Google API Console for monitoring requests quotas, but is there an endpoint or Google API Resource that I can query for poll to get current quota usage information for an enabled API, eg, Google Drive API?
AFAIK, there is no current API endpoint to get/poll the current quota usage information. As I previously mentioned in a related SO question, receiving quota related errors would help you know that you are reaching your quota for the API and that is where your error handling will take over.
To view the quota usage, access your developer console. And you are correct, it is viewable using the console. You can also see traffic ( number of request per seconds), and error ratio of the enabled API of your project.

Google Maps API: Search Box and Quotas

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/

Navigation in Google Maps API for Android

Is there a way to navigate with the Google Maps API?
I know I can use Intent to open the Google Maps app itself, but I'm looking for this solution specifically.
You can add direction/navigation to your Google Maps app by adding Google Directions API. This API calculates directions between locations using an HTTP request.
The quota is following:
2500 directions requests per 24 hour period.
Up to 8 waypoints allowed in each request. Waypoints are not available for transit directions.
2 requests per second.
ANything more will cost money.