event property

TurnEvent get event

Navigation event for this turn (turn direction/type).

The returned value is a TurnEvent enum describing the manoeuvre (for example straight, right, left, roundabout, exitNr, etc.). Use the enum to show the correct icon or voice instruction in your UI.

Returns

  • TurnEvent: Navigation event for this turn (turn direction/type).

Implementation

TurnEvent get event {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'TurnDetails',
    'getEvent',
  );

  return TurnEventExtension.fromId(resultString['result']);
}