Skip to main content

How to create a mapping key with Google Maps?

Written by Pauline Brizard

This article was automatically translated by artificial intelligence. For accurate information, please refer to the original English version.

Here are the detailed steps to subscribe to a Google Maps API key:

  1. Create a Google Cloud account if you don’t have one yet by visiting cloud.google.com.

  2. Log in to the Google Cloud console with your credentials.

  3. Click on the navigation menu (☰).


  4. Click on API and services.


  5. Create a new project by clicking the Create a project button at the top left of the console.


  6. Name your project.

  7. Add billing information to your project. You must enable billing on your Google Cloud account for the API key to work — this is an essential step! (It is a monthly subscription, so you will see the cost month by month.)


  8. Click on API and services.


  9. Click on Create credentials.


  10. Click on API key.


  11. Your key is ready!


  12. The key will now appear in your dashboard and you need to configure it with the following steps:


  13. Click on your new API key.


  14. Under Application restrictions, select HTTP referrers (websites).


  15. Click on Add an item and enter the store locator subdomain.
    Important: add a * at the beginning and end of your URL.


    Example: stores.gnc.com/


  16. Under API restrictions, select Restrict key.


  17. Select the following 6 APIs and click Save:

    • JavaScript Maps API

    • Maps Static API

    • Places API

    • Geocoding API

    • Geolocation API

    • Directions API

    ⚠️ If you don’t see these APIs in the list, follow these steps:

  18. Click on the navigation menu.


  19. Click on API and services > Library.


  20. Click on Show all.


  21. Select the 6 missing APIs and click Enable for each:

    • JavaScript Maps API

    • Maps Static API

    • Places API

    • Geocoding API

    • Geolocation API

    • Directions API


  22. Then return to the navigation menu.


  23. Click on API and services > Credentials.


  24. Click on your API key.


  25. Click on Restrict key.


  26. Click on Select APIs.


  27. Select the 6 APIs and click Save:

    • JavaScript Maps API

    • Maps Static API

    • Places API

    • Geocoding API

    • Geolocation API

    • Directions API


  28. Click Save again — and you’re done!

Did this answer your question?