OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
139 stars 91 forks source link

Bug in RouterTSPWrapper #280

Open FelixPetzold opened 8 years ago

FelixPetzold commented 8 years ago

Class RouterTSPWrapper -> Methode CalculateTSP(Vehicle vehicle, RouterPoint[] points, int first, int last)

The bug is located in line 126. You forgot to pass first and last to the RouterTSP.

Original: IRoute tspSolution = _routerTSP.CalculateTSP(weights, locations);

Should be: IRoute tspSolution = _routerTSP.CalculateTSP(weights, locations, first, last);