Do I need a Google Maps API key?

Last update: 28 July, 2016

Warning: You must have a Google account to generate a key for Google Maps API.

Yoast SEO: Local allows you to add two different Google Maps API keys. We will briefly explain why you need them both and tell you how to check if you’ve already entered keys.

Table of Contents:

Google Maps JavaScript API browser key

The Google Maps JavaScript API browser key is used to display maps on your website. Without this key, you’ll see the following error:

Oops! Something went wrong.
This page didn’t load Google Maps correctly. See the JavaScript console for technical details.

 

If you have trouble displaying Google maps on your site, please see this article.

Google Maps Geocoding server key

The Google Maps Geocoding server key is necessary to translate addresses into geographical locations (latitude/longitude). When you create a new location, Yoast SEO: Local uses the Google Maps Geocoding API.

Without this key, or if it is invalid, your new location’s address will not be translated into a geographical location. However, no error will be shown.

If you have trouble displaying Google maps on your site, please see this article.

Get your Google Maps API keys

Please refer to the following articles to generate and set your Google Maps API keys.

  1. Get a Google Maps JavaScript API browser key
  2. Get a Google Maps Geocoding server key

Was this article helpful? ·