Home > @magiclane/maps-sdk > NavigationService > cancelNavigation

NavigationService.cancelNavigation() method

Cancel the active navigation. This method cancels the active navigation. If a route calculation is in progress then the provided callback will be triggered first with GemError.cancel.

Signature:

static cancelNavigation(taskHandler: TaskHandler): void;

Parameters

Parameter

Type

Description

taskHandler

TaskHandler

Navigation listener used to identify the navigation session.

Returns:

void

Exceptions

An exception if it fails.