Google Maps Integration
  • 12 Jul 2022
  • 1 Minute to read
  • Dark
    Light

Google Maps Integration

  • Dark
    Light

Article Summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.4.0
Root FolderExample Lab - Google Maps Integration
Modules None
DependenciesNone

This Example Lab project demonstrates how to use Google Maps integration to get the distance and duration by car between two user-specified addresses.


Explanation

This project works by using a REST service that calls the Google Maps API in the flow. By editing details in the URL (relative to base) using brackets "{}" the user can create variables that are displayed as flow step inputs. In this example, the destination and origin are edited to require user input for dynamic output. The user can enter any valid address and this step will output the distance in KM between the two destinations as well as the travel time by car. This data is output in JSON format which then needs to be deserialized with the JSON deserialize step and broken down into specific categories. The Flow finishes with a popup that will display the user-selected origin and destination as well as the distance and travel time between them.

Reference Articles



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.4.0 or later using our Importing/Exporting article.





Was this article helpful?