How to change speed of edge at rutime

I want to change speed of edge by integration of real time traffic
I has follow this project: graphhopper-traffic-data-integration/ at master · karussell/graphhopper-traffic-data-integration · GitHub
But carEncoder.getSpeed(edge.getFlags()); is not found now in Graphhoper 3.0 version.

1 Like

Setting the speed of an edge now works like this:

edge.set(carEncoder.getAverageSpeedEnc(), 60));
edge.setReverse(carEncoder.getAverageSpeedEnc(), 60);

Thank you very much !

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.