3min

"Geocode failed (Request denied)" error

In certain cases when performing a bulk marker imports and making use of the geocoding option (Find Addresses) the importer may report the following error: Geocode failed (Request denied) API keys with referer restrictions cannot be used with this API.

Geocode failed error
Geocode failed error

In this case an additional Google Maps API key is required to complete the import. The Additional key requires IP restriction instead of the referer restiction that is likely in place for the Primary API key

To Create an additional API key, please navigate to https://console.cloud.google.com/apis/credentials (preferably using the same account that the orginal API key was created with, as this will allow you to create the key in the same Project, retaining the existing Project configuration)

Check that correct API project is selected. (this ensures the existing enabled API services and billing information are retained)

If you are not using the same API Project as the Primary API key - please ensure you enable the Geocoding API for project this Key is created under.

Select the " + CREATE CREDENTIALS" button, and then select "API Key"

Check selected project and create credentials
Check selected project and create credentials

Once the key is created, select the "edit API Key" URL on the modal

edit API Key
edit API Key

Select the "IP addresses" option in the Application Restriction section and then the "ADD AN ITEM" button

Select and configure IP Address restriction
Select and configure IP Address restriction

Enter the IP address of the website/server performing the upload and select done. (You can check the IP address of your website using dnschecker.org)

Once setup, you then copy this additional API key and navigate to

WP Go Maps -> Settings -> Advanced Settings

Paste it in the alternative API key field and select save.

If done correctly, the Google Maps API system should allow the Geocoding process to continue during your marker import.

ο»Ώ