Do I need a Google Maps API key?

Warning: You must have a Google account with billing enabled 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 (required)

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 (optional)

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 do not enter this key, please manually calculate the coordinates for your locations or they will not appear on the map. Learn how in 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

Check to See if Google Maps API Keys are Working

To check to see if your Google Maps are working try adding one using a sidebar widget, a shortcode, or a shortcode button here.