Home > @magiclane/maps-sdk > NavigationService > setNavigationRoadBlock
NavigationService.setNavigationRoadBlock() method
Cancel the active navigation. Set a roadblock on the current route having the length specified in meters starting from the current GPS position.
Signature:
static setNavigationRoadBlock(length: number, input: {
startDistance?: number;
taskHandler?: TaskHandler;
}): void;Parameters
Parameter | Type | Description |
|---|---|---|
length | number | The length specified in meters. |
{ startDistance, taskHandler } | (not declared) | |
input | { startDistance?: number; taskHandler?: TaskHandler; } |
input properties:
- Optional startDistance?: number
- Optional taskHandler?: TaskHandler
Returns:
void
Exceptions
An exception if it fails.