Reputation: 23
(Starting June 11, 2018: All Google Maps Platform API requests must include an API key; we no longer support keyless access.) I heard that the google maps api-key is not free. Does anyone know if it is possible to start a project that is not for release and includes google maps api-key without getting billed?
Upvotes: 1
Views: 13209
Reputation: 21
You can skip the key parameter and you can work with a map for development purposes. It means, normally you use next code:
<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
Indeed, you can use this one:
<script async defer src="https://maps.googleapis.com/maps/api/js?callback=initMap">
Upvotes: 2
Reputation: 855
Per Google https://developers.google.com/maps/documentation/javascript/get-api-key
During development and testing, you can register a project for testing purposes in the Google Cloud Platform Console and use a generic, unrestricted API key. When you are ready to move your app or website into production, register a separate project for production, create a browser-restricted API key, and add the key to your application.
Upvotes: 3