HowTo: Register GoogleMaps API key

Google offers many of its services for free up to a certain limit.

For example, it is also possible to access the Google Maps functionality. This is useful, for example, for cases like the one in the article MagicMirror - Show current traffic overview described.

You can display a local traffic overview on your own MagicMirror and thus see how much is happening on which street in the vicinity while brushing your teeth tomorrow.

To access this service you need an API key. How to get it and what you have to do for it is described in the following article.


Open Maps Platform page

To start registering your own API key, you first need to go to the Google Maps platform website. You can find it at: https://cloud.google.com/maps-platform/.

Now log in to the website first. You will need a Google account for this. If necessary, you have to create one first. To get to the login field, you have to click on "Login" in the upper right corner.
This will redirect you to the login form which you can use to log in.
After a successful login you will be redirected back to the previous home page.

Now you can switch to the following web page: https://developers.google.com/maps/documentation/javascript/get-api-key

This link will take you directly to the Google Maps Platform page where you can register your own API key.
Here you can find all kinds of information about the individual functions and possibilities of Google Maps. If you want to start directly with the registration of the API key you can also simply scroll down until you come to the pictured "GET STARTED" button. Then click on it.
On the following page you can define which service(s) you want to use. There are three different "information sources": Maps, Routes and Places. As the names suggest, you can access map information with "Maps", route information with "Routes" and location information with "Places". But for normal map applications - like the MagicMirror project - we only need the "Maps" function. So select it and click on "Next".
For a better overview, you can now assign the API key created later to a project.
To do this, enter a unique name in the text input field. This way you can create a separate API key for each project.
After clicking on "Next" you will then ...
... redirected to the billing page.

At this point you do not need to get scared. This service is free of charge, as promised. You will not be charged any hidden costs. When entering the payment data, the only thing is to make sure that you are not a robot/bot.

On the next page you can read again "in black and white" that there are no hidden costs waiting for you. Only if you, for example, to be able to use more (not free) functions, agree to a debit, money is actually debited.
Now go through the individual steps and fill out the form ...
... with your payment data ...
... out. After that click on the button "Start free trial" to confirm the data to get the Google Maps API key.
Click on "Next" in the window that now opens....
... and after a short wait you will ...
Your Google Maps API key is displayed. You can now use it to access some Google Maps services for free.

Have fun with the project

I hope everything worked as described for you. If not or you have questions or suggestions please let me know in the comments. I will then add this to the article if necessary.
Ideas for new projects are always welcome. 🙂

PS Many of these projects - especially the hardware projects - cost a lot of time and money. Of course I do this because I enjoy it, but if you think it's cool that I share the information with you, I would be happy about a small donation to the coffee fund. 🙂

Buy Me a Coffee at ko-fi.com       

Kommentar hinterlassen

Your email address will not be published. Erforderliche Felder sind mit * markiert

This site uses Akismet to reduce spam. Learn how your comment data is processed.