calculate route
This block is part of the google group and was last modified in core v10.4.28.
calculate route v10.4.28 - flow
flow - api key required
valueYour application's API key, created within your Google Cloud Platform Console.
- origin required
valueThe place ID, address, or textual latitude,longitude value from which you wish to calculate directions.
- destination required
valueThe place ID, address, or textual latitude,longitude value to which you wish to calculate directions.
- mode
valueSpecifies the mode of transport to use when calculating directions. Available modes are driving, walking, bicycling or transit.
- region
valueSpecifies the region code (top-level domain) two-char. value.
- traffic model
valueSpecifies the assumptions to use when calculating time in traffic. Options are best_guess, pessimistic or optimistic.
- arrival time
dateSpecifies the desired time of arrival for transit directions.
- departure time
dateSpecifies the desired time of departure for transit directions.
- waypoints
arraySpecifies an array of intermediate locations to include along the route between the origin and destination points as pass through or stopover locations. Place ids should be prefixed with place_id:, latitude,longitude can be passed directly, addresses will be mapped to latitude,longitude automatically.
Requests using more than 10 waypoints (between 11 and 25), or waypoint optimization, are billed at a higher rate.
- flow
flow - success
condition - results
array - error
value
A typical wiring for calculate route: a function trigger starts the flow; value feeds the api_key pin; number feeds the origin_latitude pin; number feeds the origin_longitude pin; number feeds the destination_latitude pin; number feeds the destination_longitude pin; value feeds the origin pin; value feeds the destination pin; the flow out pin feeds debug.

Version history
Introduced in v10.4.28.
Back to
google Return to the main group to view all sub-groups Back to google directions Return to the group to view all blocks within this group
