Get A Google API Key

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 do that 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.  When you create your project , obtain  your Maps Javascript API you will see selections under the Maps Javascript API for more options.   One of those options is Geocoding API.  Check to see that is also enabled for your project. View the support documents under google 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”

previously "libraries"
Make sure you have enabled both of these APIs. Google will also now require you to add a billing account.

Enter your website info 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.