Google Maps
Easy Jobs Manager uses Google Maps for the map on job pages, the address search in forms, the conversion of addresses into positions and the radius search. All of it is optional. See Maps and radius search for what it does on your site.
What needs a key
| Function | Google service | Key needed |
|---|---|---|
| Map on the job page | Embedded Google map | No |
| Autocomplete Address in the job and company forms | Maps JavaScript API with Places | Yes |
| Update Lat/Lng button | Maps JavaScript API and geocoding | Yes |
| Finding the position of an address when a job, company or place is saved | Geocoding API, called from your server | Yes |
| Radius search | Uses the stored positions | Yes, to fill in the positions |
Get a key
- Sign in to the Google Cloud console and create a project.
- Add a billing account to the project. Google requires it for Maps keys.
- Enable the Maps JavaScript API, the Places API and the Geocoding API.
- Create an API key under Credentials.
- Restrict the key to these APIs. Note that the geocoding on save is called from your server, not from the browser, so a key restricted to HTTP referrers only will not work for it. Use an API restriction, or a second key restricted by your server's IP address.
Enter the key
- Open Components > Easy Jobs Manager > Options and go to the Map tab.
- Set Enable Map Feature to Yes.
- Paste the key into Google Map API Key.
- Choose the Field Type: Full Address or Lat/Long.
- Click Save.
Costs
Google bills these services by use, with a monthly free amount. Set budgets and quotas in your Google Cloud project. Easy Jobs Manager only calls the geocoding service when a job, company or place is saved, not on every page view.
If something does not work
- No suggestions while typing an address: check that Autocomplete Address is Yes and that the Places API is enabled for the key.
- Jobs are not found by the radius search: open the job's location in Setup > Places and check that it has a latitude and longitude. Click Update Lat/Lng if not.
- Open the browser console on the form page. Google writes the reason there, for example "RefererNotAllowedMapError" when the key does not allow your domain.