How to produce the Google Maps API key ?

Prem Das
2 min readFeb 8, 2020

--

The Google Maps JavaScript API browser key is used to display maps on your website. Without this key, you’ll see the following error:

Oops! Something went wrong.
This page didn’t load Google Maps correctly. See the JavaScript console for technical details.

The Google Maps Geo coding server key is necessary to translate addresses into geographical locations (latitude/longitude). To use the Maps Embed API you must have an API key. The API key is a unique identifier that is used to authenticate requests associated with your project for usage and billing purposes.

In this article I will show how to get the Google Maps API key step by step. Stay tuned ..!!

Step 1 :- Visit the Google Cloud Platform Console.

Step 2 :- If you are already logged in into your google account, you will see the below screen.

Click the project drop-down and select or create the project for which you want to add an API key.

I have already created my project named “Google Maps Demo”, highlighted in red color in the above screenshot.

Step 3:- Click the menu button and select APIs & Services > Credentials.

Step 4:- On the Credentials page, click Create credentials > API key.

Step 5:- The API key created dialog displays your newly created API key.

Now you have your key. You must include an API key with every Maps Embed API request. In the following example, replace YOUR_API_KEY with your API key.

https://www.google.com/maps/embed/v1/MODE ?key=YOUR_API_KEY&parameters

After all this, if you want to know how to use this API key to implement Google Maps, please refer to my another article on the below link :-

https://medium.com/@premdas.92/how-to-implement-google-maps-in-your-react-application-using-pure-javascript-d1d41c35d5f

Thanks for reading this article. Give it a clap if this helped you. Also give your valuable comments.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Prem Das
Prem Das

No responses yet

Write a response