timeDistance property
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.
Implementation
TimeDistance get timeDistance {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteSegmentBase',
'getTimeDistance',
);
return TimeDistance.fromJson(resultString['result']);
}