getBetterRouteTimeDistanceToFork static method

TimeDistance getBetterRouteTimeDistanceToFork({
  1. TaskHandler? taskHandler,
})

Get better route time-distance until it forks the navigation route.

Parameters

  • IN navigationListener Navigation listener used to identify the navigation session.

Returns

  • TimeDistance object containing the time in seconds and distance in meters to the next fork

Throws

  • An exception if it fails.

Implementation

static TimeDistance getBetterRouteTimeDistanceToFork({
  final TaskHandler? taskHandler,
}) {
  final OperationResult result = staticMethod(
    'NavigationService',
    'getBetterRouteTimeDistanceToFork',
    args: taskHandler ?? <dynamic, dynamic>{},
  );

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