Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoogleMaps API KEY for testing

I'd like to add an API_KEY for GoogleMaps for testing and in documentation I've read this :

Tip: 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 into production, register a separate project for production, create an Android-restricted API key, and add the key to your application.

My question is, do I have to put my Credit card even if it's a testing API_KEY? I do not get the purpose to put my Creadit card to use Google Maps, isn't it free?

like image 907
Skizo-ozᴉʞS Avatar asked Sep 09 '18 21:09

Skizo-ozᴉʞS


People also ask

How can I get Google Map API key for test?

Go to the Google Maps Platform > Credentials page. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key. Click Close.

Is API key for Google Maps free?

The API is available for developers that have a free Google Maps API key. Usage of the API is not strictly free, but they do offer $200 of free monthly usage for most users. The pricing scales to fit your particular needs and you are only charged for your API usage.

Can Google Maps API key be public?

You may use an unrestricted API key with any Google Maps Platform API or SDK. However, we strongly recommend that you restrict your API keys, especially in following scenarios: The test environment will be or is publicly visible.


Video Answer


1 Answers

There seems no way to have google maps api key free without credit card. To test the functionality of google map you can use it while leaving the api key field "EMPTY". It will show a message saying "For Development Purpose Only". And that way you can test google map functionality without putting billing information for google map api key.

<script src="https://maps.googleapis.com/maps/api/js?key=&callback=initMap" async defer></script> 
like image 101
Mashiur Avatar answered Oct 08 '22 01:10

Mashiur