Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore gaps in annotated map matching results #5108

Open
oxidase opened this issue Jun 19, 2018 · 0 comments
Open

Ignore gaps in annotated map matching results #5108

oxidase opened this issue Jun 19, 2018 · 0 comments

Comments

@oxidase
Copy link
Contributor

oxidase commented Jun 19, 2018

The map-matching option gaps=ignore is used in combination with timestamps use_timestamps && allow_splitting, but would be nice to ignore gaps in annotated map-matching results with a waypoints parameter.

For example, map matching request
http://localhost:5000/match/v1/drive/9.54358,51.47337;9.54396,51.46233;9.541360000000001,51.44117000000001;9.570640000000001,51.44753000000001;9.5922,51.44337;9.61096,51.44688000000001;9.611350000000002,51.44323000000001;9.621630000000001,51.439960000000006;9.624410000000001,51.429930000000006;9.631390000000001,51.42541000000001;9.63521,51.425650000000005;9.64521,51.41937;9.646130000000001,51.41819;9.644860000000001,51.414970000000004;9.64864,51.41489000000001

returns tracepoints

  "tracepoints": [
    {
      "alternatives_count": 0,
      "waypoint_index": 0,
      "matchings_index": 0,
      "name": "",
      "location": [
        9.543398,
        51.473368
      ]
    },
    {
      "alternatives_count": 0,
      "waypoint_index": 1,
      "matchings_index": 0,
      "name": "",
      "location": [
        9.543813,
        51.46233
      ]
    },
    {
      "alternatives_count": 1,
      "waypoint_index": 2,
      "matchings_index": 0,
      "name": "",
      "location": [
        9.541009,
        51.441187
      ]
    },
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    {
      "alternatives_count": 0,
      "waypoint_index": 0,
      "matchings_index": 1,
      "name": "Veckerhäger Straße",
      "location": [
        9.636801,
        51.426068
      ]
    },
    {
      "alternatives_count": 0,
      "waypoint_index": 1,
      "matchings_index": 1,
      "name": "Veckerhäger Straße",
      "location": [
        9.645128,
        51.419336
      ]
    },
    {
      "alternatives_count": 0,
      "waypoint_index": 2,
      "matchings_index": 1,
      "name": "Veckerhäger Straße",
      "location": [
        9.645934,
        51.418155
      ]
    },
    {
      "alternatives_count": 3,
      "waypoint_index": 3,
      "matchings_index": 1,
      "name": "",
      "location": [
        9.644886,
        51.414977
      ]
    },
    {
      "alternatives_count": 41,
      "waypoint_index": 4,
      "matchings_index": 1,
      "name": "August-Natermann-Platz",
      "location": [
        9.648503,
        51.415016
      ]
    }
  ]

and with waypoints=0;14 parameter the result is NoMatch.

A new behavior with parameters gaps=ignore&waypoints=0;14 will be a "loose" map matching with a routable part between locations 9.541009,51.441187 and 9.636801,51.426068 that does not correspond to missing trace points.

/cc @TheMarex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant