timeDistance property
TimeDistance
get
timeDistance
Duration and distance metrics for this segment.
Returns
- TimeDistance: total distance (meters) and estimated travel time (seconds) for the segment.
Implementation
TimeDistance get timeDistance {
final OperationResult resultString = objectMethod(
pointerId,
'RouteSegmentBase',
'getTimeDistance',
);
return TimeDistance.fromJson(resultString['result']);
}