Skip To Content ArcGIS for Developers Sign In Dashboard

ClosestFacilityParameters QML Type

Parameters for a ClosestFacilityTask, such as facilities, incidents, barriers, and whether to return directions. More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.1
Inherits:

Object

Properties

Signals

Methods

Detailed Description

Facilities, incidents and barriers must have the same spatial reference, but do not need to be reprojected to match the network dataset's spatial reference. For example, the network dataset could be in WKID 4326, and your map, facilities, incidents and barriers could all be in WKID 3857. The ClosestFacilityTask will automatically reproject the facilities, incidents and barriers, and output the ClosestFacilityRoute in whatever output spatial reference is specified.

Note: You cannot declare or create a component of this type in QML code. The standard pattern is to retrieve one from the ClosestFacilityTask type so it already contain defaults values necessary for solving closest facility.

See also ClosestFacilityTask::createDefaultParameters.

Property Documentation

accumulateAttributeNames : list<string>

The accumulateAttributeNames of the ClosestFacilityParameters.


defaultImpedanceCutoff : double

The default cutoff value to stop traversing.

The units for impedance cutoff is based on the value of the TravelMode.impedanceAttributeName. For example, if TravelMode.impedanceAttributeName parameter is TravelTime, the defaultImpedanceCutoff is specified in minutes.


defaultTargetFacilityCount : int

The default number of facilities to find.


directionsDistanceUnits : Enums.UnitSystem

The units in which the length information will be reported in the route directions.

See also Enums.UnitSystem.


directionsLanguage : string

The language of the resulting route directions.


directionsStyle : Enums.DirectionsStyle

The style of the resulting route directions.

See also Enums.DirectionsStyle.


outputSpatialReference : SpatialReference

The output spatial reference.


returnDirections : bool

The returnDirections of the ClosestFacilityParameters.


returnPointBarriers : bool

The returnPointBarriers of the ClosestFacilityParameters.

Reusing the PointBarriers from the ClosestFacilityResult (as opposed to using the original PointBarriers) can increase the speed of any subsequent route calculations.


returnPolygonBarriers : bool

The returnPolygonBarriers of the ClosestFacilityParameters.

Reusing the PolygonBarriers from the ClosestFacilityResult (as opposed to using the original PolygonBarriers) can increase the speed of any subsequent route calculations. This is particularly true for complex polygons.


returnPolylineBarriers : bool

The returnPolylineBarriers of the ClosestFacilityParameters.

Reusing the PolylineBarriers from the ClosestFacilityResult (as opposed to using the original PolylineBarriers) can increase the speed of any subsequent route calculations. This is particularly true for complex polylines.


returnRoutes : bool

The returnRoutes of the ClosestFacilityParameters.


routeShapeType : Enums.RouteShapeType

The output shape type for a closest facility.

See also Enums.RouteShapeType.


startTime : date

The start time of the route in UTC time.


startTimeUsage : Enums.StartTimeUsage

The startTimeUsage of the ClosestFacilityParameters.

See also Enums.StartTimeUsage.


travelDirection : Enums.TravelDirection

The travel direction (to or away from the facility) of the ClosestFacilityParameters.

See also Enums.TravelDirection.


travelMode : TravelMode

The travel mode for a closest facility.


Signal Documentation

accumulateAttributeNamesChanged()

Emitted when the accumulateAttributeNames property of this ClosestFacilityParameters changes.


defaultImpedanceCutoffChanged()

Emitted when the defaultImpedanceCutoff property of this ClosestFacilityParameters changes.


defaultTargetFacilityCountChanged()

Emitted when the defaultTargetFacilityCount property of this ClosestFacilityParameters changes.


directionsDistanceUnitsChanged()

Emitted when the directionsDistanceUnits property of this ClosestFacilityParameters changes.


directionsLanguageChanged()

Emitted when the directionsLanguage property of this ClosestFacilityParameters changes.


directionsStyleChanged()

Emitted when the directionsStyle property of this ClosestFacilityParameters changes.


outputSpatialReferenceChanged()

Emitted when the outputSpatialReference property of this ClosestFacilityParameters changes.


returnDirectionsChanged()

Emitted when the returnDirections property of this ClosestFacilityParameters changes.


returnPointBarriersChanged()

Emitted when the returnPointBarriers property of this ClosestFacilityParameters changes.


returnPolygonBarriersChanged()

Emitted when the returnPolygonBarriers property of this ClosestFacilityParameters changes.


returnPolylineBarriersChanged()

Emitted when the returnPolylineBarriers property of this ClosestFacilityParameters changes.


returnRoutesChanged()

Emitted when the returnRoutes property of this ClosestFacilityParameters changes.


routeShapeTypeChanged()

Emitted when the routeShapeType property of this ClosestFacilityParameters changes.


startTimeChanged()

Emitted when the startTime property of this ClosestFacilityParameters changes.


startTimeUsageChanged()

Emitted when the startTimeUsage property of this ClosestFacilityParameters changes.


travelDirectionChanged()

Emitted when the travelDirection property of this ClosestFacilityParameters changes.


travelModeChanged()

Emitted when the travelMode property of this ClosestFacilityParameters changes.


Method Documentation

void clearFacilities()

Clears the facilities that have been set on this ClosestFacilityParameters.


void clearIncidents()

Clears the incidents that have been set on this ClosestFacilityParameters.


void clearPointBarriers()

Clears the point barriers that have been set on this ClosestFacilityParameters.


void clearPolygonBarriers()

Clears the polygon barriers that have been set on this ClosestFacilityParameters.


void clearPolylineBarriers()

Clears the polyline barriers that have been set on this ClosestFacilityParameters.


string searchWhereClause(string sourceName)

Returns the search WHERE clause from the specified sourceName.


void setFacilities(list<Facility> facilities)

Sets the facilities for a ClosestFacilityTask by providing a list of Facilities.


void setFacilitiesWithFeatureTable(ArcGISFeatureTable featureTable, QueryParameters queryParameters)

Sets the facilities for a ClosestFacilityTask by providing a featureTable filtered with queryParameters.


void setIncidents(list<Incident> incidents)

Sets the incidents for a ClosestFacilityTask by providing a list of Incidents.


void setIncidentsWithFeatureTable(ArcGISFeatureTable featureTable, QueryParameters queryParameters)

Sets the incidents for a ClosestFacilityTask by providing a featureTable filtered with queryParameters.


void setPointBarriers(list<PointBarrier> pointBarriers)

Sets the pointBarriers for a ClosestFacilityTask by providing a list of PointBarriers.


void setPointBarriersWithFeatureTable(ArcGISFeatureTable featureTable, QueryParameters queryParameters)

Sets the point barriers for a ClosestFacilityTask by providing a featureTable filtered with queryParameters.


void setPolygonBarriers(list<PolygonBarrier> polygonBarriers)

Sets the polygonBarriers for a ClosestFacilityTask by providing a list of PolygonBarriers.


void setPolygonBarriersWithFeatureTable(ArcGISFeatureTable featureTable, QueryParameters queryParameters)

Sets the polygon barriers for a ClosestFacilityTask by providing a featureTable filtered with queryParameters.


void setPolylineBarriers(list<PolylineBarrier> polylineBarriers)

Sets the polylineBarriers for a ClosestFacilityTask by providing a list of PolylineBarriers.


void setPolylineBarriersWithFeatureTable(ArcGISFeatureTable featureTable, QueryParameters queryParameters)

Sets the polyline barriers for a ClosestFacilityTask by providing a featureTable filtered with queryParameters.


void setSearchWhereClause(string sourceName, string searchWhereClause)

Sets the searchWhereClause for the specified sourceName.

This filters the potential matches returned from the task based on an expression.



Feedback on this topic?