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)
Did you recreate the graph?
–vehicle=foot
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.
Ups, you are right: the vehicle parameter should still work. Please remove the created graph-cache folder and do the import again (you have to do this everytime the version changes)
doesn’t look to config.yml, I set graph.flag_encoders
Yes, sorry. The command line will overwrite the values set in config.yml
exactly the same for me.
I’m able to import any vehicle type, but matching looks like fixed for car. When you imported car it works, but when any other vehicle than car is imported matching command looks always for car type.