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

Remove duplicate entries from LocationIndexMatch #57

Open karussell opened 8 years ago

karussell commented 8 years ago

Currently a list returned from LocationIndexMatch can contain QueryResult with duplicate edges, we should keep only the QueryResult with the closest snap (only make a difference if NODE or EDGE snap)

keep -> 51.0299515,13.7312364,135.0, 1262321564000, query distance:5.303846908850638, gpxListIndex:218
        51.0299515,13.7312364,135.0, 1262321564000, query distance:7.0464515718966, gpxListIndex:218
        51.0299515,13.7312364,135.0, 1262321564000, query distance:12.1125611024485, gpxListIndex:218