traveledTimeDistance property

TimeDistance get traveledTimeDistance

Get the traveled distance in meters and the traveled time in seconds.

Returns

  • The traveled time in seconds and the the traveled distance in meters

Throws

  • An exception if it fails.

Implementation

TimeDistance get traveledTimeDistance {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'NavigationInstruction',
    'getTraveledTimeDistance',
  );

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