To prevent unauthorized usage, in addition to your API Key, Google recommends you add a signature to each of your Maps Static API URLs. By default then, there is a limit to the number of unsigned requests you can make each day to Maps Static API. That limit is 25,000 requests, and you may be hitting that daily quota.
To do more than 25,000 requests per day, you have 2 options:
- ⚠️ Remove the signing secret from Maps Static API in your project. This will instantly restore service and allow you to make unlimited unsigned requests each day, but is less secure.
To enable this, follow this link, and click the “Allow unsigned usage” button at the top of the page: https://console.cloud.google.com/apis/api/static_maps_backend/staticmap - 🔒 Add a signature to your requests. This will require a code change and can be tricky to get right, but is more secure. Use the Maps Static API signing secret for your project to generate a cryptographic signature for each request and append that to the URLs.
You can find instructions and sample code for this process in the Maps Static API documentation here: https://developers.google.com/maps/documentation/maps-static/get-api-key#detailed-guide
Our recommendation is to remove the signing secret for the short term, to restore service quickly. Then make the necessary code changes to add signatures in your next release.
Comments
0 comments
Article is closed for comments.