*.gpx directory from README example doesnt exist

Hey everyone,

I am trying to follow the example in the readme for the map matching app : https://github.com/graphhopper/map-matching

the following works fine:

mvn package -DskipTests
java -jar matching-web/target/graphhopper-map-matching-web-1.0-SNAPSHOT.jar import map-data/leipzig_germany.osm.pbf

However, I get a “no such file or directory” when trying to run

java -jar matching-web/target/graphhopper-map-matching-web-1.0-SNAPSHOT.jar match matching-core/src/test/resources/*.gpx

java -jar matching-web/target/graphhopper-map-matching-web-1.0-SNAPSHOT.jar match matching-core/src/test/resources/.gpx
loading graph from cache
Problem with file matching-core/src/test/resources/
.gpx
java.io.FileNotFoundException: matching-core/src/test/resources/*.gpx (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:766)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2902)
at com.graphhopper.matching.cli.MatchCommand.run(MatchCommand.java:97)
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)
gps import took:9.846E-4s, match took: 10393.84

There is no /test directory inside map-matching/matching-core/src.

There was indeed an open PR that fixed the issue: https://github.com/graphhopper/map-matching/pull/163 it is now merged.

1 Like
Powered by Discourse