Geocoding Error Solution

Table of Contents

Problem #

A user may get a geocoding error message  “Geocode was not successful: REQUEST_DENIED” on the store locator which happens due to two reasons:

  1. Importing a CSV file without the latitude and longitude values for the stores
  2. Adding/editing a store address on the store page.
Geocode Error Message
Geocode Error Message

Explanation #

The Geocoding API library is responsible for handling the coordinates of the stores automatically. Therefore, if a geocoding error is happening, it is most likely an issue with the Geocoding API.

Solution #

Please try the following to resolve the geocoding error :

  1. Firstly, make sure you have added the Google API key in “ASL Settings”
Google API Key Added
Google API Key Added

2. Secondly, make sure that the Geocoding API is enabled and enabled in the Google console 

Geocoding API Enabled
Geocoding API Enabled

3. Thirdly, make sure you have added the correct referrer in the Google Cloud Console

Correct Referrer Added
Correct Referrer Added

Lastly, please see the below article on how to add a correct referrer for the Google API key

https://agilestorelocator.com/wiki/adding-correct-referrer-google-api/

Now try to import a CSV file or add/edit the store address once again, it should work this time with the Geocoding API enabled.

For more information, please refer to the below post and video.