getTimeDistance method
- bool activePart = true,
inherited
Get length in meters and estimated travel time in seconds for the route / route segment.
Parameters
- IN activePart If true, returns only the active part of the route metrics, if false returns whole route metrics.
Returns
- TimeDistance object containing the time and distance information for the route.
Throws
- An exception if it fails.
Implementation
TimeDistance getTimeDistance({final bool activePart = true}) {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteBase',
'getTimeDistance',
args: activePart,
);
return TimeDistance.fromJson(resultString['result']);
}