Make Closest Facility Analysis Layer (Network Analyst Tools)
Summary
Makes a closest facility network analysis layer and sets its analysis properties. A closest facility analysis layer is useful in determining the closest facility or facilities to an incident based on a specified travel mode. The layer can be created using a local network dataset or a service hosted online or in a portal.
Usage
This tool is typically used as the first step in a network analysis workflow. Once the layer is created, you can add inputs to it using the Add Locations tool and solve the analysis using the Solve tool.
When ArcGIS Online or an ArcGIS Enterprise portal whose routing services are configured using ArcGIS Online is used as the input network data source, solving the analysis will consume credits and will be subject to certain limits, such as the number of allowed inputs.
Learn more about credit consumption and analysis limits in network analysis
By default, the new analysis layer's data will be created in a new, automatically-named feature dataset in the Current Workspace geoprocessing environment, which is usually the project geodatabase. Table-based data will be created at the root level of the same geodatabase because tables cannot be stored in a feature dataset. You can override this behavior using the Analysis Geodatabase and Analysis Feature Dataset Name parameters.
Although this tool can be used in a Python script, the recommended best practice for performing network analysis in Python is to use the solver classes in the
arcpy.naxmodule instead.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Network Data Source |
The network dataset or service on which the network analysis will be performed. The parameter can be specified using the following:
To use a portal URL, you must be signed in to the portal with an account that has routing privileges. Learn more about network analysis using routing services When using ArcGIS Online or an ArcGIS Enterprise portal whose routing services are configured using ArcGIS Online as the input network, solving the analysis will consume credits and will be subject to certain limits, such as the number of allowed inputs. Learn more about credit consumption and analysis limits in network analysis |
Network Dataset Layer; String |
|
Layer Name (Optional) |
The name of the network analysis layer that will be created. |
String |
|
Travel Mode (Optional) |
The name of the travel mode that will be used in the analysis. The travel mode represents a collection of network settings, such as travel restrictions and U-turn policies, that determine how a pedestrian, car, truck, or other medium of transportation moves through the network. Travel modes are defined on your network data source. An |
String |
|
Travel Direction (Optional) |
Specifies the direction of travel between facilities and incidents. The direction of travel may influence the facilities found if the network contains one-way streets or impedances based on the direction of travel. For instance, it may take 10 minutes to drive from a particular incident to a particular facility, but the journey may take 15 minutes traveling in the other direction, from the facility to the incident, because of one-way streets or different traffic conditions.
|
String |
|
Cutoff (Optional) |
The impedance value at which to stop searching for facilities for a given incident in the units of the impedance attribute used by the Travel Mode value. This cutoff can be overridden on a per-incident basis by specifying individual cutoff values in the incidents sublayer when the Travel Direction parameter is set to Toward facilities or on a per-facility basis by specifying individual cutoff values in the facilities sublayer when the Travel Direction parameter is set to Away from facilities. By default, no cutoff is used for the analysis. |
Double |
|
Number of Facilities to Find (Optional) |
The number of closest facilities to find per incident. This default can be overridden by specifying an individual value for the |
Long |
|
Time of Day (Optional) |
The time and date at which the routes will begin or end. The interpretation of this value depends on whether Time of Day Usage is set to be the start time or the end time of the route. If you chose a traffic-based impedance attribute, the solution will be generated given dynamic traffic conditions at the time of day specified here. A date and time can be specified as 5/14/2012 10:30 AM. Configure the analysis to use one of the following special dates to model a day of the week or the current date instead of a specific, static date:
Learn more about how dates and times are used and interpreted in a network analysis |
Date |
|
Time Zone (Optional) |
The time zone of the Time of Day parameter.
|
String |
|
Time of Day Usage (Optional) |
Specifies whether the value of the Time of Day parameter represents the arrival or departure time for the route or routes.
|
String |
|
Line Shape (Optional) |
Specifies the shape type that will be used for the route features that are output by the analysis. Regardless of the output shape type specified, the best route is always determined by the network impedance, not Euclidean distance. This means that only the route shapes are different, not the underlying traversal of the network.
|
String |
|
Accumulate Attributes (Optional) |
A list of cost attributes to be accumulated during analysis. These accumulated attributes are for reference only; the solver only uses the cost attribute used by the designated travel mode when solving the analysis. For each cost attribute that is accumulated, a This parameter is not available if the network data source is an ArcGIS Online service or the network data source is a service on a version of Portal for ArcGIS that does not support accumulation. |
String |
|
Generate Directions on Solve (Optional) |
Specifies whether directions will be generated when running the analysis. For an analysis in which generating turn-by-turn directions is not needed, turn directions generation off to reduce the time it takes to solve the analysis.
|
Boolean |
|
Ignore Invalid Locations at Solve Time (Optional) |
Specifies whether invalid input locations will be ignored. Typically, locations are invalid if they cannot be located on the network. When invalid locations are ignored, the solver will skip them and attempt to perform the analysis using the remaining locations.
|
Boolean |
|
Analysis Geodatabase (Optional) |
The file geodatabase workspace where the new network analysis layer's sublayer data will be stored. When this parameter is not specified, the sublayer data will be created in the Current Workspace geoprocessing environment, which is usually the project geodatabase. Learn more about the analysis data source of a network analysis layer |
Workspace |
|
Analysis Feature Dataset Name (Optional) |
The name to use for the new feature dataset that the tool will create in the analysis geodatabase to store the network analysis layer's sublayer data. When not specified, the feature dataset will be created with a random unique name. Learn more about the analysis data source of a network analysis layer |
String |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Network Analyst Layer |
The newly created network analysis layer. |
Network Analyst Layer |
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes