Pega Field Service integration with the 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. To use this capability, you must provide a Google Maps API Key.
Before using the Google Maps API, you must enter a Google license key in Field Service Admin portal settings and then configure it. For more information on registering and acquiring the license key, refer to the Google Maps API webpage.
When you receive your key, you can configure and use Google Maps by completing the following steps:
- Log in to the Field Service Admin portal.
- On the navigation pane, click Configuration and then click the Settings tab.
- In the Update Google API key field, enter the license key value that you received from Google.
The following table lists the APIs that are used in the Pega Field Service application.
Google API | Portal | Usage | API Documentation URL | Connect REST URL |
---|---|---|---|---|
Geocoding API | Admin, Dispatcher, and Job Management | 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. | https://developers.google.com/maps/documentation/geocoding/start | |
Time Zone API | Admin and Job Management | Captures the time zone for a given address. For example, the time zone of a customer location and a field worker’s address. | https://developers.google.com/maps/documentation/timezone/intro | https://maps.googleapis.com/maps/api/timezone/xml |
Distance Matrix API | Dispatcher, Job Management, and Interaction portal | Captures the distance and drive time for two or more locations. | https://developers.google.com/maps/documentation/distance-matrix/intro | |
Maps JavaScript API | Dispatcher portal | Displays custom maps. | https://developers.google.com/maps/documentation/javascript/tutorial | 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. | https://developers.google.com/maps/documentation/directions/intro | JavaScript API |
Previous topic Updating the Google API Key from the Dispatcher portal