How to obtain a Google Map API key?

An important configuration for All-In-One WP Nearby Places is adding your own Google Map API key.

Visit the official documentation:

For updated information you can visit the official Google Documentation for getting an API key:

How to generate Google Map API key

  1. Go to the Google Maps Platform
  2. Click the Get Started button in the middle of the screen.
  3. Click on the Google Cloud Platform home in the upper left corner.
  4. Click on Billing to make sure your billing details are up-to-date. If they are not, your Google Maps will not work properly.
  5. Once you’ve confirmed your billing is up-to-date, click on the Google Cloud Platform home in upper left corner again.
  6. Hover to APIs & Services and go to Credentials.
  7. If you want to use an existing project, please select it from the list. Otherwise, select ‘Create a new project’ and enter a project name.
  8. Click Create credentials and select API key. You will see a new dialog that displays the newly created API key.
  9. Click the Close button in the API key dialogue. Your new API key will be listed on the Credentials page under API keys.

Make sure the API key has access to the following:

Geocoding API
Geolocation API
Maps JavaScript API
Places API

Securing your Google Maps API key

It’s recommended to secure your Google Maps API key against quota theft. In this article, we explain exactly how you can secure your Google Maps API key.

Javascript API (browser) key: HTTP restrictions

For the Google Maps Javascript API (browser) key, please enter the correct HTTP referrers, which is most commonly used in this format:*

There are other options depending on your preferred URL format. Learn more here. If you are unsure as to what HTTP referrer to add, please contact your web host or server admin.


Pricing for the Google Maps, Routes and Places and the APIs connected with them (Maps JavaScript API, Directions API, Timezone API, Geocoding API ) is pay as you go, and you only pay for what you use. You get a recurring $200 credit on your billing account each month to offset your usage costs, and you can also set usage limits to protect against unexpected cost increases.

For a table of Google’s pricing, see Pricing for Maps, Routes, and Places. If you need to enable billing, please go to APIs and billing.

Was this helpful?

Thanks for your feedback!