ClosestFacilityParameters

A class that contains settings that are used when solving a ClosestFacilityTask. The ClosestFacilityParameters class contains all inputs for the ClosestFacilityTask, as well as settings such as the impedance attribute, accumulate and restriction attributes, backtrack (u-turn) policy, etc.

Since

200.1.0

See also

Properties

Link copied to clipboard

Accumulate attribute names. The accumulate attribute names e.g. "Minutes", "Miles", etc. Accumulate attributes are useful when more information other than the default impedance attribute is required.

Link copied to clipboard

The default cutoff value to stop traversing.

Link copied to clipboard

The default number of target facilities to find.

Link copied to clipboard

Directions distance units. Describes the unit of measurement for the length of directions. Default value UnitSystem.Metric will be returned on error.

Link copied to clipboard

Directions language e.g. "en-US". The ISO language code of the directions language to be set. If an unsupported language is set, an exception will occur at solve time in ClosestFacilityTask.solveClosestFacility(ClosestFacilityParameters) method.

Link copied to clipboard

Directions style. The directions setting to generate directions designed for different kind of applications. Default value DirectionsStyle.Desktop will be returned on error.

Link copied to clipboard

Output spatial reference. All route's geometries will be returned in this spatial reference in the even of a successful solve.

Link copied to clipboard

Whether or not turn-by-turn directions for the closest facility routes are to be returned.

Link copied to clipboard

Whether or not to return the point barriers used in the closest facility task.

Link copied to clipboard

Whether or not to return the polygon barriers used in the closest facility task.

Link copied to clipboard

Whether or not to return the polyline barriers used in the closest facility task.

Link copied to clipboard

Whether or not return routes are to be returned. Enabled by default. Can be returned in the event of a successful solve.

Link copied to clipboard

Route shape type. The enumeration value for the output shape type e.g. straight line shape, true shape, or no shape. Default value RouteShapeType.None will be returned on error.

Link copied to clipboard

Start time. Expects time in the time zone of first Stop.

Link copied to clipboard

Start time usage. Default value StartTimeUsage.DepartureTime will be returned on error.

Link copied to clipboard

The travel direction for the closest facility computation (to or from facility). Default value TravelDirection.FromFacility will be returned on error.

Link copied to clipboard

Travel mode. Travel mode that will be used for closest facility's solving. List of supported travel modes can be obtained from ClosestFacilityTaskInfo.travelModes method.

Functions

Link copied to clipboard
Link copied to clipboard

Gets the search where clause from the specified network dataset's source feature class.

Link copied to clipboard
fun setFacilities(facilities: Iterable<Facility>)

Sets facilities. The set of facilities loaded as network locations during analysis.

fun setFacilities(featureTable: ArcGISFeatureTable, queryParameters: QueryParameters)

Sets the facilities from the features in specified feature table. The feature table can be either local or online. The feature table must be of geometry type point. Attributes from the feature table are mapped to the properties on the facilities objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until Solve is called. Sets facilities by importing them from local or remote table.

Link copied to clipboard
fun setIncidents(incidents: Iterable<Incident>)

Sets incidents. The set of incidents loaded as network locations during analysis.

fun setIncidents(featureTable: ArcGISFeatureTable, queryParameters: QueryParameters)

Sets the incidents from the features in specified feature table. The feature table can be either local or online. The feature table must be of geometry type point. Attributes from the feature table are mapped to the properties on the incidents objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until Solve is called. Sets incidents by importing them from local or remote table.

Link copied to clipboard

Sets point barriers.

fun setPointBarriers(featureTable: ArcGISFeatureTable, queryParameters: QueryParameters)

Sets the point barriers from the features in specified feature table. The feature table can be either local or online. The feature table must be of geometry type point. Attributes from the feature table are mapped to the properties on the barrier objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until Solve is called. Sets point barriers by importing them from local or remote table.

Link copied to clipboard

Sets polygon barriers.

fun setPolygonBarriers(featureTable: ArcGISFeatureTable, queryParameters: QueryParameters)

Sets the polygon barriers from the features in specified feature table. The feature table can be either local or online. The feature table must be of geometry type polygon. Attributes from the feature table are mapped to the properties on the barrier objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until Solve is called. Sets polygon barriers by importing them from local or remote table.

Link copied to clipboard

Sets polyline barriers.

fun setPolylineBarriers(featureTable: ArcGISFeatureTable, queryParameters: QueryParameters)

Sets the polyline barriers from the features in specified feature table. The feature table can be either local or online. The feature table must be of geometry type polyline. Attributes from the feature table are mapped to the properties on the barrier objects generated from the specified feature table. The where clause set in the query parameters will be applied to the feature table. If an online feature table is specified the table will not be queried for features until Solve is called. Sets polyline barriers by importing them from local or remote table.

Link copied to clipboard
fun setSearchWhereClause(sourceName: String, searchWhereClause: String)

Sets a search where clause on the specified network dataset's source feature class. Only features satisfying the where clause for the specified feature class will be used to locate facilities or incidents on the network during the solve operation. If a where clause is not set all network features are used.