Home > @magiclane/maps-sdk > NavigationService
NavigationService class
Navigation service class
Signature:
export declare abstract class NavigationService Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
number |
Get the maximum simulation speed multiplier. | |
|
|
number |
Get the minimum simulation speed multiplier. | |
|
|
any |
Get navigation transfer statistics. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Cancel 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. | |
|
|
Get better route time-distance until it forks the navigation route. | |
|
|
Get the navigation data source for a navigation session. | |
|
|
Get intermediate waypoint drop parameters. | |
|
|
Get the current navigation instruction. | |
|
|
Get navigation parameters. Possible parameters: - tts_announce_min_traffic_delay: large integer - the minimum traffic delay in seconds for which there should be a TTS announce | |
|
|
Get the current route used for navigation. | |
|
|
Check if there is an active navigation in progress. | |
|
|
Check if there is an active simulation in progress. | |
|
|
Check if there is an active trip (navigation or simulation) in progress. | |
|
setNavigationRoadBlock(length, { startDistance, taskHandler }, input) |
|
Cancel the active navigation. Set a roadblock on the current route having the length specified in meters starting from the current GPS position. |
|
|
Skip next intermediate destination on the navigation route. The route will be recalculated and an onRouteUpdated notification will be emitted | |
|
|
Start a new navigation | |
|
|
Start a new simulation | |
|
|
Update navigation sound instruction. Requests the navigation service to immediately generate and deliver an updated text-to-speech instruction to the onTextToSpeechInstruction callback. |