Directions
Get driving, traffic-aware driving, or transit directions between points.
Syntax
{ "id": "n1", "op": "DirectionsOp", "name": "directions", "x": 0, "y": 0, "params": {} }
One out of it starts at "sourcePort": "route".
Inputs
This operator has no input ports.
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
origin | field | {"lng":0,"lat":0} | |
destination | field | {"lng":0,"lat":0} | |
mode | field | "transit" | |
departureMode | field | "now" | |
departureTime | field | ||
trafficModel | field | "best-guess" | |
avoidTolls | field | false |
Outputs
| Port | Type |
|---|---|
route | value |
Details
- Category: Host operators
- Operator:
DirectionsOp - Runs: on the page, not in the engine: it cannot be compiled to SQL or an expression