Following an example, I wrote a simple Java code that makes graphhopper calculate fastest route distances for many routes offline on OSM maps of the Czech Republic. However, the code fails when I switch from fastest to shortest distance, and I get the following run-time error:
Exception in thread "main" java.lang.IllegalStateException: Speed cannot be 0 for unblocked edge, use access properties to mark edge blocked! Should only occur for shortest path calculation. See #242.
I set the graphhopper engline like this (where NAVIGATION_TYPE is either “fastest” or “shortest”):
hopper.init(new CmdArgs(). put("prepare.min_network_size", "200"). put("prepare.min_one_way_network_size", "200"). put("prepare.ch.weightings", NAVIGATION_TYPE));
Could you possibly hint me what’s the problem and how to solve it?
Many thanks. Michal