NavigationManager
Import
js
import { NavigationManager } from '@gebeta/js/navigation';Methods
start(route, options, locationProvider)
ts
start(
route: RouteData,
options: { userId: string; role: string },
locationProvider: ILocationProvider
): voidstop()
ts
stop(): voidisNavigating()
ts
isNavigating(): booleangetCurrentStepIndex()
ts
getCurrentStepIndex(): numberon(event, callback) / off(event, callback)
ts
on(event: 'progress' | 'offroute' | 'arrive', callback: Function): voidEvents
| Event | Payload | Description |
|---|---|---|
progress | ProgressEvent | Fired on each location update |
offroute | — | User has deviated from the route |
arrive | — | User has reached the destination |