ReroutingParameters class final

Represents the parameters that are used to perform automatic re-routing if off-route while navigating along a route.

This class defines how automatic re-routing calculations will be performed if off-route is detected while navigating along a route. To enable re-routing, call the RouteTracker.enableRerouting method passing in this class as the argument.

Note that re-routing 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, re-routing will not occur, and will occur only once a subsequent tracked location is on or near the transportation network edges.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
networkEdgeGeometries ArcGISFeatureTable?
A FeatureTable containing the Polyline geometries that the RouteTask's network is based on. During the re-routing the geometries are used to determine if the current location is on or near the navigation network. The re-routing calculation will be skipped if the current location is off the network. The geometry type of the feature table must Polyline.
getter/setter pair
routeParameters RouteParameters
A RouteParameters object that defines parameters for the rerouting RouteTask.
no setter
routeTask RouteTask
A RouteTask capable of solving routes on the same network that created the original route.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strategy ReroutingStrategy
A rerouting strategy that determines how new routes are created (to the next waypoint by default).
getter/setter pair
visitFirstStopOnStart bool
Whether the first stop must be visited when rerouted (false by default).
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create({required RouteTask routeTask, required RouteParameters routeParameters}) ReroutingParameters?
Creates a re-routing parameters object based on a RouteTask and RouteParameters.