RoutingService class abstract
Routing service class
Performs asynchronous route calculations using configurable preferences and Landmark waypoint lists. It returns ordered Route results with explicit error semantics for invalid input, cancellation, missing data, excessive duration or other failure modes, and exposes progress/task handles so callers can track completion.
See the RoutePreferences class for more information about the available routing options.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 Properties
- transferStatistics → TransferStatistics
-
Gets the transfer statistics.
no setter
Static Methods
-
calculateRoute(
List< Landmark> waypoints, RoutePreferences routePreferences, void onComplete(GemError err, List<Route> routes)) → TaskHandler? - Calculates a route between the specified waypoints.
-
cancelRoute(
TaskHandler taskHandler) → void - Cancels the route calculation associated with the specified listener.
-
getRouteStatus(
TaskHandler taskHandler) → RouteStatus - Gets the status for the route monitored by the given task handler.
-
isCalculationRunning(
TaskHandler taskHandler) → bool - Checks if there is a route calculation in progress associated with the specified task handler.
-
resetRouteRoadBlocks(
) → void - Resets the user road blocks.
-
setRouteRoadBlock(
RouteInstructionBase instruction) → GemError - Set a user road block from the provided route instruction.