Skip to main content

How to create a mapping key with Google Maps?

Pauline Brizard avatar
Written by Pauline Brizard
Updated over 2 weeks ago

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

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

  2. Log in to the Google Cloud Console using your Google account.

  3. Click on Navigation menu (☰).


  4. Click on APIs & Services.


  5. Create a new project by clicking on the Create a project button in the top left-hand corner of the console.


  6. Name your project.

  7. Add billing info to your project. You’ll need to activate billing on your Google Cloud account for the API key to work — it’s a crucial step! (This is a monthly subscription, so you'll see the cost month by month.).

  8. Click on APIs & Services.


  9. Click on Create Credentials.


  10. Click on API key.


  11. Your key is ready!


  12. Now the key will appear in your dashboard and you need to configure 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 type the subdomain of the store locator.
    Important: Add a * at the beginning and at the end of your URL.

    Example: stores.gnc.com/


  16. Under API restrictions, select Restrict key.



  17. Select the following 6 APIs and click Save:

    • Maps JavaScript API

    • Maps Static API

    • Places API

    • Geocoding API

    • Geolocation API

    • Directions API

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


  18. Click on the Navigation menu.


  19. Click on APIs & Services > Library.


  20. Click on View all.


  21. Select the 6 APIs you're missing and click on each of them to Enable:

    • Maps JavaScript API

    • Maps Static API

    • Places API

    • Geocoding API

    • Geolocation API

    • Directions API


  22. Then go back to the Navigation menu.


  23. Click on APIs & 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:

    • Maps JavaScript API

    • Maps Static API

    • Places API

    • Geocoding API

    • Geolocation API

    • Directions API


  28. Click on Save again — and that’s done!

Did this answer your question?