timeDistanceToNextTurn property

TimeDistance get timeDistanceToNextTurn

Time and distance to next turn.

Returns the estimated time (in seconds) and distance (in meters) from the current position to the next turn instruction. Updated continuously as the user approaches the turn.

Returns

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

See also:

Implementation

TimeDistance get timeDistanceToNextTurn {
  final OperationResult resultString = objectMethod(
    pointerId,
    'NavigationInstruction',
    'getTimeDistanceToNextTurn',
  );

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