## Find Nearest

##

This tool finds the nearest features and reports and ranks the distance to the nearby features. To find what's nearest, the tool can measure using either a straight-line distance or a selected travel mode. There are options to limit the number of nearest features to find or the search range in which to find them. The results from this tool can help you answer the following kinds of questions:

- What is the nearest park from here?
- Which hospital can I reach in the shortest drive time? How long would the trip take on a Tuesday at 5:30 p.m. during rush hour?
- What are the road distances between these major cities?
- Which of these patients reside within two miles of these chemical plants?

Find Nearest returns a layer containing the nearest features and a line layer that links the start locations to their nearest locations. The line layer contains information about the start and nearest locations and the distances between.

If Use current map extent is checked, only the features that are visible within the current map extent will be considered as start and potentially nearest features. If unchecked, all features in the input layer will be considered, even if they are outside the current map extent.

## Choose layer from which the nearest locations are found

Find Nearest measures from features in the layer you specify here (the start locations) to the locations you specify in the next parameter. The tool supports up to 1,000 features in each layer.

## Find the nearest locations in

Find Nearest measures from each of the features in the first layer to the locations in this layer. The tool supports up to 1,000 locations in each layer.

In addition to choosing a layer from your map, you can select Choose Living Atlas Analysis Layer or Choose Analysis Layer found at the bottom of the drop-down list. This opens a gallery containing a collection of layers useful for many analyses.

## Measure

Choose whether to find the nearest locations based on straight-line distance or a selected travel mode. Travel modes are only enabled when your input layer contains points. The available travel modes are determined by the administrator of your organization. When using one of the travel modes, the measurements are made along roads or walkways, and they honor applicable rules, such as one-way streets, illegal turns, and so on.

When measuring between lines or areas, the distance from or to the nearest point along the line or the boundary of the area is found.

When you choose Driving Time, Rural Driving Time, or Trucking Time you have options on how to measure the drive time.

- Uncheck Use Traffic to find the nearest features based on static travel speeds, such as speed limits, rather than on fluctuating speeds caused by changing traffic conditions.

  This is the option to choose if you want to know what is generally nearest, but not necessarily the nearest given traffic conditions for a specific time and day.

- Check Use Traffic to find the nearest features based on a given start time and changing traffic conditions. By also choosing the Live traffic option, the departure time from the start locations is set to the current time, and current and predicted traffic speeds are referenced from sensors and feeds to determine what features are nearest. The predicted traffic speeds are calculated by referencing live traffic speeds, historical speeds, and current events such as weather. Traffic speeds are predicted 12 hours into the future, so you can move the slider to set the departure time ahead by up to 12 hours.

  Use these live-traffic settings to find out what features can be reached in the shortest amount of time when departing now, departing in one hour from now, and so on.

- By checking Use Traffic and choosing Traffic based on typical conditions for a day and time, the tool finds the nearest features based on historical speed averages for every five-minute interval across a routine week. The results include traffic but remove the influence of current traffic conditions and events, which may vary significantly from the norm.

  You can use these historical traffic settings to ask, for instance, "What features can be reached the quickest when departing the start features at 11:30 a.m. on a Wednesday?"

  The time you set refers to the time zone in which your start features are located. So if you set the time to 8:00 a.m. and have two start features, one in New York City and another in Los Angeles, the nearest locations will be found by assuming a departure time of 8:00 a.m. Eastern Time and 8:00 a.m. Pacific Time, respectively.

Note that as a vehicle drives outward from a point, time elapses and traffic conditions change. This tool accounts for these variations when you check Use traffic; however, not all regions support traffic. Click the See availability link on the tool to find out whether it is offered in your study area.

Trucking Time can use dynamic travel speeds based on traffic but only up to the legal truck speed limit. For example, if the dynamic speed for a street based on live traffic is 65 miles per hour but the truck speed limit for that street is 55 miles per hour, the calculation will use 55 miles per hour for that street.

## For each location in the input layer

You have two options for limiting the search for nearest locations. One option is limiting the maximum number of nearest locations to find per start location. You can find the one nearest park, the two nearest, and so on. The other option is setting a maximum search distance or drive time.

By unchecking the options, the maximum number of nearest locations to find is 100 (the tool's limit), and the maximum search range is unlimited.

Processing time depends on the number of start locations, the number of nearby locations, and the maximum search range. It takes more time to process when there are more locations or larger search ranges.

Note that when a limit is set on the search range, it's possible that the tool won't find any nearest locations within that range, or that fewer locations are found than the maximum number of nearest locations you specify.

## Result layer name

This is the name of the feature layer that will be created in My Content and added to the map. If the feature layer already exists, you will be asked to provide another name. The feature layer will contain two layers: one representing the nearest locations and another representing the lines connecting the input locations to the nearest locations.

If you select Include route layers, each route from the result is also saved as a route layer. A route layer includes all the information for a particular route such as the stops assigned to the route as well as the travel directions. Creating route layers is useful if you want to share the individual routes with other members in your organization or if you wish to further modify the routes using the Directions button in the map viewer. The route layers use the name provided for the feature layer as a prefix and the route name generated as part of the analysis, is added to create a unique name for each route layer.

The maximum number of route layers that can be created is 1,000. If the result contains more than 1,000 routes and Include route layers is checked, the tool will only create the output feature service.

Using the Save result in drop-down list, you can specify the name of a folder in My Content where the feature layer and the route layers, if created, will be saved.