Skip to content

Obtaining Google Maps Static API Key

To use the Google Maps Static API in your application, you need to obtain an API key.

Follow these steps:

  1. Go to the Google Cloud Console: https://console.cloud.google.com/

  1. Create a new project or select an existing one.

  1. Enable the Google Maps Static API:

  2. In the sidebar, click on "APIs & Services" > "Library"

  3. Search for "Maps Static API"
  4. Click on "Maps Static API" and then click "Enable"

  1. Create credentials for the API:

  2. In the sidebar, click on "APIs & Services" > "Credentials"

  3. Click "Create Credentials" and select "API Key"

  1. Restrict the API key (recommended):

  2. In the API key details page, click "Restrict Key"

  3. Under "Application restrictions", choose "IP addresses" and add your organization's ASN IP
  4. Under "API restrictions", select "Restrict key" and choose "Maps Static API"

  1. Copy the API key and paste it into your App.config file:
<add key="GoogleMapsApiKey" value="YOUR_API_KEY_HERE"/>