Get  Google API Keys

This section pertains to the WordPress Store Locator Plus plug-in   which is the free base plugin for those WordPress administrators who are controlling the plugin and updates.  If you are a subscriber to  MySLP, our fully managed locator SaaS service, you can ignore this page.

Before you get started you will need to get a Google Maps Javascript API Key.

Please note, there are some misleading instructions in the Google developer console telling you to  create a browser-restricted API key when you move your site to production. You do not need to include any restrictions  but if you do then you will also need a second unique key to add in the second field under the SLP/General settings the Geocoding API key.  Either way you must “enable” both the Maps  and Geocoding APIs. Updates to how Google APIS are deployed and the explanation can be found in Google Platform  When you create your project , obtain  your Maps Javascript API  .  The geocoding API is now contained under the “Places” API. The APIS you will need  are now contained under Maps, and Places.  Check to see that both boxes are enabled for your project. View the support documents under Google Product updates for more information. They have added many different APIs. The ones you need for WPSLP to work properly are the two in the screenshot below, referred to as Maps Javascript and geocoding (not to be confused with geolocation). The Geocoding API  converts addresses into geographic coordinates (geocoding), which you can use to place markers or position the map. This API also allows you to convert geographic coordinates into an address (reverse geocoding).

Step 1: Go To the Google Developer Site

Step 2: You will need a Google account to continue. Select “Create A Project”

Step 3: Enable check off both Maps and Places , the geocoding API is now under Places

 

 

 

Enter your website info/ credentials at Google.

 

 

Google API Key Step 3
Google API Key Step 3 you can leave the HTTP referrer blank at this stage. If you do add a referrer note that you will need to obtain a  unique Geocoding key as well and paste it in the WPSLP/general/server field  as indicated.

 

 

 

Step 4: Copy your API Key(s) and paste  in the designated field(s) under the SLP/General/Server fields.

 

Add The API Key(s) To Store Locator Plus

Enter the API Key  under the General / Server tab labeled “Google Browser key”. Make sure there are no spaces before the first character.  If you have obtained a  separate Geocoding key to use with your restricted browser key , enter in the field labeled accordingly.