Skip to content
This repository was archived by the owner on Mar 1, 2021. It is now read-only.
This repository was archived by the owner on Mar 1, 2021. It is now read-only.

If a u-turn happens in the measured data the match could be truncated #85

Closed

Description

@karussell

map-matching-export

Probably due to current code like distanceCalc.calcDist() > 2 * measurementErrorSigma? I guess, rather not, as I can reduce the gps accuracy to 15m (road is roughly 100m long) and still get the truncated snap. Also access to this road seems to be okay. I have the gpx file available here locally.

Activity

  1. kodonnell commented on Dec 6, 2016

    @kodonnell
    Contributor

    Hmmm, that's odd. Can you either post the GPX or

    • confirm that it's not a visualization issue? I.e. that the road route doesn't actually go further up, but it's just not displayed?
    • is it an 'inner link U-turn' (see prevent inner-link U-turns #83)? I can see there's that little loop road off the U-turn road, but I'm not sure if that's valid for your vehicle. (If not, then it is an inner link U-turn.)
    • try removing the return route, and see if you still get the same behaviour. Actually, getting it down to the minimum GPX list that shows the behaviour would be handy (though I can do that if you post it).

    As an aside - is there a way we can add this to the codebase as a (currently) failing test? We obviously can, but then it'll fail builds etc. Can it be marked as more of a warning - so the build passes, but the user is still aware it's failing?

  2. karussell commented on Dec 6, 2016

    @karussell
    MemberAuthor

    Can you either post the GPX

    Could send it to you per email (if you like or have time to investigate) or I will trim down or reproduce in another area so that we can add it without adding a new pbf.

    Can it be marked as more of a warning - so the build passes, but the user is still aware it's failing?

    We could add it as a test that we tag with @Ignore, which should be listed separately I hope.

  3. kodonnell commented on Dec 6, 2016

    @kodonnell
    Contributor

    Could send it to you per email (if you like or have time to investigate)

    Happy either way.

    without adding a new pbf

    That'd be best - though it's probably OK to add small pbfs (e.g. #83) using OSM export to select only the relevant region. (EDIT: see comment two below about the export.)

    We could add it as a test that we tag with @ignore

    Ah, that's cool. When you/I get the minimum example, do you want me to add a (failing) test? Or do you want to wait until we figure it out?

  4. karussell commented on Dec 6, 2016

    @karussell
    MemberAuthor

    When you/I get the minimum example, do you want me to add a (failing) test? Or do you want to wait until we figure it out?

    Depends a bit on the type of the bug. If its hard to fix -> tag it with ignore

  5. kodonnell commented on Dec 6, 2016

    @kodonnell
    Contributor

    See issue85.txt for a minimum example.

    Can use this export, but probably not a good idea to put into the repo unless there's an easy way to filter to only roads. (I will update my above comment.)

  6. karussell commented on Dec 6, 2016

    @karussell
    MemberAuthor

    unless there's an easy way to filter to only roads

    Nice idea which we could apply to all existing osm files.

    Maybe osmosis?
    osmosis --read-xml city.osm --tf accept-ways highway=* --used-node --write-xml highways.osm

    or somehow with https://wiki.openstreetmap.org/wiki/Osmconvert

  7. devemux86 commented on Dec 7, 2016

    @devemux86
    Contributor

    Also Osmfilter.

  8. kodonnell commented on Dec 7, 2016

    @kodonnell
    Contributor

    Thanks both - created a new issue so we can keep this one on track.

  9. michaz commented on May 27, 2018

    @michaz
    Member

    Seems to me like it wasn't disproven that this is an "inner-link U-turn", which, according to #83, we are deliberately modelling as "doesn't happen". So this is probably expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions