I am hitting below URL to test my key
https://maps.googleapis.com/maps/api/geocode/json?latlng=20.0041,73.7175&key=$key
it show this an error after one hit
{
error_message: "You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account: http://g.co/dev/maps-no-account",
results:[],
status: "OVER_QUERY_LIMIT"
}
Please help me why it is happening, anything to do with enable billing?
If you exceed the per-day limit or otherwise abuse the service, the Google Maps Geocoding API may stop working for you temporarily. If you continue to exceed this limit, your access to the Google Maps Geocoding API may be blocked.
Enable billing account for your project. Select the project that contains the API you want to review. From the list of APIs on the Dashboard, click the name of the API. Near the top of the page, click Quotas or Usage and set the limit according to your usage.
The Geocoding API uses a pay-as-you-go pricing model. Geocoding API requests generate calls to one of two SKUs depending on the type of request: basic or advanced.
As stated in the comments to the question, you need to enable billing, even if you are only using the free quota. See the docs about this change for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With