We know this is too complicated and are working on something that makes storing properties for every edge much easier: Edge flags refactoring by karussell · Pull Request #1447 · graphhopper/graphhopper · GitHub
And not only this, there will be certain defaults like highway (road_class), ferry&bridge (road_environment) and surface that will be added as default properties.
In branches like here we are going even further and one can define new vehicles based on a configuration file. See this recent discussion: Disabling CH not allowed on the server-side? - #5 by karussell
I’ve not seen a method for being able to read the new data, and neither is it clear how to access this from entries in a MatchResult.
Currently this is possible via edge.getFlags (e.g. encoder.getDouble(edge.getFlags)
) in future versions this will be edge.get(roadClassEnc)
. Also we’ll automatically create path details for such properties and they’ll be available in the response.