Find Nearest

Insights in ArcGIS Online
Insights in ArcGIS Enterprise
Insights desktop

Find Nearest uses a line distance to measure between input features and near features. For each input feature, the specified number of near features is ranked by distance from the input feature.

Example

The director of Safety Services wants to determine which fire stations in the city are closest to each of the schools. The director wants to use this information, which can be collected using Find Nearest, to set primary and secondary responder stations for each school in case of an emergency.

Use Find Nearest

Find Nearest can be run on maps with two layers (point, lines, or areas).

Complete the following steps to run Find Nearest:

  1. If necessary, click the map card to activate it. A card is active when the toolbar and Action button Action appear.
  2. Click the Action button, then choose Find Nearest.
  3. For Choose layer containing features to search near, select the layer you want to use to find the nearest features.
  4. For Choose layer with features you wish to find, select the layer you want to search for in relation to the first layer.
  5. If necessary, change the limit to the number of near features that will be returned and the search distance.
  6. Click Run.

Usage notes

The Choose layer containing features to search near parameter contains the input point, line, or area dataset with features that will be used to find the nearest features.

The Choose layer with features you wish to find parameter contains the input point, line, or area dataset with features that will be searched for in relation to the first parameter.

The For each location in the input layer parameter contains two options: Limit the number of nearest locations and Limit the search range.

OptionDefaultDescription

Limit the number of nearest locations

1

When checked, Find Nearest will return up to the number of features specified for each feature in the first input parameter. When not checked, there will be no limit to the number of features returned.

Limit the search range

100 miles or 100 kilometers

Note:

The units of the search range will be based on the default units for your account.

When checked, Find Nearest will only return features within the specified distance of the features it is searching near. When not checked, there will be no limit to the search range.

The search range can be specified in meters, kilometers, feet, or miles.

The output of Find Nearest will be lines connecting features from the two input layers. Features from either layer that are not connected to any other features (for example, features that are not within 100 miles of any features in the other layer) will be removed from the map.

How Find Nearest works

When area features are used as an input, the nearest location is found using the distance from or to the centroid of the feature. Other ArcGIS products, such as ArcGIS Online or ArcGIS Pro, measure the distance from the edge of the area boundary. Therefore, results using Find Nearest may differ between products.

Find Nearest calculations on database datasets are performed using the native distance calculations available within the database. Therefore, distance calculations will vary based on database type and spatial type. Database connections are available in Insights in ArcGIS Enterprise and Insights desktop.

Limitation

Cross filters are not compatible with result datasets created by this tool. If you want to add a cross filter to an unsupported card, you can copy the dataset to your workbook and apply a cross filter to the cards created with the copy.