When you need to use Google's Geocoding API to provide location data for fields in your import (e.g. property location fields, listing location fields, map fields in ACF), you need to use an API key to access it.
Here is how you can get started:
-
If you don't already have a project, create one here: https://console.cloud.google.com/projectcreate
-
Enable billing for the project: https://support.google.com/googleapi/answer/6158867?hl=en
-
Enable the Geocoding API for the project by going to "APIs & Services": https://d.pr/i/i4Lo7o - click "ENABLE APIS AND SERVICES": https://d.pr/i/9q6vNU - search for "Geocoding API": https://d.pr/i/YurIn2 - choose it: https://d.pr/i/6lTRbv - and enable it: https://d.pr/i/YM5FLw
-
Create your API key: https://developers.google.com/maps/documentation/geocoding/get-api-key#creating-api-keys
- There's a keyless option in your plugin, can't I use that instead?
No. Google disabled keyless access, unfortunately (so we'll be removing this option in the future).
- What about restricting my key?
If you need to restrict it, choose "IP addresses (web servers, cron jobs, etc.)". Never use "HTTP referrers (web sites)" for an API key you plan to use to access Google's Geocoding API (it doesn't support that restriction method).
- I created a key, but it's not working? What now?
Call the following URL in your browser (replacing "YOURAPIKEYGOESHERE" with your API key):
https://maps.googleapis.com/maps/api/geocode/json?address=London&key=YOURAPIKEYGOESHERE
If you're not seeing data like this present: https://d.pr/i/7xR6zY - there's a problem with the key. Note the message & let us know what it is in your support ticket.