How to generate and set a Google Maps Geocoding API (server) key

Last update: 20 March, 2018

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

Since June 2016, Google Maps requires a special Google Maps Geocoding server key to “translate” addresses into geographical locations (longitude/latitude). Without this key, Yoast SEO: Local may not be able to make this translation for you.

Before you can set this server key in your Yoast SEO: Local installation, you’ll need to generate it. This tutorial will show you how to do that.

  1. Generate a Geocoding server key
  2. Set your Geocoding server key

Generate a Geocoding server key

Set your Geocoding server key

  • Copy the server key you generated from the Google Maps API Manager.
  • Log in to your WordPress website. When you’re logged in, you will be in your ‘Dashboard’. On the left-hand side, you will see a menu. In that menu, click on ‘SEO’.
  • The ‘SEO’ settings will expand providing you additional options. Click on ‘Local SEO’.
    Admin >SEO > Local SEO
  • Click on ‘API Keys’.
    Admin > SEO > Local SEO > API keys
  • Paste the server key you copied in step 1. into the ‘Google Maps API server key’ field.Enter your server key
  • Click Save Changes to store your server key.
  • Your site should now be able to automatically calculate the latitude and longitude for locations you add.

If you have trouble translating addresses into geographical locations, please verify that the Google Maps Geocoding API is enabled in the Google Maps API Manager.

Was this article helpful? ·