Hello,
I am using the Graphhopper library in my Android project and I would like to dynamically block certain edges on the map for when there are some roadworks. To do this I am using the follow function to block “edge”.
edge.setFlags(carEncoder.setAccess(edge.getFlags(), false, false));
When I am doing this I am getting the following error message. Does anyone know what’s wrong?
Caused by: java.lang.IllegalStateException: Calculating time should not require to read speed from edge in wrong direction. Reverse:false, fwd:false, bwd:false
I am not sure what they mean by this error. I tried to change some values and checking the direction by using:
if (edge.isForward(carEncoder)) {
edge.setFlags(carEncoder.setAccess(edge.getFlags(), false, true));