graphhopper / map-matching

The map matching functionality is now located in the main repository https://github.com/graphhopper/graphhopper#map-matching
https://www.graphhopper.com/open-source/
Apache License 2.0
785 stars 274 forks source link

"Sequence is broken for submitted track at time step" error when matching a GPX that should be matchable #156

Closed carlos-mg89 closed 4 years ago

carlos-mg89 commented 5 years ago

I post the issue here, cause I believe I'm sending the data correctly, but somehow I'm receiving the "Sequence is broken for submitted track at time step " error.

The complete error log is this one:

java -jar matching-web/target/graphhopper-map-matching-web-0.13-SNAPSHOT.jar match --gps_accuracy 10 441.gpx loading graph from cache Problem with file 441.gpx java.lang.IllegalArgumentException: Sequence is broken for submitted track at time step 119 (650 points). observation:Observation{point=37.302668,-2.620387,1202.7}, 0 candidates: []. If a match is expected consider increasing max_visited_nodes. at com.graphhopper.matching.MapMatching.computeViterbiSequence(MapMatching.java:403) at com.graphhopper.matching.MapMatching.doWork(MapMatching.java:204) at com.graphhopper.matching.cli.MatchCommand.run(MatchCommand.java:103) 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:0.08952139s, match took: 0.11568153

I have tried changing --gps_accuracy to several values, ranging from 5 to 100, and I always receive this error. Although the point where no candidates are found changes too.

The GPX file is attached.

The OSM I've used is the one for Spain, and this what I did to generate the matching data (I believe the WARN is not a problem):

java -jar matching-web/target/graphhopper-map-matching-web-0.13-SNAPSHOT.jar import map-data/andorra_france_spain.pbf WARN [2019-08-29 10:13:03,049] com.graphhopper.reader.osm.OSMReader: Parsing error in way with OSMID=708070924 : Cannot parse duration tag value: 15 min

Any help would be appreciated. Latest master version has been used by the way.