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.
Only unbound input parameters are activated in the form dialog, so if you are using the script multiple times you may need to activate the expression parameter.
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.
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: