HOW TO

Create individual routes from multiple origins and destinations within a feature class in ArcGIS Pro

Last Published: May 8, 2024

Summary

In ArcGIS Pro, a route can be created by connecting a pair of points representing the origin, and destination. In some cases, when there are many pairs of points in an attribute table, it is efficient to simultaneously generate routes for each pair using a network analysis method. For more information, refer to ArcGIS Pro: Network Analyst solvers.

This article describes the workflow to create individual routes from multiple origins and destinations within a feature class in ArcGIS Pro.

Procedure

The image below displays a map with five pairs of points in the my_places feature class used to create five routes connecting the origins to the destinations.

Five pairs of point features on the map.
  1. Open the ArcGIS Pro project.
  2. Add a new unique ID field to the point features attribute table.
    1. In the Contents pane, right-click the point feature layer and click Attribute Table.
    2. In the Attribute Table, click Add The Add button. to add a new field.
    3. In the Fields view, specify the Field Name, and Data Type columns for the new field. In this example, the new field is named MyUnique_id with a Text data type.
The new 'MyUnique_id' field with a Text data type is added to the 'my_places' attribute table.
  1. Click Save in the Changes group to save the changes.
  1. Assign unique IDs, representing the specific routes, to each pair of point features representing the origins and destinations.
Note:
This workflow is also applicable when creating routes from the origins to destinations passing through midpoints, or stops. To do so, assign a unique ID of the route to the point features that represents the origin, destination, and all the stops.
  1. Open the point feature class attribute table and assign unique values to the new field created in Step 2. In this example, five unique IDs are assigned to each pair of point features in the MyUnique_ID column in the my_places feature class.
  2. On the Edit tab, click Save to save the changes.
Five unique IDs assigned to each pair of point features in the attribute table.
  1. Create a route layer. On the Analysis tab, in the Workflows group, click Network Analysis > Route.

The Route layer with the Stops, Routes, Point Barriers, Line Barriers, and Polygon Barriers sublayers is added to the Contents pane.

The Route layer with the Stops, Routes, Point Barriers, Line Barriers, and Polygon Barriers sublayers in the Contents pane.
  1. Add the point feature locations to the Stops sublayer of the route layer.
    1. Highlight the new route layer in the Contents pane, and click the Route Layer tab.
    2. In the Input Data group, click Import Stops to open the Add Locations window.
The Route Layer tab and the Import Stops option in the ArcGIS Pro ribbon.
  1. Configure the parameters in the Add Locations window.
    1. For Input Network Analysis Layer, select the route layer created in Step 4. In this example, Route is selected.
    2. For Sub Layer, select Stops from the drop-down list to add locations to the Stops sublayer.
    3. For Input Locations, specify the feature class containing the locations to be added to the Stops sublayer. In this example, the my_places feature class is selected.
    4. For Property, select RouteName.
    5. For Field, under Field Name, select the field name created in Step 2. In this example, MyUnique_id is selected.
    6. Click OK.
The configured Add Locations window.
  1. On the Route Layer tab, in the Analysis group, click Run to add routes to the stops created.

The image below shows five individual routes created connecting multiple origins and destinations within a feature class in ArcGIS Pro.

Five individual routes connecting the origins and destinations on the map.

Article ID: 000030650

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 9x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options