Do I need to generate API key?

You need 1 unrestircted API key for WP Job Manager geocoding to run theme properly.
Please refer to Step 6 in this tutorial

Otherwise, it’s not necessary, and you can use OpenStreetMap or other providers unless you want to utilize Google Maps, Google Autocomplete, and the radius search feature in our theme.


Step 1: Create New Project

Go to Google Developer console and create new projec: click “Select Project” then “New Project”

Select a name for your API key and click “Create”


Step 2: Generate API Key

Click “APIs & Services”

Then select “Credentials” tab, click on “Create Credentials”

You’ll see generated API key. Copy and save it. You will need it later.



Step 3: Configure API Key

You need to restrict key to domain by checking “Websites” under application restriction section.

Then click “Add” and type your domain in proper format. Please note the * at the beggining and the end of domain.  It’s important to wrap domain between * characters  to allow access to api key for all subdomains and subpages.

Example: *.workscout.in/*


Step 4: Enable APIs for your key

Go to “Library” tab


Find “Maps” section and click “View all”

In this step you will need to enable 3 APIs.

Click on API that is required for Listeo and then click “Enable”. Repeat this step for Places API, Maps JavaScript API and Geocoding API highlighted in screenshot above.

Important!

To use these APIs, enable billing, which can be done separately (see Usage and Billing) or when obtaining your API key. The initial $200 of monthly usage is free, and you’re unlikely to surpass this limit.

Charges are based on actual usage, and you can monitor rates and spending in your Google Cloud Platform Console. Set daily quotas to prevent unexpected spikes and configure billing alerts to receive email notifications for customizable charge thresholds.


Step 5: Add API Key in WorkScout Core

Go to WorkScout Core → Map Settings and paste your API key in “Google Maps API Key” field.


Step 6: Unrestricted API key for WP Job Manager

Unrestricted API key is required for geocoding in job submission forms. Follow all steps in this tutorial but instead restricting key to your domain at step 3 make this key not restricted to domain.

Then add unrestricted key in Job Listings → Settings → Google Maps API Key

If you’re having issue with jobs not being displayed on map please read this article: Why I can’t see jobs on the map? → 


Step 7: Unrestricted API key for search radius functionality

Radius search functionality requires key without domain restriction. Follow all steps in this tutorial but instead restricting key to your domain at step 3 make this key not restricted to domain. This key will be used only on backend and no one will see it.

Add unrestricted key in WorkScout Core → Map Settings → Google Maps API Key