I described my problem with matching with vehicle different than car as the issue with newest versions: https://github.com/graphhopper/map-matching/issues/160
I have problem with version 1.0:
java -jar matching-web/target/graphhopper-map-matching-web-1.0-SNAPSHOT.jar import –vehicle=foot xxx.pbf
than I cannot do any:
java -jar matching-web/target/graphhopper-map-matching-web-1.0-SNAPSHOT.jar match yyy.gpx
got an error:
loading graph from cache java.lang.IllegalArgumentException: Encoder for car not found. Existing: foot|speed_factor=1.0|speed_bits=4|turn_costs=false|version=5 at com.graphhopper.routing.util.EncodingManager.getEncoder(EncodingManager.java:394) at com.graphhopper.routing.util.EncodingManager.getEncoder(EncodingManager.java:385) at com.graphhopper.matching.MapMatching.<init>(MapMatching.java:104) at com.graphhopper.matching.cli.MatchCommand.run(MatchCommand.java:83) at io.dropwizard.cli.Cli.run(Cli.java:78) at io.dropwizard.Application.run(Application.java:93) at com.graphhopper.matching.http.MapMatchingApplication.main(MapMatchingApplication.java:16)
version 0.13 works perfetcly
and was redirected here to discuss.
I haven’t understood @karussell 's answer:
Did you recreate the graph?
This won’t work anymore. You should put this in the config file instead.
import command with option --vehicle=foot still works in newest versions
in older version match command just used vehicle type which was imported into cache, newest versions always looks for car
It seems for me, that match and import command doesn’t look to config.yml, I set graph.flag_encoders: hike or foot, but it still looks for car in cache.
what I did wrong? which config file I should use?