How can i update shortcut weight when update flags of this shortcut ( speed, getAccessEnc = false, etc)

Hi all, tks for this project.
Although, i have a problem when trying to update weight ( by edge.set(carEncoder.getAverageSpeedEnc(), value), or edge.setReverse(carEncoder.getAccessEnc(), false) ) of shortcut way, the result path is not change, because total weights of path is not changed. Specificed, the weight of shortcut not change. Should i rebuild the weight of the graph for specified vehicle ? Is there exist other way to update weight of shortcut ?
Tks all and hope to be responsed soon.

Yes, after you updated edge properties like average speed you need to re-build CHs/shortcuts for correct routing. For a more flexible algorithm you can use landmarks instead.

Powered by Discourse