Find Closest Facilities Tool
How to use Find Closest Facilities Tool in Arc Toolbox ArcMap ArcGIS??
Find Closest Facilities |
Path to access the tool
:
Find Closest Facilities Tool, Server Toolset, Network Analyst Tools Toolbox
Find Closest Facilities
Finds one or more facilities closest to an incident based on travel time, distance, or other cost and outputs the best route, chosen facility, and driving directions between the incident and the facility. For example, you can use this tool to find the closest hospital to an accident, the closest police cars to a crime scene, or the closest store to a customer's address.
When finding closest facilities, you can specify how many facilities to find and whether the direction of travel is toward or away from them. If your network dataset supports traffic, you can also specify the time of day to account for travel times for that time and date. For instance, you can use this tool to search for hospitals within a 15-minute drive time of the site of an accident at a given time of day. Any hospitals that take longer than 15 minutes to reach based on the traffic conditions will not be included in the results.
The Find Closest Facilities and Make Closest Facility Layer tools are similar, but they are designed for different purposes. Use Find Closest Facilities if you are setting up a geoprocessing service; it simplifies the setup process; otherwise, use Make Closest Facility Layer.
To create a closest facility geoprocessing service using Find Closest Facilities, you only need to set up one tool, and you can publish the tool directly as a service. In contrast, you need to create a model with the Make Closest Facility Layer tool, properly connect it to various other tools, and publish the model to create a closest-facility geoprocessing service.
See Overview of the Network Analyst geoprocessing service examples to learn how to set up a closest facility service using tutorial data. One other option to consider is the ArcGIS Online Closest Facility service. The service runs like a geoprocessing tool in ArcMap, can be accessed from other applications, and includes high-quality road data for much of the world.
1. Incidents
This tool determines which facilities are closest to incidents, and this parameter specifies those incidents. A minimum of one incident is necessary to solve an analysis.
When specifying the incidents, you can set properties for each one, such as its name or service time, by using attributes. The incidents can be specified with the following attributes:
- OBJECTID—The system-managed ID field.
- SHAPE—The geometry field indicating the geographic location of the incident.
- Name—The name of the incident. The name is used in the driving directions. If the name is not specified, a unique name prefixed with Location is automatically generated in the output routes and directions.
- ID—A unique identifier for the incident. The identifier is included in the output routes (as the IncidentID field) and can help join additional information from the output routes, such as the total travel time or total distance, to attributes from your incidents or vice versa. If the ID isn't specified, the service automatically generates a unique identifier for each incident.
- AdditionalTime—The amount of time spent at the incident, which is added to the total time of the route. The units for this attribute value are specified by the Measurement Units parameter. The attribute value is included in the analysis only when the measurement units are time based. The default value is 0.
If you are finding the closest fire stations from fire incidents to estimate response times, the AdditionalTime attribute can store the amount of time it takes firefighters to hook up their equipment at the location of the incident before they can begin fighting the fire.
AdditionalDistance—The extra distance traveled at the incident, which is added to the total distance of the route. The units for this attribute value are specified by the Measurement Units parameter. The attribute value is included in the analysis only when the measurement units are distance based. The default value is 0.
Generally, the location of an incident, such as a home, isn't exactly on the streets; it is set back somewhat from the road. This attribute value can be used to model the distance between the actual incident location and its location on the street, if it is important to include that distance in the total travel distance.
CurbApproach—Specifies the direction a vehicle may arrive at and depart from the incident. The field value is specified as one of the following integers (use the numeric code, not the name in parentheses):
- 0 (Either side of vehicle)—The vehicle can approach and depart the incident in either direction, so a U-turn is allowed at the incident. This setting can be chosen if it is possible and practical for your vehicle to turn around at the incident. This decision may depend on the width of the road and the amount of traffic or whether the incident has a parking lot where vehicles can pull in and turn around.
- 1 ( Right side of vehicle)—When the vehicle approaches and departs the incident, the incident must be on the right side of the vehicle. A U-turn is prohibited. This is typically used for vehicles such as buses that must arrive with the bus stop on the right-hand side.
- 2 (Left side of vehicle)—When the vehicle approaches and departs the incident, the curb must be on the left side of the vehicle. A U-turn is prohibited. This is typically used for vehicles such as buses that must arrive with the bus stop on the left-hand side.
- 3 (No U-Turn)—When the vehicle approaches the incident, the curb can be on either side of the vehicle; however, the vehicle must depart without turning around.
The CurbApproach property is designed to work with both kinds of national driving standards: right-hand traffic (United States) and left-hand traffic (United Kingdom). First, consider an incident on the left side of a vehicle. It is always on the left side regardless of whether the vehicle travels on the left or right half of the road. What may change with national driving standards is your decision to approach an incident from one of two directions, that is, so it ends up on the right or left side of the vehicle. For example, if you want to arrive at an incident and not have a lane of traffic between the vehicle and the incident, you would choose Right side of vehicle (1) in the United States but Left side of vehicle (2) in the United Kingdom.
2. Facilities
This tool finds the nearest facilities to incidents, and this parameter specifies those facilities. A minimum of one facility is necessary to solve an analysis.
When specifying the facilities, you can set properties for each one, such as its name or service time, by using attributes. The facilities can be specified with the following attributes:
Name—The name of the facility. The name is used in the driving directions. If the name is not specified, a unique name prefixed with Location is automatically generated in the output routes and directions.
- ID—A unique identifier for the facility. The identifier is included in the output routes (as the FacilityID field) and the output closest facilities as FacilityID fields. The FacilityID field can be used to join additional information from the output routes, such as the total travel time or total distance, to attributes from your facilities. If the ID isn't specified, the service automatically generates a unique identifier for each facility.
- AdditionalTime—The amount of time spent at the facility, which is added to the total time of the route. The units for this attribute value are specified by the Measurement Units parameter. The attribute value is included in the analysis only when the measurement units are time based. The default value is 0.
- If you are finding the closest fire stations to fire incidents, AdditionalTime can store the time it tends to take a crew to don the appropriate protective equipment and exit the fire station.
- AdditionalDistance—The extra distance traveled at the facility, which is added to the total distance of the route. The units for this attribute value are specified by the Measurement Units parameter. The attribute value is included in the analysis only when the measurement units are distance based. The default value is 0.
- Generally, the location of a facility, such as a fire station, isn't exactly on a street; it is set back somewhat from the road. AdditionalDistance can model the distance between the actual facility location and its location on the street, if it is important to include that distance in the total travel distance.
- CurbApproach—Specifies the direction a vehicle may arrive at and depart from the facility. The field value is specified as one of the following integers (use the numeric code, not the name in parentheses):
- 0 (Either side of vehicle)—The vehicle can approach and depart the facility in either direction, so a U-turn is allowed at the facility. This setting can be chosen if it is possible and practical for your vehicle to turn around at the facility. This decision may depend on the width of the road and the amount of traffic or whether the facility has a parking lot where vehicles can pull in and turn around.
- 1 (Right side of vehicle)—When the vehicle approaches and departs the facility, the facility must be on the right side of the vehicle. A U-turn is prohibited. This is typically used for vehicles such as buses that must arrive with the bus stop on the right-hand side.
- 2 (Left side of vehicle)—When the vehicle approaches and departs the facility, the curb must be on the left side of the vehicle. A U-turn is prohibited. This is typically used for vehicles such as buses that must arrive with the bus stop on the left-hand side.
- 3 (No U-Turn)—When the vehicle approaches the facility, the curb can be on either side of the vehicle; however, the vehicle must depart without turning around.
The CurbApproach property was designed to work with both kinds of national driving standards: right-hand traffic (United States) and left-hand traffic (United Kingdom). First, consider a facility on the left side of a vehicle. It is always on the left side regardless of whether the vehicle travels on the left or right half of the road. What may change with national driving standards is your decision to approach a facility from one of two directions, that is, so it ends up on the right or left side of the vehicle. For example, if you want to arrive at a facility and not have a lane of traffic between the vehicle and the facility, you would choose Right side of vehicle (1) in the United States but Left side of vehicle (2) in the United Kingdom.
3. Measurement Units
Specify the units that should be used to measure and report the total travel time or travel distance for the output routes. The tool finds the closest facility by measuring the travel time or the travel distance along streets.
The units you choose for this parameter determine whether the tool will measure driving distance or driving time to find what is closest. Choose a time unit to measure driving time. To measure driving distance, choose a distance unit. Your choice also determines in which units the tool will report total driving time or distance in the results. The choices include the following:
- Meters
- Kilometers
- Feet
- Yards
- Miles
- NauticalMiles
- Seconds
- Minutes
- Hours
- Days
The tool chooses whether to use the network cost attribute specified in the Time Attribute or Distance Attribute parameter depending on whether the chosen measurement units are time or distance based.
The tool performs the necessary unit conversion when the Measurement Units value differs from the units of the corresponding time or distance cost attribute.
4. Network Dataset
The network dataset on which the analysis will be performed. Network datasets most often represent street networks but may represent other kinds of transportation networks as well. The network dataset needs at least one time-based and one distance-based cost attribute.
5. Output Geodatabase
The output workspace. This workspace must already exist. The default output workspace is in_memory.
6. Output Routes Name
The name of the output feature class containing routes or the lines that connect incidents to their closest facilities. This feature class also contains, as an attribute, the total cost of travel between the incidents and their nearest facilities.
The help topic Output from Find Closest Facilities describes the schema of this output feature class.
7. Output Directions Name
The name of the output feature class containing directions.
The help topic Output from Find Closest Facilities describes the schema of this output feature class.
8. Output Closest Facilities Name
The name of the output feature class containing the closest facilities.
The help topic Output from Find Closest Facilities describes the schema of this output feature class.
9. Number of Facilities to Find (optional)
Specify the number of closest facilities to find per incident. This is useful in situations, such as a fire, where multiple fire engines may be required from different fire stations. You can specify, for example, to find the three nearest fire stations to a fire.
If you are setting up a service from this tool, and you want to limit resource usage such as processing time on your server, use the Maximum Facilities to Find parameter to limit the maximum number of facilities a user can enter in Number of Facilities to Find.
10. Default Cutoff (optional)
Specify the travel time or travel distance value at which to stop searching for facilities for a given incident. For instance, while finding the closest hospitals from the site of an accident, a cutoff value of 15 minutes would mean that the tool would search for the closest hospital within 15 minutes from the incident. If the closest hospital is 17 minutes away, no routes will be returned in the output routes. A cutoff value is especially useful when searching for multiple facilities.
The units for this parameter is specified by the Measurement Units parameter.
11. Travel Mode (optional)
Choose the mode of transportation for the analysis. Custom is always a choice. For other travel mode names to appear, they must be present in the network dataset specified in the Network Dataset parameter.
A travel mode is defined on a network dataset and provides override values for parameters that, together, model cars, trucks, pedestrians, or other modes of travel. By choosing a travel mode here, you don't need to provide values for the following parameters, which are overridden by values specified in the network dataset:
- UTurn Policy
- Time Attribute
- Time Attribute Units
- Distance Attribute
- Distance Attribute Units
- Use Hierarchy in Analysis
- Restrictions
- Attribute Parameter Values
- Route Line Simplification Tolerance
- CUSTOM—Define a travel mode that fits your specific needs. When Custom is chosen, the tool does not override the travel mode parameters listed above. This is the default value.
12. Advanced Analysis
13. Barriers
14. Custom Travel Mode
15. Network Dataset
16. Network Location
17. Output
18. Service Capabilities
All the seven additional categories are explained in detail, click here to access their explanation
Comments
Post a Comment