Skip to content

Instructions: Add U-Turn Instruction #1064

Closed

Description

@boldtrn

Currently there is no u-turn instruction for GraphHopper.

There are two types of u-turns:
1: Being on a big road with separated lanes, e.g. https://graphhopper.com/maps/?point=52.508875%2C13.326448&point=52.50896%2C13.326555
2: Being on a normal road. This usually happens when there is a via point on that road or when navigating and taking a wrong turn, e.g. https://graphhopper.com/maps/?point=52.97255%2C12.879045&point=52.975069%2C12.881727&point=52.972576%2C12.879045

Handling case 1 won't be too easy and would probably require #1007.
Handling case 2 should be doable with checking the orientation and/or checking if the prev edge id is equal to the next edge id.

So this issue is about adding U-Turn instructions at all and provide them for case 2.

Activity

  1. self-assigned this
    on May 15, 2017
  2. devemux86 commented on May 15, 2017

    @devemux86
    Contributor

    Is 1st case related to multiple ways turn restriction #446 #3155?
    Or else we could have false u-turns.

  3. boldtrn commented on May 27, 2017

    @boldtrn
    MemberAuthor

    Is 1st case related to multiple ways turn restriction #446 #3155?

    Yes, exactly. Currently, there is no solution for this. So I was planning on solving case 2 only for now. Case 1 needs more thinking I guess.

  4. karussell commented on May 27, 2017

    @karussell
    Member

    I think the 2nd is a duplicate of #289

  5. boldtrn commented on May 29, 2017

    @boldtrn
    MemberAuthor

    I think the 2nd is a duplicate of #289

    Yes you are right, sorry didn't found that.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions