Configuring Google Maps API
Pega Field Service uses the Google Maps API to create locations, present map information, calculate drive time, and enable route optimization of daily and weekly trip schedules.
Before using the Google Maps API, enter a Google license key in the Pega Field Service Admin portal settings, and then configure it. Google Maps API is licensed separately and is not included as part of the Pega Field Service application. A license must be procured from Google or an authorized Google reseller. For more information on registering and acquiring the license key, visit the Google Maps API page.
When you receive your key, follow these steps to configure and use Google Maps:
Log in by using an administrator account. Dev Studio opens.
Click
.In the navigation pane, click Settings.
To update or add the Google API key, in the Google Maps API field enter the license key values that you received.
The following table lists the APIs that are used in the Pega Field Service application.Note: If an API key is configured with any restrictions under the Application restrictions type, you cannot use it for both the JavaScript API (Maps JavaScript API and Directions API) and server-side APIs (Geocoding API, Time Zone API, and Distance Matrix API). In addition, the API Documentation URL links and Connect REST URL links are subject to change. Google API Portal Usage API Documentation Connect REST URL Geocoding API Admin and Dispatcher Captures the latitude and longitude values for a given address. For example, the latitude and longitude of a customer location and a field worker’s address in the Admin portal. Geocoding API Documentation Geocode API Time Zone API Admin Captures the time zone for a given address. For example, the time zone of a customer location and a field worker’s address. Timezone API Documentation Timezone API Distance Matrix API Dispatcher and Interaction portal Captures the distance and drive time for two or more locations. Distance Matrix API Documentation Distance Matrix API Maps JavaScript API Dispatcher portal Displays custom maps. Maps JavaScript API Documentation JavaScript API Directions API Dispatcher portal Calculates optimized and unoptimized trip routes, captures directions between multiple locations, and renders the route directions on the custom map for a given set of locations. Note: This is used only for daily and weekly trip scheduling. Directions API Documentation JavaScript API
Previous topic Enabling the Pega Field Service job schedulers Next topic Reports