|
Maps SDK for C++ 1.0.0
|
RoutingService object. More...


Public Member Functions | |
| RoutingService ()=default | |
| default constructor | |
| RoutingService (const RoutingService &routingService)=delete | |
| Default copy constructor. | |
| RoutingService (RoutingService &&routingService)=default | |
| Default move constructor noexcept is deduced. | |
| RoutingService & | operator= (const RoutingService &routingService)=delete |
| Default copy assignment. | |
| RoutingService & | operator= (RoutingService &&routingService)=default |
| Default move assignment noexcept is deduced. | |
| int | calculateRoute (RouteList &possibleRoutes, LandmarkList const &waypoints, RoutePreferences const &routePreferences, ProgressListener progressListener) |
| Calculate a route between the specified waypoints. | |
| void | cancelRoute (ProgressListener progressListener) noexcept |
| Cancel the route calculation associated with the specified listener. | |
| bool | isCalculationRunning (ProgressListener progressListener) noexcept |
| Check if there is route calculation in progress associated with the specified listener. | |
| int | setRouteRoadBlock (RouteInstructionBase const &instruction) |
| Set a user road block from the provided route instruction. | |
| void | resetRouteRoadBlocks () noexcept |
| Reset the user road blocks. | |
| ERouteStatus | getRouteStatus (ProgressListener listener) const noexcept |
| Get the status for the route monitored by the given listener. | |
| EVCarModelList | getEVCarModels () const noexcept |
| Get the available EV car models list. | |
| std::pair< EVCarModel, int > | getEVCarModel (int id) const noexcept |
| Get the EV car models by id. | |
| TransferStatisticsRef | getTransferStatistics () const noexcept |
| Get data transfer statistics for this service. | |
RoutingService object.
It provides the support for route calculation.
To access the route calculation service we need to first create a session to it. This can be done using the default constructor. The method calculateRoute() can be used to initiate a route calculation.
The list of waypoints, route calculation preferences and the progress events listener are required to start the operation. The preferences for route calculation include route type, transport mode and avoid specific road types. One route is made of one or more route segments. One route segment is the path between two consecutive waypoints. If the route has only two waypoints then the route will have only one route segment.
Each route segment contains one or more route instructions that guide the user from the first waypoint to the second. One route instruction contains information about the turn to be taken, the road to follow, available signpost and lane information, traffic events that affect the route, etc.
Implements share-read / write Api object over IRoutingService.
This behaves like a singleton, i.e. all instances are shared behind the same API interface
|
delete |
Default copy constructor.
| [in] | routingService | The RoutingService object to be copied. |
|
default |
Default move constructor noexcept is deduced.
| [in] | routingService | The RoutingService object to be moved. |
|
inline |
Calculate a route between the specified waypoints.
| [in,out] | possibleRoutes | The list of possible routes between the specified waypoints |
| [in] | waypoints | The list of waypoints for the route. |
| [in] | routePreferences | The preferences for the route calculation. |
| [in] | progressListener | The listener for the route calculation progress notifications. |
Possible error codes returned in IProgressListener::notifyComplete
|
inlinenoexcept |
Cancel the route calculation associated with the specified listener.
| [in] | progressListener | The listener associated with the route calculation to be canceled. |
|
inlinenoexcept |
Get the EV car models by id.
| [in] | id | The id of the EV car model |
|
inlinenoexcept |
Get the available EV car models list.
|
inlinenoexcept |
Get the status for the route monitored by the given listener.
| [in] | listener | The listener monitoring the route |
|
inlinenoexcept |
Get data transfer statistics for this service.
|
inlinenoexcept |
Check if there is route calculation in progress associated with the specified listener.
| [in] | progressListener | The listener associated with the route calculation. |
|
delete |
Default copy assignment.
| [in] | routingService | The RoutingService object to be copied. |
|
default |
Default move assignment noexcept is deduced.
| [in] | routingService | The RoutingService object to be moved. |
|
inlinenoexcept |
Reset the user road blocks.
This will remove all the user road blocks set by the user.
|
inline |
Set a user road block from the provided route instruction.
| [in] | instruction | The route instruction containing the road block information. |