Locatoraid

WordPress Store Locator Plugin

Enable Geocoding API

To make finding coordinates by address work, we need to enable Google Maps Geocoding API.

Problem

When using the search bar to search for a zip code or an address, the search hangs, the spinning ball just keeps going.

Solution

If you open up the JavaScript console of the browser (press Ctl+Shift+J in Chrome or Ctl+Shift+K in Firefox), there will be an error like this:

Geocoding Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key

This error means that you need to enable Geocoding API for your Google maps key which makes possible finding locations by their address string. To enable it, please do the following in your Google Cloud control panel: