How to make 'return to first stop' with route analysis in arcmap?

1500
9
Jump to solution
08-02-2017 03:04 AM
LeoDeng
Occasional Contributor II

Environment:

ArcGIS Desktop 10.5.1 with Network Analysis Extension

Case 1:

Add 3 stops and get the shortest path.

Case 2:

Copy the first stop and make it as last stop (sequence = 4)

The results shows that the start point of route geometry is not begin at 1st stop in Case 2.

Why and how to make the result route geometry start at 1st stop location?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JaySandhu
Esri Regular Contributor

The output route shape with our without measures should not impact the route geometry.

The problem is the curb approach. If BOTH stop 1 and 4 have SideOfStreet set to Right side and the CurbApproach is set to Right side of Vehicle, then when the route comes to stop 4, to honor the curb approach, it has to go to the end of Lee Street and make a u-turn at F Street.

Change the Stop 4 curb approach to Either side or Left Side and the route will no longer make a u-turn.

Jay Sandhu

View solution in original post

0 Kudos
9 Replies
DanPatterson_Retired
MVP Emeritus

One option is to have identical first and last points, then 'preserve first and last points' as in the image in this link in the Analysis Settings Tab

LeoDeng
Occasional Contributor II

Preserve first and last points will optimize other stops when more than 3 points. The sequence of stop is assigned by user, and the analysis couldn't reorder them through they are not the optimization.

0 Kudos
HeatherMoe
Esri Contributor

Hi Leo,

I can't tell from just the pictures but it looks as if it might be a result of a curb approach and u-turn policy set up.  It could be that the route actually starts at location 1 but when looping back around to that same location the stop is now on the left hand side of the vehicle and so if the curb approach is set to right side and the u-turn policy is set to only at intersections then to get back to that position it would have to go to the next intersection and make a u-turn and then drive back to the location so that it is now on the right hand side.

Heather

0 Kudos
LeoDeng
Occasional Contributor II

Curb Approach - Right Side

U-Turn Policy - Allowed.

0 Kudos
HeatherMoe
Esri Contributor

Can you generate directions and see if it has you going passed the stop and making a U-turn to go back to it?  Or generate a route just from location 3 to 1 and see if it has the same geometry that goes passed the location?  I have a feeling it has to do with the curb approach and that the answer matches the input instead of starting in the wrong location.

Heather

0 Kudos
LeoDeng
Occasional Contributor II

Case 1

Case 2

Curb Approach - right side

U-Turn policy - allowed.

The direction shows the route begin at 1st stop. However the result route geometry in case 2 is not start at 1st stop.

0 Kudos
LeoDeng
Occasional Contributor II

It seems that if output line without measurement, the start point of the result is error.

When set the output shape type to True shape with measures, the result geometry (start point) is correct.

Without measures (start point wrong)

with measures (correct)

0 Kudos
LeoDeng
Occasional Contributor II

The route from stop 3 to stop 4 is correct by the u-turn policy (Allowed) and curb Approach (Right side).

My question is that the start point for case 1 (not return first) and case 2 (return first) in the result route geometry is difference.

It shouldn't be the same start point in the result route geometry for the same start stop ?

0 Kudos
JaySandhu
Esri Regular Contributor

The output route shape with our without measures should not impact the route geometry.

The problem is the curb approach. If BOTH stop 1 and 4 have SideOfStreet set to Right side and the CurbApproach is set to Right side of Vehicle, then when the route comes to stop 4, to honor the curb approach, it has to go to the end of Lee Street and make a u-turn at F Street.

Change the Stop 4 curb approach to Either side or Left Side and the route will no longer make a u-turn.

Jay Sandhu

0 Kudos