Skip to content

Instructions should ignore VirtualEdges created during lookup #1013

Closed

Description

@boldtrn

When during the lookup phase of a route request a new virtual edge is generated for StartPoint -> FirstRoute, we have to ignore these VirtualEdges. They lead to a wrong number of turns or might be interpreted as turns, which shouldn't be the case. Here is one example case, the requested point is place very close to Edge2:

  Edge3      NewVirtualEdge
        \   /
Edge 1   \ /         Edge 2
__________  ______________

When routing from NewVirtualEdge via Edge two, the Instructions are Continue -> Turn Sharp Left.

I think we should ignore the newly created VirtualEdges/VirtualNodes in this case?

Activity

  1. changed the title [-]Instructions Should Ignore VirtualEdges created during lookup[/-] [+]Instructions should ignore VirtualEdges created during lookup[/+] on Mar 27, 2017
  2. karussell commented on Mar 27, 2017

    @karussell
    Member

    Not sure if this has something to do with this but do you return a weight smaller than 1e-3 in Weighting.calcWeight? Currently we do not check weight boundaries for CH but we could to do so e.g. in CHGraphImpl.setWeight also there you see the WEIGHT_FACTOR=1000

  3. karussell commented on Apr 10, 2017

    @karussell
    Member

    Can we close here and is the real underlying reason same as #1022?

  4. boldtrn commented on Apr 19, 2017

    @boldtrn
    MemberAuthor

    It could be, yes. But this issue was about weights being too small. We should probably check the CH weightings, and if they are too small/big we should correct the values and log an error?

  5. karussell commented on Apr 9, 2018

    @karussell
    Member

    Done

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions