If you run the Directions Widget with the "Optimize Order" box checked, and several stops that are close together, the resulting route doesn't make sense.
You can see in the picture below - the route from A to B is illogical.
![DirectionsWidget.JPG](/legacyfs/online/123032_DirectionsWidget.JPG)
It's definitely an issue with the widget, because I can run the same route in ArcMap or using the simple routing sample and I get much better results.
Anyone else experienced this and know how to resolve it? I'm not attaching code, because I'm just using the Directions sample: Directions | ArcGIS API for JavaScript
Thanks,
Shawna