|
Maps SDK for C++ 1.0.0
|
Core navigation engine. More...


Public Member Functions | |
| NavigationService (const NavigationService &)=delete | |
| NavigationService (NavigationService &&)=default | |
| Default move constructor noexcept is deduced. | |
| NavigationService & | operator= (const NavigationService &)=delete |
| NavigationService & | operator= (NavigationService &&navService)=default |
| Default move assignment noexcept is deduced. | |
| int | startNavigation (const LandmarkList &waypoints, const RoutePreferences &routePreferences, NavigationListener navigationListener, ProgressListener progressListener, sense::DataSourcePtr positionSource=sense::DataSourcePtr()) noexcept |
| Start a new navigation. | |
| int | startNavigation (const Route &route, NavigationListener navigationListener, ProgressListener progressListener, sense::DataSourcePtr positionSource=sense::DataSourcePtr()) noexcept |
| Start a new navigation. | |
| int | startSimulation (const LandmarkList &waypoints, const RoutePreferences &routePreferences, NavigationListener navigationListener, ProgressListener progressListener, float speedMultiplier=1.f) noexcept |
| Start a new simulation. | |
| int | startSimulation (const Route &route, NavigationListener navigationListener, ProgressListener progressListener, float speedMultiplier=1.f) noexcept |
| Start a new simulation. | |
| bool | isNavigationActive (NavigationListener navigationListener=NavigationListener()) const noexcept |
| Check if there is an active navigation in progress. | |
| bool | isSimulationActive (NavigationListener navigationListener=NavigationListener()) const noexcept |
| Check if there is an active simulation in progress. | |
| bool | isTripActive (NavigationListener navigationListener=NavigationListener()) const noexcept |
| Check if there is an active trip ( navigation or simulation ) in progress. | |
| int | skipNextIntermediateDestination (NavigationListener navigationListener=NavigationListener()) const noexcept |
| Skip next intermediate destination on the navigation route. | |
| Route | getNavigationRoute (NavigationListener navigationListener=NavigationListener()) const noexcept |
| Get the current route used for navigation. | |
| void | cancelNavigation (NavigationListener navigationListener=NavigationListener()) noexcept |
| Cancel the active navigation. | |
| NavigationService & | setNavigationRoadBlock (int length, int startDistance=-1, NavigationListener navigationListener=NavigationListener()) noexcept |
| Set a roadblock on the current route having the length specified in meters starting from the current GPS position. | |
| void | updateNavigationSound (NavigationListener navigationListener=NavigationListener()) noexcept |
| Request to the navigation service to send the updated sound to the navigation listener. | |
| TimeDistance | getBetterRouteTimeDistanceToFork (NavigationListener navigationListener=NavigationListener()) const noexcept |
| Get better route time-distance until it forks the navigation route. | |
| NavigationInstructionRef | getNavigationInstruction (NavigationListener navigationListener=NavigationListener()) const noexcept |
| Get the current navigation instruction. | |
| sense::DataSourcePtr | getDataSource (NavigationListener navigationListener) const noexcept |
| Get access to navigation data source. | |
| float | getSimulationMinSpeedMultiplier () const noexcept |
| Get the minimum simulation speed multiplier. | |
| float | getSimulationMaxSpeedMultiplier () const noexcept |
| Get the maximum simulation speed multiplier. | |
| ParameterList | getIntermediateWaypointDropParameters () const noexcept |
| Get intermediate waypoint drop recommended parameters. | |
| ParameterList | getNavigationParameters () const noexcept |
| Get navigation parameters. | |
| TransferStatisticsRef | getTransferStatistics () const noexcept |
| Get data transfer statistics for this service. | |
Core navigation engine.
Implements share-read / write Api object over INavigationService.
This behaves like a singleton, i.e. all instances are shared behind the same API interface.
Computes, manages, and updates active navigation sessions, including route following, rerouting, and turn-by-turn guidance.
|
inlinenoexcept |
Cancel the active navigation.
This method cancels the active navigation. If a route calculation is in progress then the registered progress listener will be signaled first with ProgressListener::notifyComplete( error::KCancel ) and then the NavigationListener::navigationError( error::KCancel ).
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
inlinenoexcept |
Get better route time-distance until it forks the navigation route.
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
inlinenoexcept |
Get access to navigation data source.
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
inlinenoexcept |
Get intermediate waypoint drop recommended parameters.
Possible parameters:
"waypoint_drop_radius" : large integer - radius in which the waypoint may be considered for a dropping attempt, in meters
"waypoint_drop_distance_threshold" : double - factor by which the last dropping attempt distance to waypoint should be multiplied in order to set the next dropping attempt distance,
i.e. next_drop_attempt_distance = next_drop_attempt_distance * "waypoint_drop_distance_threshold"
"waypoint_drop_min_distance_m" : large integer - minimum distance at which a waypoint may be target to a drop attempt
|
inlinenoexcept |
Get the current navigation instruction.
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
inlinenoexcept |
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
|
inlinenoexcept |
Get the current route used for navigation.
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
inlinenoexcept |
Get the maximum simulation speed multiplier.
|
inlinenoexcept |
Get the minimum simulation speed multiplier.
|
inlinenoexcept |
Get data transfer statistics for this service.
|
inlinenoexcept |
Check if there is an active navigation in progress.
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
inlinenoexcept |
Check if there is an active simulation in progress.
| [in] | navigationListener | Navigation listener used to identify the simulation instance |
|
inlinenoexcept |
Check if there is an active trip ( navigation or simulation ) in progress.
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
default |
Default move assignment noexcept is deduced.
| [in] | navService | The object to be moved |
|
inlinenoexcept |
Set a roadblock on the current route having the length specified in meters starting from the current GPS position.
| [in] | length | The length specified in meters |
| [in] | startDistance | The distance from start where the roadblock begins, defaults to -1 meaning the current navigation position |
| [in] | navigationListener | Navigation listener used to identify the navigation session |
|
inlinenoexcept |
Skip next intermediate destination on the navigation route.
| [in] | navigationListener | Navigation listener used to identify the navigation session |
If there are no more intermediate waypoints on the route, error::KNotFound is returned
The route will be recalculated and an INavigationListener::onRouteUpdated notification will be thrown
|
inlinenoexcept |
Start a new navigation.
| [in] | waypoints | List of waypoints for the navigation. |
| [in] | routePreferences | Route calculation preferences. |
| [in] | navigationListener | Listener for navigation-specific events. |
| [in] | progressListener | Listener to be used for signaling route calculation progress events. This will be used only when the route is calculated or recalculated. |
| [in] | positionSource | Source of position. Optional. |
The last available position from the PositionService will be used as first waypoint in the navigation route calculation
For possible error codes returned in IProgressListener::notifyComplete see RoutingService::calculate()
Possible error codes returned in INavigationListener::onNavigationError
|
inlinenoexcept |
Start a new navigation.
| [in] | route | Route to use for the navigation. |
| [in] | navigationListener | Listener for navigation-specific events. |
| [in] | progressListener | Listener to be used for signaling route calculation progress events. This will be used only when the route is recalculated. This will be used only when the route is calculated or recalculated. |
| [in] | positionSource | Source of position. Optional. |
For possible error codes returned in IProgressListener::notifyComplete see RoutingService::calculate(), triggered when navigation route is recalculated
Possible error codes returned in INavigationListener::onNavigationError
|
inlinenoexcept |
Start a new simulation.
| [in] | waypoints | List of waypoints for the simulation. |
| [in] | routePreferences | Route calculation preferences. |
| [in] | navigationListener | Listener for simulation-specific events. |
| [in] | progressListener | Listener to be used for signaling route calculation progress events. This will be used only when the route is initially calculated. |
| [in] | speedMultiplier | The route simulation speed multiplier. Accepted values are in the interval [getSimulationMinSpeedMultiplier, getSimulationMaxSpeedMultiplier]. If set to 1.f the simulation speed is the speed limit of the traveled links |
The last available position from the PositionService will be used as first waypoint in the navigation route calculation
For possible error codes returned in IProgressListener::notifyComplete see RoutingService::calculate()
Possible error codes returned in INavigationListener::onNavigationError
|
inlinenoexcept |
Start a new simulation.
| [in] | route | Route to use for the simulation. |
| [in] | navigationListener | Listener for simulation-specific events. |
| [in] | progressListener | Listener to be used for signaling route calculation progress events. |
| [in] | speedMultiplier | The route simulation speed multiplier. Accepted values are in the interval [getSimulationMinSpeedMultiplier, getSimulationMaxSpeedMultiplier] If set to 1.f the simulation speed is the speed limit of the traveled links |
For possible error codes returned in IProgressListener::notifyComplete see RoutingService::calculate(), triggered when navigation route is recalculated
Possible error codes returned in INavigationListener::onNavigationError
|
inlinenoexcept |
Request to the navigation service to send the updated sound to the navigation listener.
The navigation service will call the NavigationListener::navigationSound() callback with the updated sound.
| [in] | navigationListener | Navigation listener used to identify the navigation session |