AbstractStaticsimulationStaticsimulationStaticcancelCancel 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.
Navigation listener used to identify the navigation session.
StaticgetGet better route time-distance until it forks the navigation route.
Navigation listener used to identify the navigation session.
TimeDistance object containing the time in seconds and distance in meters to the next fork
StaticgetGet the current navigation instruction.
Navigation listener used to identify the navigation session.
NavigationInstruction object
StaticgetGet the current route used for navigation.
Navigation listener used to identify the navigation session.
Target route for the navigation session
StaticisCheck if there is an active navigation in progress.
Navigation listener used to identify the navigation session.
True if there is an active navigation in progress, false otherwise.
StaticisCheck if there is an active simulation in progress.
Navigation listener used to identify the simulation instance.
True if there is an active simulation in progress, false otherwise.
StaticisCheck if there is an active trip (navigation or simulation) in progress.
Navigation listener used to identify the navigation session.
True if there is an active trip in progress, false otherwise.
StaticsetCancel the active navigation. Set a roadblock on the current route having the length specified in meters starting from the current GPS position.
The length specified in meters.
Object containing additional options
OptionalstartDistance?: numberThe distance from start where the roadblock begins, defaults to -1 meaning the current navigation position.
OptionaltaskHandler?: TaskHandlerNavigation listener used to identify the navigation session.
StaticskipSkip next intermediate destination on the navigation route. The route will be recalculated and an onRouteUpdated notification will be emitted
Navigation listener used to identify the navigation session.
GemError.success on success, GemError.notFound if there are no more intermediate waypoints on the route
StaticstartStart a new navigation
Route to use for the navigation.
OptionalonNavigationInstructionUpdate: (eventType: NavigationEventType, instruction?: NavigationInstruction) => voidCallback for navigation-specific events.
Object containing navigation callbacks
OptionalonBetterRouteDetected?: (route: Route, travelTime: number, delay: number, timeGain: number) => voidCallback called when a better route is detected.
OptionalonBetterRouteInvalidated?: () => voidCallback called when a better route becomes invalid.
OptionalonBetterRouteRejected?: (reason: GemError) => voidCallback called when a better route is rejected.
OptionalonDestinationReached?: (landmark: Landmark) => voidCallback called when the destination has been reached.
OptionalonError?: (error: GemError) => voidCallback called when an error occurs.
OptionalonNavigationInstruction?: (Callback called when the navigation instruction is updated.
OptionalonNavigationStarted?: () => voidCallback called when navigation starts.
OptionalonNotifyStatusChange?: (status: NavigationStatus) => voidCallback to notify UI if the navigation status has changed.
OptionalonRouteUpdated?: (route: Route) => voidCallback called when route was updated.
OptionalonSkipNextIntermediateDestinationDetected?: () => voidCallback called when skip intention is detected.
OptionalonTextToSpeechInstruction?: (textInstruction: string) => voidCallback called when a sound needs to be played.
OptionalonWaypointReached?: (landmark: Landmark) => voidCallback called when a waypoint on the route has been reached.
TaskHandler for the navigation session or null if failed
StaticstartStart a new simulation
Route to use for the simulation.
OptionalonNavigationInstructionUpdate: (eventType: NavigationEventType, instruction?: NavigationInstruction) => voidCallback for navigation-specific events.
Object containing simulation callbacks and options
OptionalonBetterRouteDetected?: (route: Route, travelTime: number, delay: number, timeGain: number) => voidCallback called when a better route is detected.
OptionalonBetterRouteInvalidated?: () => voidCallback called when a better route becomes invalid.
OptionalonBetterRouteRejected?: (reason: GemError) => voidCallback called when a better route is rejected.
OptionalonDestinationReached?: (landmark: Landmark) => voidCallback called when the destination has been reached.
OptionalonError?: (error: GemError) => voidCallback called when an error occurs.
OptionalonNavigationInstruction?: (Callback called when the navigation instruction is updated.
OptionalonNavigationStarted?: () => voidCallback called when simulation starts.
OptionalonNotifyStatusChange?: (status: NavigationStatus) => voidCallback to notify UI if the navigation status has changed.
OptionalonRouteUpdated?: (route: Route) => voidCallback called when route was updated.
OptionalonSkipNextIntermediateDestinationDetected?: () => voidCallback called when skip intention is detected.
OptionalonTextToSpeechInstruction?: (textInstruction: string) => voidCallback called when a sound needs to be played.
OptionalonWaypointReached?: (landmark: Landmark) => voidCallback called when a waypoint on the route has been reached.
OptionalspeedMultiplier?: numberSpeed multiplier for the simulation.
TaskHandler for the simulation session or null if failed
Navigation service class