Commit 2633df5a authored by hengwen's avatar hengwen
Browse files

Optimize route planning

parent 17144d90
......@@ -209,11 +209,9 @@ public class VehicleService {
// collect all way points
List<Long> wayPoints = new ArrayList<>();
wayPoints.add(source.getOsmId());
wayPoints.add(sourceEdgeVertex.getOsmId());
for (OverlayEdge overlayEdge : bestOverlayPath.getEdgeList()) {
wayPoints.addAll(overlayEdge.getWayPointsAsLong());
for (Vertex vertex : bestOverlayPath.getVertexList()) {
wayPoints.add(vertex.getOsmId());
}
wayPoints.add(targetEdgeVertex.getOsmId());
wayPoints.add(target.getOsmId());
// group the way points into trajectory segments
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment