Home > @magiclane/maps-sdk > NavigationService > getBetterRouteTimeDistanceToFork
NavigationService.getBetterRouteTimeDistanceToFork() method
Get better route time-distance until it forks the navigation route.
Signature:
static getBetterRouteTimeDistanceToFork(input?: {
taskHandler?: TaskHandler;
}): TimeDistance;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ taskHandler, } |
(not declared) |
(Optional) |
|
input |
{ taskHandler?: TaskHandler; } |
(Optional) |
Returns:
TimeDistance object containing the time in seconds and distance in meters to the next fork
Exceptions
An exception if it fails.