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