Action

An action specifies what needs to be done at or during a specific portion of the route.

Examples of actions:

  • Turn right
  • Board a ferry
  • You have reached your destination

Actions in a section are divided into actions, pre-actions, and post-actions:

  • Pre-actions are performed before the departure of a section.
  • Post-actions are performed after the arrival of a section.
  • Actions are performed between the departure and arrival.

For more information about actions and returning human-readable instructions, see Instructions use case.

Example

An action may involve turning: ...

"actions": [
  ...
  {
    "action": "turn",
    "direction": "left",
    "duration": 167,
    "offset": 85,
    "severity": "light"
  },
  ...
]
...

A post-action may involve charging an electric vehicle:

...
"postActions": [
  {
    "action": "chargingSetup",
    "duration": 300
  },
  {
    "action": "charging",
    "arrivalCharge": 8.9334,
    "consumablePower": 50.0,
    "duration": 5045,
    "targetCharge": 72.0
  }
],
...

results matching ""

    No results matching ""