Anyone has experice with Google Maps API for non-private sites?

Hi, I want to embed a map with is already created and lists about a 100 locations using the layers. But to embed this map for a professional use, I need to use an API key. Which is fine, but there are a lot of different option on the google site to select the right API key:

How can I find out which API key I need to use in this case?

Thank you!

Hi @Fuellemann here is Perplexity answer :
To embed a map with multiple locations using Google Maps, you need to use the Maps Embed API. Here’s how to obtain and configure the correct API key:

  1. Create an API Key:

    • Go to the Google Cloud Platform Console and log in.
    • Navigate to APIs & Services > Credentials.
    • Click on Create credentials and select API key[1][2].
  2. Enable the Maps Embed API:

    • In the Google Cloud Console, go to APIs & Services > Library.
    • Search for and enable the Maps Embed API[3].
  3. Restrict Your API Key:

    • Under Key restrictions, select HTTP referrers (web sites) and specify your domain[1][2].
    • Under API restrictions, choose Maps Embed API to prevent unauthorized usage[1][4].

By following these steps, you ensure secure and proper use of your Google Maps integration.

Sources
[1] Use API Keys | Maps Embed API - Google for Developers Usar chaves de API  |  Maps Embed API  |  Google for Developers
[2] How to Get a Google Maps API Key How to Get a Google Maps API Key - WP Maps Pro
[3] How to generate a Google Maps API key - IONOS How to generate a Google Maps API key - IONOS
[4] Use API Keys | Maps JavaScript API - Google for Developers API 키 사용하기  |  Maps JavaScript API  |  Google for Developers
[5] How to generate and set a Google Maps API key - Yoast How to generate and set a Google Maps API key • Yoast
[6] Manage API keys | Authentication - Google Cloud Manage API keys  |  Authentication  |  Google Cloud
[7] Create API keys for the Google Maps platform Create API keys for the Google Maps platform
[8] Obtention d’une clé API Google Maps - Xamarin - Microsoft Learn Obtention d’une clé API Google Maps - Xamarin | Microsoft Learn

Hope that helps.

1 Like

Joes Google maps stack does all this and the heavy lifting for you

2 Likes