/** * Configures the underlying storage to be used on a less powerful machine like Android or * Raspberry Pi with only few MB of RAM. */ public GraphHopper forMobile() { setSimplifyResponse(false); return setMemoryMapped(); }
/** * Configures the underlying storage to be used on a less powerful machine like Android or * Raspberry Pi with only few MB of RAM. */ public GraphHopper forMobile() { setSimplifyResponse(false); return setMemoryMapped(); }
/** * Configures the underlying storage to be used on a less powerful machine like Android or * Raspberry Pi with only few MB of RAM. */ public GraphHopper forMobile() { setSimplifyResponse(false); return setMemoryMapped(); }
/** * Configures the underlying storage to be used on a less powerful machine like Android or * Raspberry Pi with only few MB of RAM. */ public GraphHopper forMobile() { setSimplifyResponse(false); return setMemoryMapped(); }
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; }