timeDistanceToNextTurn property

TimeDistance get timeDistanceToNextTurn

Get distance to the next turn in meters, time in seconds.

Returns

  • TimeDistance object containing the traveled time and distance.

Throws

  • An exception if it fails.

Implementation

TimeDistance get timeDistanceToNextTurn {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteInstructionBase',
    'getTimeDistanceToNextTurn',
  );

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