Google Maps API¶
pwshPlaces includes Google Maps features and content; use of Google Maps features and content is subject to the terms of service and Google privacy policy.
Google Maps API Key¶
pwshPlaces requires a Google API key to run Google maps functions.
To utilize all of the functions of pwshPlaces you must:
- Create a Google Maps API with both the Places and Geocoding APIs enabled and enable billing on the project.
You can read more about the Google Maps API in the links below:
How to get a Google Maps API Key¶
Official documentation link for creating a Google Maps API Key:
Google Maps API Keys are created and managed through Google Cloud Platform (GCP). The GCP console is constantly changing so some of the steps below may look slightly different. Here is what you need to accomplish at a high level:
1. Create a new GCP project¶
Log into your GCP console and create a new project:
2. Enable the Places API and the Geocoding API¶
- Top left Navigation Menu
- Products & solutions
- All products
- Other Google products
- Google Maps Platform
- Maps APIs and Services
- Places API - --Enable--
- Maps APIs and Services
- Google Maps Platform
- Other Google products
- All products
- Products & solutions
- Google Maps Platform
- APIs & Services
- Additional APIs
- Places API - --Enable--
- Geocoding API - --Enable--
- Additional APIs
- APIs & Services
3. Create API Key¶
- Google Maps Platform
- Keys & Credentials
- Create Credentials
- API key
- Create Credentials
- Keys & Credentials
4. Restrict to places API¶
Restrict API access to just the two enabled
- Google Maps Platform
- Keys & Credentials
- Click on your created API key
- Restrict API to just the two APIs to better secure it
- Click on your created API key
- Keys & Credentials
5. Enable Billing on the Google Cloud project¶
You must enable billing on the Google Cloud Project.
-Note: Even though you need to enable billing keep in mind the following:-
For most of our users, the $200 monthly credit is enough to support their needs. You can also set daily quotas to protect against unexpected increases.
Monitoring Google Maps API usage¶
Visit the GCP API dashboard. From the ‘Select a Project’ drop-down menu, select or create the project.
Additional reading: