timeDistanceToNextNextTurn property

TimeDistance get timeDistanceToNextNextTurn

Get the distance to the next-next turn in meters and time in seconds.

If there are no next next turn available, the time distance to next turn will be returned

Returns

  • The time to the next-next turn in seconds and distance in meters

Throws

  • An exception if it fails.

Implementation

TimeDistance get timeDistanceToNextNextTurn {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'NavigationInstruction',
    'getTimeDistanceToNextNextTurn',
  );

  return TimeDistance.fromJson(resultString['result']);
}