Home > @magiclane/maps-sdk > RoutingService > cancelRoute

RoutingService.cancelRoute() method

Cancel the route calculation associated with the specified listener.

Signature:

static cancelRoute(taskHandler: TaskHandler): void;

Parameters

Parameter

Type

Description

taskHandler

TaskHandler

The listener associated with the route calculation to be canceled.

Returns:

void

Exceptions

An exception if it fails.