Google Map API Setup

Posted by admin

March 23, 2017

When adding new listing, you will be asked to add Google Map API key first. Please, go to Estatik>>Settings>>Google APIs and fill in the field Google Map API key to add it.

If you haven’t created Google Map API key yet, please, follow our instructions below. These instructions are taken from Google Maps Platform Documentation (https://developers.google.com/maps/documentation) and adapted for Estatik customers.

Step 1

First of all, make sure you have billing account in Google Maps Platform. Billing account is used to track costs associated with your projects and required even if you use free Google Map API key.

You can learn more information about billing account by following the link (https://developers.google.com/maps/faq#usage-limits-and-billing

Fulfill the following steps to create a billing account:

1. Go to the Google Cloud Platform Console.
2. Click menu button and select Billing.

3. Set up your billing account:
3.1 If this is your first billing account, on the Billing page:
- Click the Add billing account button.

- Follow the steps to set up your first billing account.

3.2 If you have already a billing account, on the Billing page:
- Click billing drop-down and select Manage billing accounts. You'll see a list of your current billing accounts.

- Select Create account.

Follow the instructions to set up your next billing account.

Step 2

Project created for your Google account is the second must-have option for Google Maps Platform usage. Project is the basis for managing services, credentials, billing, APIs etc.

Project can be created the following way:

1. Go to the Google Cloud Platform Console.
2. Click menu button and select Home.

3. Click Select a project drop-down and select NEW PROJECT.

4. On the New Project page, fill in the required information:
- Project name: Accept the default or enter a customized name. The project name can be changed at any time.
- Project ID: Accept the default or click EDIT to enter a customized ID. The project ID cannot be changed after the project is created, so choose an ID that you'll be comfortable using for the lifetime of the project.
- Billing account: Select a billing account for the project (if you only have one billing account, you won't see this option). You must be a Billing Account Administrator or Project Billing Manager to associate a project with a billing account.
- Location: If you have an organization you want to link your project to, click Browse and select it, otherwise choose "No organization".

5. Click CREATE

Step 3

Now you can get your API key:

1. Go to the Google Cloud Platform Console.
2. Choose the Google Maps API page:
- Click the menu button and select APIs & Services.
- Select Credentials.

- Click the Create Credentials drop-down and select API key.

- Click Close.

For smooth work in Estatik plugin your Google Map API key should have the following configuration:

1. The correct settings for Google Map API key are the following:
- choose restriction by HTTP referrers,

- add your website domain name,
- enable the following APIs for your API key:
Maps Javascript API
Geocoding API
Geolocation API
Places API
Maps Static API (required for PDF flyer)

2. Fulfill the following steps to enable required APIs:
2.1 See the Google Maps Platform APIs and SDKs that you can enable by going to the Maps API Library page (https://console.cloud.google.com/apis/library) in the Cloud Console.

2.2 Go to the Maps API Library page
- Click the API you want to enable.

- If the button says ENABLE, click the button to enable the API.
- If the button says MANAGE, the API is already enabled and you don't need to do anything further.
- Clicking either button will display the dashboard for the API.

3. Check if all the required APIs are enabled for your Google Map API key:
3.1 Go to the Google Cloud Platform Console.
3.2 Locate the Google Maps API page:
- Click menu button.
- Under Home, scroll down the menu to locate and then click Google Maps.

- Under Overview, APIs will appear in the menu if you have enabled at least one API or SDK.

- Click APIs to view the status of the APIs:
- Enabled APIs: These API or SDKs are enabled.
- Additional APIs: These API or SDKs are not enabled.

NOTE: If you use Estatik Premium plugin version, two Google Map API keys are required. Create the second API key according to instructions above with a few changes:
- choose restriction by IP addresses,
- add your server IP,

- enable required APIs for your API key: Maps Javascript API, Geocoding API, Geolocation API, Places API, Maps Static API and proceed with all the other steps described previously.

Your Google Map API key has been successfully created and you can add it to Estatik plugin settings.

Video Instruction from Google (https://youtu.be/2_HZObVbe-g).