RouteTask class final

A route task object is used for calculation route by specified parameters.

A class that implements the route task. The route task class uses a transportation network to create a route between multiple stops. The route generated and the results returned honor the settings provided by a route settings object.

Implemented types
Mixed in types

Constructors

RouteTask.withDataset(TransportationNetworkDataset dataset)
Creates a route task with path to geodatabase.
factory
RouteTask.withGeodatabase({required Uri pathToDatabase, required String networkName})
Creates a route task with path to geodatabase.
factory
RouteTask.withUrl(Uri uri)
Creates a route task with URL.
factory

Properties

apiKey String
The API key allows your app to access ArcGIS location services and private portal items.
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
loadError ArcGISException?
The load error.
no setterinherited
loadStatus LoadStatus
The load status.
no setterinherited
onLoadStatusChanged Stream<LoadStatus>
A stream that reports changes to the LoadStatus.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transportationNetworkDataset TransportationNetworkDataset?
Transportation network dataset of local route task.
no setter
uri Uri?
The URL of online service.
no setter

Methods

cancelLoad() → void
Cancels loading metadata for the object.
inherited
createDefaultParameters() Future<RouteParameters>
Creates default parameters.
createDefaultParametersCancelable() CancelableOperation<RouteParameters>
Cancelable version of createDefaultParameters. See that method for more information.
createParameters({required FeatureCollection collection}) Future<RouteParameters>
Imports route parameters from feature collection and then adjusts imported parameters to current Route task.
createParametersCancelable({required FeatureCollection collection}) CancelableOperation<RouteParameters>
Cancelable version of createParameters. See that method for more information.
createParametersWithPortalItem(PortalItem portalItem) Future<RouteParameters>
Imports route parameters from portal item and then adjusts imported parameters to current Route task.
createParametersWithPortalItemCancelable(PortalItem portalItem) CancelableOperation<RouteParameters>
Cancelable version of createParametersWithPortalItem. See that method for more information.
getRouteTaskInfo() RouteTaskInfo
Gets route task info.
load() Future<void>
Loads the metadata for the object asynchronously.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retryLoad() Future<void>
Loads or retries loading metadata for the object asynchronously.
inherited
solveRoute({required RouteParameters routeParameters}) Future<RouteResult>
Solves a route passing in a parameters object.
solveRouteCancelable({required RouteParameters routeParameters}) CancelableOperation<RouteResult>
Cancelable version of solveRoute. See that method for more information.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

createRouteResult(PortalItem portalItem) Future<RouteResult>
Imports route result from portal item.
createRouteResultCancelable(PortalItem portalItem) CancelableOperation<RouteResult>
Cancelable version of createRouteResult. See that method for more information.
createRouteResultWithFeatureCollection({required FeatureCollection collection}) Future<RouteResult>
Imports route result from feature collection.
createRouteResultWithFeatureCollectionCancelable({required FeatureCollection collection}) CancelableOperation<RouteResult>
Cancelable version of createRouteResultWithFeatureCollection. See that method for more information.