Get directions

Purpose of this building block

You can use this building blocks to get travel directions using Google Maps API for a given journey. You will not only get the total distance, but also the individual steps.

Possible use cases

  • Calculate personalized driving directions and send them by email or include them into a PDF document
  • Print directions and steps in a nicely formatted table

Configuration

Reload

Click on the reload icon to scan the Google Form for modified, added or removed fields.

After adding the script to your flow, click on the keyboard icon in the input parameter section.

The result of the calculated journey will be stored in various variables.

If you are using multiple script for calculating different routes or different types of transportation you may want to give each result variable a prefix in order to be able to access each of the results.

Click on the prefix icon in the output parameter section and enter the prefix of your choice.

getDirectionsForm.png

Getting started

Copy the Directions app to see this building block in action

Questions and Feedback

If you have any comments on this guide, feel free to add them right to the Google document that we are using to create this site.

If you are not yet member of the Ultradox community on Google+, please join now to get updates from our end or to provide feedback, bug reports or discuss with other users.

Last Updated:

Share on Google+Share on FacebookShare on TwitterShare on LinkedIn