Hey everyone, I want to know if there is somewhere I can find some migration documentation for the CmdArgs which was used in older versions of graphhopper (my server is still using version 0.6.0).
If there is none could you guys maybe help me with the new configuration I have to do to use the newest version of graphhopper.
Code:
fun setupGraphhopper(graph: String): GraphHopper? {
val cmdArgs = getDefaultArguments(graph)
val graphHopper: GraphHopper = try {
GraphHopper().init(cmdArgs)
} catch (t: Throwable) {
return null
}
graphHopper.encodingManager = EncodingManager("CAR")
graphHopper.importOrLoad()
return graphHopper
}
private fun getDefaultArguments(graph: String): CmdArgs {
val cmdArgs = CmdArgs()
cmdArgs.put("osmreader.osm", graph)
cmdArgs.put("osmreader.acceptWay", "CAR")
cmdArgs.put("prepare.chShortcuts", "yes")
cmdArgs.put("index.highResolution", "1000")
cmdArgs.put("graph.dataaccess", "RAM")
cmdArgs.put("routing.defaultAlgorithm", "astarbi")
return cmdArgs
}