Fix issue with backward arc having incorrect segments.

This commit is contained in:
Holt59 2018-03-14 21:02:26 +01:00
parent ccd6d7d7af
commit d5fcf036b9

View File

@ -45,6 +45,7 @@ public class Node implements Comparable<Node> {
d2o = new ArcBackward(arc); d2o = new ArcBackward(arc);
} }
else { else {
Collections.reverse(points);
d2o = new ArcForward(destination, origin, length, roadInformation, points); d2o = new ArcForward(destination, origin, length, roadInformation, points);
arc = new ArcBackward(d2o); arc = new ArcBackward(d2o);
} }