I have “isCHenabled = true”, I guess that I should change that. The way I’m loading graphhopper:
hopper = new GraphHopper().forMobile(); hopper.setCHEnable(false); **_//this is new, I didn't have this line before._** String f = new File(maps_loc, current_area).getAbsolutePath(); //System.out.println("Loading graph"); hopper.load(f); //System.out.println("Completed"); hopper_initialized = true;
Returns an error:
Caused by: java.lang.IllegalStateException: Configured graph.chWeightings:  is not equal to loaded [fastest|car]
I wrote line:
hopper.setCHWeightings("fastest|car"); after setting CHenabled to false, but it didn’t help either.
That won’t be the case - GraphHopper is used only when new points arrives from server, so it will calculate each path only once.