Home > @magiclane/maps-sdk > RoutingService

RoutingService class

Routing service class

Routes & Navigation

Signature:

export declare abstract class RoutingService 

Properties

Property

Modifiers

Type

Description

transferStatistics

static

readonly

any

Get network transfer statistics for online route calculations.

Methods

Method

Modifiers

Description

calculateRoute(waypoints, routePreferences, onCompleteCallback)

static

Calculate a route between the specified waypoints.

cancelRoute(taskHandler)

static

Cancel the route calculation associated with the specified listener.

getEVCarModels()

static

Get the available EV car models list.

getRouteStatus(taskHandler)

static

Get the status for the route monitored by the given task handler.

isCalculationRunning(taskHandler)

static

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

resetRouteRoadBlocks()

static

Reset the user road blocks.

This will remove all the user road blocks set by the user.

setRouteRoadBlock(instruction)

static

Set a user road block from the provided route instruction.