Select to view content in your preferred language

Setting currentBearing and currentBearingTolerance for a stop isn't effecting the route solve.

82
2
Tuesday
JacobCurrier
Emerging Contributor

I'm currently trying to account for a moving vehicles orientation when solving a route. From the documentation it appears how to achieve this is by setting the currentBearing and currentBearingTolerance for the starting location (Stop). I've tried setting the bearing to 0 (North) and bearingTol to values between 30-120 , but I am still getting routes solved going in the opposite direction (South). I've also confirmed that the stop returned in the RouteResult has the same bearing and bearingTol set prior to the solve. Not sure if it makes a difference but I am using the world routing service api to perform the route solve. Are there additional settings I need to configure, to achieve the desired behavior? 

0 Kudos
2 Replies
Ting
by Esri Regular Contributor
Esri Regular Contributor

Setting the bearing sounds correct. Another idea to try is to set the curb approach policy accordingly, such as no U-turn.

I've passed this question to our routing/network folks for more insights.

0 Kudos
FrankK
by
Occasional Contributor

Try setting the stop's curb approach as Ting suggest but I believe you want to use "CurbApproach.RightSide"


 

0 Kudos