Is it possible to load GraphHopper configuration in Low Level API from a file instead of piecing together via multiple granular calls of it’s interface? So instead of doing this:
GraphHopper graphHopperEngine = new GraphHopper().forMobile();
graphHopperEngine.setEncodingManager(EncodingManager.create(<my flags>));
graphHopperEngine.setProfiles(new Profile(<my profile>)...);
/// ... a lot more configuration
graphHopperEngine.load(<map folder>);
one would have an external file with all the configuration
graphhopper:
graph.location: <map folder>
graph.flag_encoders: <my flags>
profiles:
- <my profile>
# ... a lot more configuration
and initialize the engine along these lines:
GraphHopperConfig config = <load config from a file>
GraphHopper graphHopperEngine = new GraphHopper().forMobile();
graphHopperEngine.init(config);
graphHopperEngine.importOrLoad();
The GraphHopper Web Service is doing exactly this, so I assume it’s somehow possible, yet I failed to identify how.