Skip to main content

Integrating EPASS with Google Maps API

EPASS integrates with the Google API for our mapping features. To use the Google API, you must sign up for your own Google Cloud account and provide certain API details in the EPASS configuration.

info

As of Nov 2021, Google provides $200 worth of free transactions per month. This amount should be more than enough for your company when using EPASS with Google Maps.

Before Starting

  1. You need a Google account (a gmail.com email address). You can sign up here: https://accounts.google.com/SignUp
  2. Your Google account must be linked to a Google Cloud account, with billing enabled (you must provide a credit card number). Follow the steps at this link: https://console.cloud.google.com/billing

The integration process consists of these steps:

  • Create the mapping project in EPASS
  • Enable the Google APIs
  • Generate the API keys
  • Enter the API key in EPASS.

Creating the EPASS Mapping Project

First you will need to create the Mapping Project that EPASS uses to access the API.

To Create the Mapping Project:

  1. Log in to your Google account and follow this link: https://console.cloud.google.com/projectselector2/home/dashboard

  2. Click CREATE PROJECT.

    GoogleCloud_CreateProject_1

  3. In Project name, type EPASS Mapping. Leave the Location field set to No organization.

    GoogleCloud_CreateProject_2

Enabling the APIs

Now that you’ve created the EPASS Mapping Project, Google will bring you to the dashboard for the project. If you need to get back here, you can access it via the toolbar.

EnablingtheAPI

To Enable the APIs:

  1. From the project dashboard, click APIs and services > Library.

    GoogleCloud_APIsandServices_Library

  2. In the search box, type Maps JavaScript API, and then press ENTER.

  3. Locate Maps Javascript API in the search results, and then click ENABLE. You are returned to the API page.

    MapsJavaScriptAPI_Enable

  4. Under Additional APIs, open and ENABLE the following additional APIs:

    • Directions API
    • Distance Matrix API
    • Geocoding API
    • Maps Static API

    MapsJavaScriptAPI_Enable_2

  5. Confirm that under APIs > Enabled APIs, you see all five APIs listed.

    MapsJavaScriptAPI_Enable_3

Generating the API Key

Now that the required APIs are enabled, we need to generate the API Key for EPASS.

To Generate the API Key:

  1. From within the EPASS Mapping project, click Credentials.

    GoogleCloud_Credentials

  2. Click CREATE CREDENTIALS > API key.

    GoogleCloud_Credentials_2

  3. The key is generated. Click the Copy icon to copy the key to the clipboard. Paste the key to an email or Word doc to keep it safe.

    GoogleCloud_APICreated

  4. Click Close.

Entering the API Key in EPASS

Now that we have the API key, we need to set it up in EPASS so that the integration will function.

To Enter the API Key in EPASS:

  1. Log in to EPASS.

  2. Go to System Maintenance > Variables > Dispatching.

  3. Paste the API Key into the Google Mapping API Key field.

    DispatchingVariables_GoogleAPIKey

  4. Click OK.

  5. Restart EPASS.

Google Maps is now integrated into your EPASS system.

See Also

Updated

December 7, 2021