timeDistance property

TimeDistance get timeDistance
inherited

Get length in meters and estimated travel time in seconds for the route / route segment.

Returns

  • TimeDistance object containing the time and distance information for the route segment.

Throws

  • An exception if it fails.

Implementation

TimeDistance get timeDistance {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteSegmentBase',
    'getTimeDistance',
  );

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