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/DataUpdater.java at master · karussell/graphhopper-traffic-data-integration · GitHub
But carEncoder.getSpeed(edge.getFlags()); is not found now in Graphhoper 3.0 version.
Thanks

Setting the speed of an edge now works like this:

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

Thank you very much !

Powered by Discourse