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.withUri(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.
-
createParameters(
{required FeatureCollection collection}) → Future< RouteParameters> - Imports route parameters from feature collection and then adjusts imported parameters to current Route task.
-
createParametersWithPortalItem(
PortalItem portalItem) → Future< RouteParameters> - Imports route parameters from portal item and then adjusts imported parameters to current Route task.
-
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(
RouteParameters routeParameters) → Future< RouteResult> - Solves a route passing in a parameters object.
-
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.
-
createRouteResultWithFeatureCollection(
FeatureCollection collection) → Future< RouteResult> - Imports route result from feature collection.