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

RoutingService.isCalculationRunning() method

Check if there is route calculation in progress associated with the specified task handler.

Signature:

static isCalculationRunning(taskHandler: TaskHandler): boolean;

Parameters

Parameter

Type

Description

taskHandler

TaskHandler

The task handler associated with the route calculation to be canceled.

Returns:

boolean

true if the route calculation is in progress, false otherwise.

Exceptions

An exception if it fails.