forDesktop(); if (cleanGraph) { hopper.clean();
graphHopper.init(graphHopperConfiguration).forDesktop(); graphHopper.getCHFactoryDecorator().setEnabled(false); graphHopper.getCHFactoryDecorator().setDisablingAllowed(true);
public static GraphHopper createHopper(boolean memoryMapped, String graphFolder) { GraphHopper ret = null; ret = new GraphHopper().forDesktop(); // initialise the encoders ourselves as we can use multiple // encoders for same vehicle type corresponding to different // times of day (i.e. rush hours) ret.setEncodingManager(createEncodingManager(graphFolder)); // don't need to write so disable the lock file (allows us to run out of program files) ret.setAllowWrites(false); if (memoryMapped) { ret.setMemoryMapped(); } ret.setGraphHopperLocation(graphFolder); ret.importOrLoad(); return ret; }