Skip to content

Latest commit

 

History

History
96 lines (62 loc) · 4.44 KB

GoogleMapsAPI.md

File metadata and controls

96 lines (62 loc) · 4.44 KB

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: Google Cloud (GCP) 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--
  • Google Maps Platform
    • APIs & Services
      • Additional APIs
        • Places API - --Enable--
        • Geocoding API - --Enable--

Google Cloud (GCP) Top Left Navigation Menu

Google Cloud (GCP) Google Maps Platform Google Cloud (GCP) Google Maps Platform Maps APIs and Services Google Maps Places API Google Maps Geocoding API

3. Create API Key

  • Google Maps Platform
    • Keys & Credentials
      • Create Credentials
        • API key

GCP Google Maps Platform 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

GCP API Restrict Access

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:

Understanding Google Maps API pricing