How to create a Google Maps API key
Overview
This document provides instructions on how to create a Google Maps API key to use it in the User Location extension.
Registration
To use the Google Maps APIs you need to register at the Google Maps Platform that is integrated with the Google Cloud Platform. Using Google Maps APIs requires creating an application within the platform and activating needed APIs. This service is paid but offers $200 in free usage each month. For detailed information on Google Maps usage pricing, please click here.
If you are a new user, click the "Get Started" button and follow the registration process.
How to create a new API key
Once you are registered you should create a project, enable APIs and get your API key.
Step 1 - Create a project.
After creating the project, complete the account setup by clicking the 'Finish account setup' button.
Step 2 - Enable APIs.
The extension needs these APIs to work correctly:
- Maps JavaScript API
- Geocoding API
- Places API
Note: Make sure that you enabled the "Places API", not the "Places API (New)".
Go to APIs & Services to search and enable APIs.
Step 3 - Generate API key.
Go to Key & Credentials, click Create credentials and select API key to create a new API key.
Set the key name, configure website and API restrictions, then click the Create button.
Copy your API key and paste it to the extension setting Google Maps Javascript API Key. See User Locations Setup.
How to edit existing API key
Go to APIs & Services > Credentials > Edit API key if you need to manage your API key restrictions or copy the key.
Usage and Billing
The Maps JavaScript API uses a pay-as-you-go pricing model, see pricing and limits. Along with the overall Google Terms of Use, there are usage limits specific to the Maps JavaScript API. Manage your costs and usage with tools available in the Google Cloud Console.
Reminder: To use the Maps JavaScript API, you must enable billing and include an API key or OAuth token with all API or SDK requests.