1

(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?

georgeawg
  • 48,608
  • 13
  • 72
  • 95
DSUniverse
  • 23
  • 1
  • 1
  • 3

2 Answers2

3

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.

cy-c
  • 855
  • 8
  • 8
  • 1
    Do you also know where/how to regsiter a project for testing purposes? – alpipego Jul 20 '18 at 07:51
  • I haven't signed up recently, but it should be straight forward. I think all you need to do is ensure you have a Google account, and fill out some basic information. After which, you are then given an api-key or JavaScript (honestly cannot remember). See: https://cloud.google.com/maps-platform/#get-started – cy-c Jul 20 '18 at 10:11
  • 2
    Unfortunately, it's not straight forward. I've clicked through their API console several times and there is no such setting. – alpipego Jul 23 '18 at 07:14
  • 1
    Did you find out where can you register an existing project for testing purposes? – fspasovski Aug 09 '18 at 11:23
  • Do these comments still hold true? I am not able to find any option on their dashboards to register my project as a testing project without credit card details either. Kindly help. – Subbu Aug 07 '19 at 08:22
2

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">
iizquierdo
  • 21
  • 3