timeDistanceToNextTurn property
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:
- timeDistanceToNextNextTurn - Time/distance to next-next turn.
- remainingTravelTimeDistance - Total remaining time/distance.
Implementation
TimeDistance get timeDistanceToNextTurn {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getTimeDistanceToNextTurn',
);
return TimeDistance.fromJson(resultString['result']);
}