remainingTravelTimeDistanceToNextWaypoint property

TimeDistance get remainingTravelTimeDistanceToNextWaypoint

Get remaining traveling time in seconds to the next way point and the remaining travel distance in meters to the next way point.

Returns

  • Remaining travel time in seconds to the next way point and the remaining travel distance in meters to the next waypoint.

Throws

  • An exception if it fails.

Implementation

TimeDistance get remainingTravelTimeDistanceToNextWaypoint {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'NavigationInstruction',
    'getRemainingTravelTimeDistanceToNextWaypoint',
  );

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