For some functions in OZmap, such as importing customers with only the address, the system requests a Google key with some APIs enabled:


  • Places API

  • Geocoding API

  • Maps JavaScript API

  • Elevation (for calculating length considering relief)



OZmap, by default, uses a general API in the system. However, it is not released for some functions,  which means that you need to create your key.

This article will help you in this creation process.


To access the Google Cloud Platform, which is where you will do the entire process, click here. 


Billing


The first step is to set up a billing account. When you create a new billing option, Google provides a $200 free trial that renews monthly.

But to be able to enable the API key, you must enter billing information. To do this:

  1. Go to the  Google Cloud Platform console.

  2. Click the menu button and select Billing.

  3. Set up your billing account.

    • 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.

    • If you already have a billing account, on the Billing page:

      • Click the Billing dropdown 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.

Create new project

  1. Go to the Google Cloud Platform console.

  2. Click the menu button and select Home.

  3. Click the project drop-down list and select NEW PROJECT.

  4. On the New Project page, fill in the required information.

    • Project Name: Accept the default or enter a custom name.

      • The project name can be changed at any time. For more information, see Identifying Projects.

    • Project ID: Accept the default or click EDIT to enter a custom ID.

      • The project ID cannot be changed after the project is created, so choose an ID that you are comfortable using throughout the life 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. For more information, see Overview of billing roles in IAM.

    • Location: If you have an organization you want to link your project to, click Browse and select it; otherwise, choose "No Organization".

      • For more information, see Creating and Managing Folders and relationships between organizations, projects, and billing accounts.

  5. Click CREATE


API Activation


  1. Go to the Google Cloud Platform console.

  2. Click the menu buttonand select APIs & Services > Library.

  3. On the API Library page, locate Maps and click VIEW ALL (17).

  4. On the Maps page, click on the API or SDK you want to enable, in this case the  GEOCODING API, PLACES API,  Maps JavaScript API, and ELEVATION

  5. Back on the API Library page, with the name of the API or SDK you selected:

    • If the button says ENABLE, click the button to enable the API or SDK.

    • If the button says MANAGE, the API or SDK is already enabled and you don't need to do anything else.

    • Note: Clicking either button will display the API or SDK panel. (Click the DISABLE button to remove the API or SDK from this project.)

  6. Repeat steps 2 through 5 for each API or SDK you want to enable.


To view the APIs or SDKs you have enabled:

  1. Go to the Google Cloud Platform console.

  2. Locate the Google Maps API page:

    • Click the menu button.

    • From Home, scroll down the menu to find and click Google Maps.

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

  3. Click on APIs to see the status of the APIs:

    • Enabled APIs: These APIs or SDKs are enabled.

    • Additional APIs: These APIs or SDKs are not enabled.


Get  


You must have at least one API key associated with your project.

To obtain an API key:

  1. Visite o Console do Google Cloud Platform.

  2. Click the project drop-down list and select or create the project for which you want to add an AP I ke

  3. Click the menu button  and select APIs & Services >  Credentials.

  4. On the Credentials page, click Create Credentials > API Key. 
    The API Key Created dialog box displays your newly created API key.

  5. Click Close. 
    The new API key is listed on the Credentials page under API Keys. 
    (Remember to restrict the API key before using it in production, to the keys you enabled above.)



Verification


To check the status of your API key, click here.