Open zabuTNT opened 2 years ago
I'm not sure if we should add these features or use a specific router for car journey, for instance OSRM. Anyway we can create an updater that update the car speed for each streetEdge, so if we have x,y,z as start_node,end_node,speed :
graph.getStreetEdges()
.stream()
.forEach(streetEdge -> {
if(streetEdge.getStartOsmNodeId() == x && streetEdge.getEndOsmNodeId() == y) {
streetEdge.setCarSpeed(z);
}
});
Manage traffic.
Step 1:
Step 2: