Skip to content

Google Map API Key

How to Generate a Google Maps API Key

Official Google Pages

Steps to Generate a Google Maps API Key

  1. Sign in to Google Cloud Console.

  2. Create a new project or select an existing project.

    newproject

  3. Enable billing for the selected project.

  4. Enable the required API(s), such as:

    • Maps JavaScript API

      newproject

      newproject

    • Places API

      newproject

      newproject

    • Geocoding API

    • Maps SDK for Android

    • Maps SDK for iOS

  5. Go to APIs & Services > Credentials.

    newproject

  6. Click Create Credentials.

    newproject

  7. Select API Key.

    newproject

  8. Copy the generated API key.

    newproject

  9. Restrict the API key for security:

    • Application restrictions

      • HTTP referrers for websites

      • IP addresses for servers

      • Android apps

      • iOS apps

    • API restrictions

      • Limit the key to only the APIs you need
  10. Use the key in your application.

How to Add Google API Key in AIV

  1. In Viz, add or edit a Map Widget on your canvas.

  2. Select any map in the widget.

  3. Scroll down to the Map Provider section.

  4. In provider options, select Google API Key.

  5. Paste your generated Google Maps API key in the Google API Key input field.

  6. Save the widget settings.

    newproject

Notes

  • Make sure billing is enabled.

  • Make sure the required API is enabled.

  • Always restrict your API key before using it in production.