distanceToDestination property
Get the distance in meters from starting point on current route of the traffic event to the destination.
Returns
- The distance in meters if a route is available, otherwise 0.
Throws
- An exception if it fails.
Implementation
int get distanceToDestination {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteTrafficEvent',
'getDistanceToDestination',
);
return resultString['result'];
}