Parameters used to perform automatic rerouting, if off-route while navigating a route. More...
|ReroutingParameters(Esri::ArcGISRuntime::RouteTask *routeTask, const Esri::ArcGISRuntime::RouteParameters &routeParameters, QObject *parent = nullptr)|
|Esri::ArcGISRuntime::ArcGISFeatureTable *||networkEdgeGeometries() const|
|Esri::ArcGISRuntime::RouteTask *||routeTask() const|
This class defines how automatic rerouting calculations will be performed if off-route is detected while navigating a route. To enable rerouting, call the RouteTracker::enableRerouting method passing in this class as the argument.
Note that rerouting only occurs when the current location is off-route, but on or near the transportation network edges. For example if an off-route state is detected but the tracked location is in a parking lot, away from any transportation network edges, rerouting will not occur, and will occur only when a subsequent tracked location is on or near the transportation network edges.
Member Function Documentation
Parameters: : Rerouting Parameters(Esri: : *route A r c GISRuntime: : Route Task Task, const Esri: : &route A r c GISRuntime: : Route Parameters Parameters, QObject *parent = nullptr)
Creates a Rerouting parameters.
- routeTask - A RouteTask capable of solving routes on the same network used by the original route.
- routeParameters - Creates a re-routing parameters object based on a RouteTask and RouteParameters.
- parent - The optional parent QObject.
errorOccurred is emitted if the RouteTask or RouteParameters are
See also RouteResult.
[override virtual] Rerouting
Parameters: : ~Rerouting Parameters()
Parameters: : i s() const Visit First Stop On Start
Returns whether the first stop must be visited when rerouted (
false by default).
: *Rerouting A r c GISRuntime: : A r c GISFeature Table Parameters: : network Edge() const Geometries
Returns a FeatureTable containing the Polyline geometries that the RouteTask's network is based on. During the rerouting the geometries are used to determine if the current location is on or near the navigation network. The rerouting calculation will be skipped if the current location is off the network. The geometry type of the feature table must be a Polyline.
Setting this property is only needed when the RouteTask for the navigation is based on a service. When the RouteTask is based on local data on the device, access to the Polyline geometries is already available to the rerouting algorithm.
The FeatureTable can be the original network source data or one created specifically for checking if located on an edge.
If there are multiple sources, the geometries should be merged into a single table.
Only the geometries are needed in the FeatureTable, not the attributes.
Online feature services should support pagination, otherwise RouteTracker::enableRerouting will emit an error. To improve performance, the online feature service should have a maxRecordCount >=
2000 (this decreases the count of online queries).
See also setNetworkEdgeGeometries().
: Rerouting A r c GISRuntime: : Route Parameters Parameters: : route Parameters() const
Returns a RouteParameters object that defines parameters for the rerouting RouteTask.
The following RouteParameters properties will be ignored: RouteParameters::setStopsWithFeatureTable(ArcGISFeatureTable, QueryParameters), RouteParameters::isFindBestSequence, RouteParameters::outputSpatialReference, RouteParameters::isPreserveFirstStop, RouteParameters::startTime, RouteParameters::isReturnDirections, RouteParameters::isReturnStops, and RouteParameters::isReturnRoutes.
: *Rerouting A r c GISRuntime: : Route Task Parameters: : route Task() const
Returns a RouteTask capable of solving routes on the same network that created the original route.
This is usually the same RouteTask that was used to create the route being tracked. The RouteTask will be used for rerouting in background thread.
Parameters: : set Network(Esri: Edge Geometries : *network A r c GISRuntime: : A r c GISFeature Table Edge) Geometries
Sets the networkEdgeGeometries to networkEdgeGeometries.
See also networkEdgeGeometries.
Parameters: : set Strategy(Esri: : strategy) A r c GISRuntime: : Rerouting Strategy
Sets the strategy to strategy.
See also strategy.
Parameters: : set Visit(bool visit First Stop On Start First) Stop On Start
Sets the visitFirstStopOnStart to visitFirstStopOnStart.
See also isVisitFirstStopOnStart.
: Rerouting A r c GISRuntime: : Rerouting Strategy Parameters: : strategy() const
Returns a rerouting strategy that determines how new routes are created (to the next waypoint by default).
See also setStrategy().