When I use properties file form Routing for MapMathing I get the next error:
java.lang.IllegalStateException: Configured graph.ch.weightings: [] is not equal to loaded [fastest|car]
at com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:254)
at com.graphhopper.GraphHopper.load(GraphHopper.java:781)
at com.graphhopper.matching.MatchCommand.<init>(MatchCommand.java:45)
at com.example.gpstrack.Map.onConnected(Map.java:811)
In my app I want to use routing and map matching at the same time and use the same files
It seems I need two instance of Graphhopper anyway:
There are some differences between OSM files for "Map Matching" and "Routing"
"Map Matching" doesn't work with files of Routing
For "Map Matching":
java -jar matching-web/target/graphhopper-map-matching-web-.jar import .osm.pbf
For "Routing":
./graphhopper.sh -a import -i
So there are some differences in
proporties
fileWhen I use properties file form Routing for MapMathing I get the next error:
In my app I want to use routing and map matching at the same time and use the same files
It seems I need two instance of Graphhopper anyway:
But how to init the same files? If could init different proporties files, something like this:
But I believe default constructor of Graphhopper class won't allow such manipulations, it expects path to the folder