Back in 2018, Google made a number of changes to the Google Cloud Platform and Google Maps API Console. The result of these changes is that all SimpleMap users must now follow additional steps to configure their Google Maps API Key in the Google Cloud Platform. 

Please follow the steps below to correctly set up your Google Maps API key for use in the SimpleMap plugin.

#1. Log into the Google Cloud Platform with your Google account and click the “Get Started” button. Check the box next to “Maps” and click Continue.

Check the box next to "Maps".

#2. Now you need to create a new project or select an existing one. Once you’ve done so, click “Next”.

Create a project or select an existing one.

#3. Google requires you to set up a billing account if you haven’t done so yet. Go ahead and add a credit card. You’ll receive $200 of free credit each month, so you may not be charged anything (unless your website does more than 100,000 API requests per month).

#4. Once billing is set up, click “Next” in the “Enable Google Maps Platform” pop-up window. Your new Google Maps API key will now be displayed on-screen.

#5. Copy your new API key and paste it into SimpleMap under General Options > Map Configuration > Google Maps API Key and click the “Save Options” button.

#6. In Google Cloud Platform, click on “APIs” in the left hand menu and then click on “Geocoding API” in the Additional APIs list and click “Enable”.

Enable the Geolocation API.
Enable the Geolocation API.

#7. On the “Geocoding API” screen, click on the “Credentials” tab, locate your key in the “API keys” list and click the edit icon.

Locate your API key and click the edit icon.

#8. Although this is optional, you might want to change the name (e.g. “Simplemap API key”) of your API key so you can easily identify it in the future.

Change the name of your API key.

#9. In the “Application Restrictions” tab, select the “None” radial.

Select "None" in the Application Restrictions tab.

#10. On the “API restrictions” tab, select “Maps JavaScript API” and “Geocoding API” from the drop down list, then click the “Save” button.

Select "Maps JavaScript API" and "Geocoding API" from the drop down list.

If you’ve followed all of the above steps, then you should be good to go.

You can easily verify this by setting up a test map page using the SimpleMap shortcode and adding a test location. Once that’s done, head over to the map page. If the map is rendered, then that means that your Google Maps API key is working.

Now, search for the location that you’ve previously added. If the map navigates to it and it shows up in the results, then this means that you’ve also correctly enabled the Geocoding API.