Skip to main content

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​

ParameterKindDefaultChoices
originfield{"lng":0,"lat":0}
destinationfield{"lng":0,"lat":0}
modefield"transit"
departureModefield"now"
departureTimefield
trafficModelfield"best-guess"
avoidTollsfieldfalse

Outputs​

PortType
routevalue

Details​

  • Category: Host operators
  • Operator: DirectionsOp
  • Runs: on the page, not in the engine: it cannot be compiled to SQL or an expression