timeDistanceToNextNextTurn property

TimeDistance get timeDistanceToNextNextTurn

Time and distance to next-next turn.

Returns the estimated time (in seconds) and distance (in meters) from the current position to the turn after the next turn. If no next-next turn is available, returns time/distance to the next turn instead.

Returns

  • (TimeDistance) Time (seconds) and distance (meters) to next-next turn.

See also:

Implementation

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

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