ClosestFacilityTask class final

A class that implements the closest facility task.

The closest facility task class uses a transportation network to measure the cost of traveling between incidents and facilities and determines which are nearest to one other. When finding closest facilities, you can specify how many to find and whether the direction of travel is toward or away from them.

Implemented types
Mixed in types

Constructors

ClosestFacilityTask.withDataset(TransportationNetworkDataset dataset)
Creates a closest facility task with transportation network dataset.
factory
ClosestFacilityTask.withGeodatabase({required Uri databaseFileUri, required String networkName})
Creates a closest facility task with path to geodatabase.
factory
ClosestFacilityTask.withUrl(Uri uri)
Creates a closest facility 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
closestFacilityTaskInfo ClosestFacilityTaskInfo?
Closest facility task info.
no setter
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.
no setter
uri Uri?
The URL of online service.
no setter

Methods

cancelLoad() → void
Cancels loading metadata for the object.
inherited
createDefaultParameters() Future<ClosestFacilityParameters>
Creates default parameters.
createDefaultParametersCancelable() CancelableOperation<ClosestFacilityParameters>
Cancelable version of createDefaultParameters. See that method for more information.
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
solveClosestFacility({required ClosestFacilityParameters closestFacilityParameters}) Future<ClosestFacilityResult>
Solves a closest facility passing in a parameters object.
solveClosestFacilityCancelable({required ClosestFacilityParameters closestFacilityParameters}) CancelableOperation<ClosestFacilityResult>
Cancelable version of solveClosestFacility. See that method for more information.
toString() String
A string representation of this object.
inherited

Operators

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