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.

Avoid unnecessary u-turns #70

Closed
Closed

Description

@karussell

Sometimes u-turn artifacts are introduced. A good description with data and screenshots is available in the forum

Activity

  1. beyondfun commented on Nov 13, 2016

    @beyondfun

    Any update for the issue? I met the problem also, cannot find a way to solve it.

  2. karussell commented on Nov 13, 2016

    @karussell
    MemberAuthor

    (You can try to change the gps_accuracy)

  3. beyondfun commented on Nov 14, 2016

    @beyondfun

    Changing gps_accuracy DOES make the output a little different, but the result is still weird. I changed gps_accuracy param from 40 to 200, and not gotten a acceptable result.

    During the process of tuning the parameter, I cannot guess which one is better. I cannot tell to enlarge the param or reduce it based on the output.

    So my question is if there is something like a guideline for tuning the param, or is there some walk around for it?

    Thanks in advance.

  4. karussell commented on Nov 14, 2016

    @karussell
    MemberAuthor

    Currently there is no other workaround that I know.

  5. beyondfun commented on Nov 14, 2016

    @beyondfun

    I managed to remove the loop path.

    But there come another problem, what if the real path is a loop? I will remove the real route in this case.

    So I guess whether I can get the relationship of original route and snapped route? Is there any way I can achieve this?

  6. karussell commented on Nov 14, 2016

    @karussell
    MemberAuthor

    Yeah, would be nice if we find a solution. But maybe instead of a post processing step, there is an algorithmic solution - maybe @stefanholder, @michaz or @kodonnell have an idea? (Currently this and #51 are the most requested features, quality-wise.)

    So I guess whether I can get the relationship of original route and snapped route? Is there any way I can achieve this?

    What do you mean here? Something like discussed in #64 ?

  7. stefanholder commented on Nov 14, 2016

    @stefanholder
    Contributor

    There might be a general problem with the normalization in the normalized transition metric. Can you please try to change this line toreturn Math.abs(linearDistance - routeLength); and set transition_probability_beta to 2.0?

  8. karussell commented on Nov 14, 2016

    @karussell
    MemberAuthor

    Thanks @stefanholder - I'll try with my examples.

    And @beyondfun would you mind to try this too?

  9. kodonnell commented on Nov 14, 2016

    @kodonnell
    Contributor

    I wonder if it's not the HMM, but the data we're giving it. E.g. as per here, the routed distance is simply the distance between nodes, and doesn't (?) take into account the actual position of the candidate relative to the node. So I wonder if changing to e.g. from.getQueryResult().getSnappedPoint() will give better results? I will have a look now (though it may take me a while as I haven't used the web UI before).

    As an aside, I've created a bespoke UI for inspecting results (for a project at work), which animates the route (including step-by-step) and shows the candidate points at each step ... which would be rather useful in this case. @karussel, if you're interested, I can add a new issue.

  10. stefanholder commented on Nov 14, 2016

    @stefanholder
    Contributor

    @kodonnell is right. A candidate should not be a node but a road with an offset and a direction. The candidate position should be computed as the closest point on the road to the GPS position.

  11. kodonnell commented on Nov 14, 2016

    @kodonnell
    Contributor

    @stefanholder, the candidates are snapped (and the correct distance is used for emission probabilities), but it looks like it isn't being used for the transition probability. Turns out my idea isn't so trivial ... algo.calcPath only takes IDs, not snapped points. @karussell - is there any easy way to do what I'm thinking?

    FYI validated issue appears with accuracy = 20m on the first example file.

  12. kodonnell commented on Nov 14, 2016

    @kodonnell
    Contributor

    On second thought ... are we both wrong, given the whole virtual node business? I.e. will the closest node actually be the snapped location?

  13. karussell commented on Nov 14, 2016

    @karussell
    MemberAuthor

    So I wonder if changing to e.g. from.getQueryResult().getSnappedPoint() will give better results?

    This getClosestNode is the virtually created node, so this should be okay IMO.

    I.e. will the closest node actually be the snapped location?

    Yes

  14. karussell commented on Nov 14, 2016

    @karussell
    MemberAuthor

    @karussel, if you're interested, I can add a new issue

    This sounds really interesting. Debugging tools are always very nice to have :) ... is it web or Java swing based?

    Turns out my idea isn't so trivial ...

    What exactly is your idea :) ?

    doesn't (?) take into account the actual position of the candidate relative to the node.

    I've still not tried the suggestion from @stefanholder but maybe the location lookup is not returning all possibilities? Normally if would get only a 'too perfect snap' (to the incorrect edge) this would explain the U-turns but we should also get some 'imperfect snaps' to at least one of the correct edges which will give overall better results.

  15. 57 remaining items

  16. karussell commented on Dec 28, 2016

    @karussell
    MemberAuthor

    Can we close here now that #88 is merged or is there still room for improvement?

  17. kodonnell commented on Dec 30, 2016

    @kodonnell
    Contributor

    Can we close here now that #88 is merged

    At this stage it's pretty untested (both in unit tests and by users). However, it looks good to me, so I'd probably prefer to close this and then re-open it (or start a new issue) if it arises. Not sure what's standard practice though.

    is there still room for improvement?

    I think #88 closes this issue well, and the only improvements are probably performance/API related or the like, which I think are separate.

  18. karussell commented on Dec 31, 2016

    @karussell
    MemberAuthor

    At this stage it's pretty untested (both in unit tests and by users).

    Why do you think it is untested by unit tests? All previous stuff works. And as we'll deploy this soon into production we'll get back user reports quickly.

  19. karussell commented on Dec 31, 2016

    @karussell
    MemberAuthor

    However, it looks good to me, so I'd probably prefer to close this and then re-open it (or start a new issue) if it arises. Not sure what's standard practice though.

    Yes, lets keep every issue as small as possible and reopen it later or similar.

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