Find nearby features
In this topic
Using the Find Nearby tool, you can find locations that are near other locations on your map. For example, you may want to find distribution centers that are near a warehouse.
The Find Nearby tool lets you select features on the map and find features that are within a specified distance or drive time of the selection.
The Find Nearby tool is only available for layers created from Microsoft Excel data and for feature service layers added from ArcGIS.
- Click anywhere on the map to select it.
- On the ArcGIS Maps ribbon, click the Find Nearby button.
You can also access the Find Nearby tool from a pop-up window. See Configure pop-ups for more information.
The Find Nearby pane opens.
- From the Choose a source layer drop-down menu, choose the layer containing the features you want to select.
- Do any of the following to make your selection:
- Click the Rectangle selection tool and drag a rectangle on the map to select the features you want.
- Click the Free-hand selection tool and drag a freehand shape on the map to select the features you want.
- To select a single feature, click the feature on the map while either of the selection tools is enabled.
Continue to draw shapes or click individual features to select more features as needed.
To pan the map while making selections, use the Pan tool.
For point features, only features that are completely within the selection area are included in the selection.
If your map has point features that have been clustered, you will not be able to select the clustered features on the map. You can turn off clustering to select the individual point features. See Configure clustering for more information.
- To clear all selections or remove part of your selection, do one of the following:
- Click the Remove from selection tool and drag a rectangle on the map around the features you want to remove from the selection.
- Click the Clear selection tool to clear all selections in the layer.
- Click Next.
- In the Refine search area section, click Ring to search within a specified distance around the selection, or click Drive time to search within a specified drive time of the selection.
- If you chose Ring in the previous step, specify a radius in either miles or kilometers. If you chose Drive time, specify the maximum drive time from the selection in minutes or hours.
The Drive time option is only available when the specified selection layer is a point layer.
- Choose a target layer from the drop-down menu.
The search looks for features in the target layer that are near the selected features in the source layer.
- To save the search area, check the Save search area as layer check box.
The search area for each Find nearby action is generated as a temporary layer in the Contents pane, using the name of the original layer with a prefix indicating the name of the related action, for example, Find nearby buffer - LayerName. You can use these layers as reference for future select actions.
- Click Find.
The results of the search are selected on the map and the Find Nearby pane shows the number of selected features.
Search results are temporary and are not saved with the map. When you close the Find Nearby window, the features on the map are no longer selected.
Work with the spreadsheet
To work with the results in the spreadsheet, do one of the following:
- Select Excel rows—Selects all records in the spreadsheet that correspond to the features selected on the map. You can then use standard Excel functions such as export, copy, and so on.
Select more features on the map and click Select Excel rows again to add additional rows to the selection in your spreadsheet.
- Filter spreadsheet—Filters the spreadsheet to display only the rows that correspond with features selected on the map.
- Clear filter—All rows appear in Excel, regardless of the features selected on the map.
Filtered rows are marked as hidden in Excel; data is not removed from the spreadsheet. If you inadvertently click Clear selection instead of Clear filter while the spreadsheet is filtered, click in the row number column to select the entire span of rows, and right-click and choose Unhide from the context menu to display all the rows.
You can export information about the selected features to a separate file or to a new worksheet in the current workbook.
- Export selection to file—Exports information about the selected features on the layer to a separate file. Save the file as an Excel workbook (*xlsx) or as a comma-separated values (*csv) file. When exporting to an XLSX file, ArcGIS Maps for Office creates an Excel table in a new workbook that includes data for each feature selected on the map. If the selection contains point features, the table will include the coordinates for each feature, and you can specify the spatial reference system to use. Polyline and polygon geometries are not exported.
- Export selection to worksheet—Exports information about selected features on the map to a new worksheet in the current workbook. Features in the new worksheet are formatted in an Excel table, which contains data for each feature selected on the map. If the selection contains point features, the file will include the coordinates for each feature, and you can specify the spatial reference system to use. Polyline and polygon geometries are not exported.
When you export a selection of point features to a file or to a new worksheet, you can choose to use the spatial reference defined by the map's current basemap (default), or specify a different spatial reference. You can also specify the chosen spatial reference as the default for all future point layer export functions; you can change this setting at any time by modifying the ArcGIS Maps configuration settings.
To specify the spatial reference for the exported data, do the following:
- On the map, select items from a point layer.
- In the Select pane, click Export selection to file or Export selection to worksheet.
- Choose the spatial reference to use for the export function.
You can specify the spatial reference from the current basemap, or choose the standard WGS, Web Mercator, or other well-known coordinate system.
- To set the selected spatial reference as the default for all future point layer export functions, check the Use this selection by default check box.
You can change this setting in the ArcGIS Maps configuration settings.
- Click OK.
The data from the selected points is exported to a new file or worksheet, along with coordinates using the specified spatial reference system.