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

Map matching snaps from entrance to exit ramp #122

Closed otbutz closed 6 years ago

otbutz commented 6 years ago

Overview; matching-overview Snapping: matching-detail

Expectation: expectation

Minimum working example:

<?xml version="1.0"?>
<gpx xmlns:wptx1="http://www.garmin.com/xmlschemas/WaypointExtension/v1" xmlns:gpxedw="http://www.gpxeditor.co.uk/xmlschemas/WaypointExtension/v1" xmlns:gpxedts="http://www.gpxeditor.co.uk/xmlschemas/TrackSegExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" creator="GPXEditor" version="1.1" xmlns="http://www.topografix.com/GPX/1/1">
  <trk>
    <name>Untitled</name>
    <trkseg>
      <trkpt lat="51.28604" lon="6.90011" />
      <trkpt lat="51.28792" lon="6.89951" />
      <trkpt lat="51.28995" lon="6.89887" />
      <trkpt lat="51.29173" lon="6.89833" />
      <trkpt lat="51.29301" lon="6.89793" />
      <trkpt lat="51.29496" lon="6.89758" />
      <trkpt lat="51.29656" lon="6.89739" />
      <trkpt lat="51.29729" lon="6.89857" />
      <trkpt lat="51.2985" lon="6.89936" />
      <trkpt lat="51.29768" lon="6.89443" />
      <trkpt lat="51.29677" lon="6.89173" />
      <trkpt lat="51.29508" lon="6.88726" />
      <trkpt lat="51.29403" lon="6.88514" />
      <trkpt lat="51.29284" lon="6.88295" />
    </trkseg>
  </trk>
</gpx>
michaz commented 6 years ago

Works for me, result looks almost like your expectation.

What version are you using? Any custom network data (other than regular OSM)? On your screenshot, it almost looks like there are edges going through mid-air..

otbutz commented 6 years ago

Any custom network data (other than regular OSM)?

Going to report back after i tested it with most recent OSM data but that might be an explanation.

michaz commented 6 years ago

Closing for now.