Select to view content in your preferred language

Rout analysis layer: finding the distance and time for each segment of the route

210
4
Jump to solution
10-02-2024 06:42 AM
Vicky_WTam
Emerging Contributor

I am using the route analysis layer to solve a set of points representing multiple stops for multiple routes. As expected, it generated the routes linking all of the stops. Is there a way to determine the drive distance and time for each individual segment along each route? 

0 Kudos
1 Solution

Accepted Solutions
MelindaMorang
Esri Regular Contributor

Yes!  After solving the route layer, use the Copy Traversed Source Features tool.

View solution in original post

0 Kudos
4 Replies
MelindaMorang
Esri Regular Contributor

Yes!  After solving the route layer, use the Copy Traversed Source Features tool.

0 Kudos
Vicky_WTam
Emerging Contributor

Thanks, @MelindaMorang! Rather than every segment time and distance, can I use the tool to find time and distance for all edges between my stops? The output of Copy Traversed Source Features calculated edge data for every junction but there isn't a way for me to determine if these edges are part of my route to my 1st, 2nd, or 3rd etc stop.  

0 Kudos
MelindaMorang
Esri Regular Contributor

I think you can achieve this with some joins and post-processing.

The FromJunctionID and ToJunctionID fields in Edges refer to the ObjectID values in Junctions.  The Junctions output's SourceType field will be NA_CLASS for stops and NETWORK for intermediate junctions that are part of the network.  If you join these two tables, you can figure out which edges started or ended at a stop instead of a regular junction, and you can sum or otherwise combine the intermediate rows.

0 Kudos
Vicky_WTam
Emerging Contributor

Great! Thank you so much. This is really helpful. 

0 Kudos