Google maps platform

Creating API keys

Share:

Why google maps platform?

We use the Google API within your platform. The Google API allows us to automatically complete place names. This is useful when a user fills in a place of residence at registration, for example.  In this way we can ensure that all users use exactly the same spelling. In addition, we can do accurate calculations with this data. With the data we receive, we can perform distance and radius calculations, among other things.

How do i link the google maps platform?

In order to use the Google API, we need separate Google API keys for each platform. Unfortunately, we cannot request these API keys ourselves. This has to be done by the owner of the platform. And that is you. Can you provide us with the Google API keys by completing the following steps?

Step 1: create an account

create an account on the google maps platform

Step 2: enable billing account

you can enable a billing account through this page

(https://console.cloud.google.com/billing).
This can only be done when you are logged in. 

Google requires a billing account, but does not charge directly.  You will only be charged if your website makes requests for more than $200 per month to the Google Maps platform. For $15, about 1000 requests can be made. The first 13000 requests per month are therefore free of charge.

Step 3: submit API keys 

We are happy to receive the Google API keys. Is that not possible? Then we would like to receive your login data. You may choose a temporary password. We can then configure the Google API properly and retrieve the API keys. After that you can change your password again.

We are looking forward to receiving your Google API keys or login information in your response to our order confirmation. 

API keys Google Maps Platform

Registration process

Create and link a billing account to a

Google Cloud Platform project

Supplies

  • Valid credit card or business bank account
  • Gmail account

Steps

  • Billing Account
  • Sign in

Go to 'https://cloud.google.com/maps-platform/' and select 'Sign in' at the top right corner to sign in with your Gmail account. After logging in, you will be taken to the Google Cloud Platform dashboard.

Now select the 'hamburger' menu icon in the top left corner of the dashboard and navigate to 'Billing' to create a new billing account. Then click on 'Add billing account'. You will now be redirected to the 'Google free trial' registration page.

Please note, if the message 'This project has no billing account' appears, select 'Manage billing account' and then 'Add billing account' to reach the 'Google free trial' registration page.

  • Register account information

In the first step on the registration page, select your 'Country' and agree to the 'Terms of Service'. Then click 'Continue' to proceed to the next step where your account and payment information must be verified and entered.

Please note that a valid credit card or business bank account is required for the next step!

Payments profile

You will be asked to associate a payment profile with the account. For this setting, it is important that you verify that you are in possession of a 'Business' type account. If this is not the case, select 'Create payments profile'.

Customer info

Check your 'customer info' and/or complete it where necessary. This concerns information regarding the payment and both your business and personal name and address details.

Please note, it is important that this information is entered correctly and truthfully for tax purposes and identity verification.

Payment method

Now select the desired 'payment method' and complete the missing payment information. If you choose the method 'Add a bank account', you need to verify this by selecting 'Verify'.

Then click on 'Start my free trial', which will create your account.

  • 1.3 bank verification

Don't know if this is also required for credit cards

After creating the 'Google Cloud billing account', Google will deposit a small amount into your bank account to verify that the information entered is correct and to ensure vendor payments are hassle-free.

Please note that it may take 3 business days for the bank to process the payment.

After you receive the deposit, you must verify your bank account. To do this, use a bank statement or call your bank, and follow the steps below.

Verify bank account

  • Go to 'https://pay.google.com/' and log in with your Gmail account
  • Click on 'Subscriptions and Services
  • Under "Vendor Services," click on "Account Information
  • Under 'How you get paid'click 'Manage payment methods
  • Find the name of the payment method you wish to verify and click 'Resolve'
  • On the next screen, select from the drop-down menu the amount that was deposited into your account by Google.Then click 'Verify'.
  • Google Cloud Platform project
  • Create Project

Select the 'hamburger' menu icon in the top left corner of the dashboard and navigate to 'Home' to return to the 'Google Cloud Platform' dashboard. Then at the top of the page, click on 'Select a project' or 'My First Project' and then 'New project'.

  • Project details

Now enter the details of your new project. To start with, this is the 'Project name'. We recommend that you use your company name for this.

Next, select 'Browse' under 'Location' to link an 'organization'. If you have already created an organization, select the desired option, otherwise select No organization.

Please note that if you have already registered multiple 'billing accounts', an additional field with the option to select a 'Billing account' will be displayed. Here, select the account you wish to link.

Then click on 'Create', which will create the project. You will now be automatically redirected to the Google Cloud Platform 'dashboard'.

Generate and restrict API keys for Google Maps Platform

Requirements

  • Gmail account
  • Google Cloud Billing account (activated/validated)
  • Google Cloud Platform project

Steps

When performing the steps, go to Google Maps platform'and select 'Sign in' at the top right corner to sign in with your Gmail account. After logging in, you will be taken to the Google Cloud Platform dashboard.

Next, you need to check that the correct project is selected. You can find this at the top of the blue bar of the dashboard. Here you need to select the project for which the steps to be completed later should be performed.

Once the correct project is selected, select the 'hamburger' menu icon in the top left corner of the dashboard and navigate to 'APIs Services'. The API dashboard will now be displayed. This is the starting point of each 'main' step that will be referenced from now on.  

1. Activating services

Navigate via the left menu to 'Library'. Under 'Search for APIs Services' look for the API services listed below. Then select the service in question and click on 'Enable'.

Varies by site

  • API services to be activated:
  • Maps Embed API
  • Maps JavaScript API
  • Geocoding API
  • Places API
  • YouTube Data API v3

After activating a service, you are automatically redirected to the 'APIs' page, under which 'Enabled APIs' all activated services are listed. Check in this list whether the service you just activated actually appeared in this list. Repeat this process for all services to be activated. In the end, all services to be activated should be activated.

Please note that there is an exception for the 'YouTube Data API v3' service. This service is not shown in the overview of activated services and after activation you are not redirected to the page with 'Enabled APIs'. After activation you will see the 'YouTube Data API v3' page where a 'green' check mark indicates that the service is activated.

  • API key(s)
  • Generate

Using the left menu, navigate to 'Credentials' and select 'Create credentials'. Next select 'API key'. The API key will be created and select 'Close'. Now do this again so that two new API keys are displayed, 'API key 1' and 'API key 2' respectively.

  • Limit

2.2.1. API key 1 (Public key)

Navigate to 'Credentials' from the left menu and change 'API key 1', by selecting the 'pencil' icon.

Now under 'Name' where 'API key 1' is displayed change it to 'Public key' and under 'Application restrictions' select the option 'HTTP referrers (web sites)'.

Website restrictions

Restrict the requests such as location data retrieval that can be done through this key to your own website by associating your domain. To do this, select 'Add an item' under 'Website restrictions' and enter the domain name below and then click 'Done'.

Domain name to add (New item / Referrer):

●*yourheaddomain.com/*

Please note that the domain name must start with a * and end in /*.

Finally, you need to restrict the key by choosing 'Restrict key' under 'API restrictions'.

API restrictions

Limit the services to be used that can be invoked by means of this key to the services activated in step 1 (Activate Services).

To do this, in 'Select APIs' select all required services by looking them up on the basis of their name and checking the checkbox.

Then click 'OK' and verify that all services are listed under the 'Selected APIs' section that just appeared.

Save the changes by clicking 'Save'. You will be redirected to the 'Credentials' page.

2.2.2. API key 2 (Private key)

Using the left menu, navigate to 'Credentials' and change 'API key 2', by selecting the 'pencil' icon.

Now under 'Name' where 'API key 2' is displayed change it to 'Private key' and under 'Application restrictions' select the option 'None'. (This option should be selected by default).

Finally, you need to restrict the key by selecting 'Restrict key' under 'API restrictions'.

API restricties

Limit the services that can be invoked by means of this key to the services listed below.

To do this, in 'Select APIs' select all the required services by looking them up by name and checking the checkbox.

Services:

  • Maps Embed API
  • Maps JavaScript API
  • Geocoding API

Then click 'OK' and verify that all the services listed above are displayed under the 'Selected APIs' section that just appeared.

Save the changes by clicking 'Save'. You will be redirected to the 'Credentials' page.

 

 

 

Reactions (0)
See all the reactions of the readers
No comments posted yet