Skip to content

Roundabout instructions #185

Closed
Closed

Description

@martinsauvage

Hello,

Graphhopper is a great routing engine but I am surprised there is no exit direction in any roundabout.

Example:
http://graphhopper.com/maps/?point=47.931512%2C-2.38869&point=47.931814%2C-2.388325

How to get "take exit 3 on the roundabout" direction?

Is it something you plan to implement in the future or maybe there is an option to use?

Thanks,
Martin

Activity

  1. karussell commented on Apr 21, 2014

    @karussell
    Member

    Sure, that is very important. Maybe the community can contribute this.

  2. martinsauvage commented on Apr 21, 2014

    @martinsauvage
    Author

    Thanks for your quick answer. Am I the only guy who is interested in this improvement? I may try to contribute to this, however do you think this is a complex development?

  3. karussell commented on Apr 21, 2014

    @karussell
    Member

    At least one other and I would like to have something like this, yes :)

    Regarding complexity. Yes, this could be somewhat complex if we want to make it right. These would be the steps that I would do (spend only a quick thought):

    • detect a roundabout and merge it into only one junction (== node) and store numbers of edges
    • store two roundabout-junction-numbers per edge
    • if a roundabout-node is involved then calculate the exit-number

    I don't like to have so many space wasted only for that exit-number, hmmh ... instead one could maintain a separate roundabout lookup-table. This would be probably a lot better in terms of space and fast enough as there are only ~320 000 roundabouts world wide.

    For the none-CH case one could calculate the exit-number also on demand. But for CH we would have to disable a certain feature which boosts performance a bit.

  4. karussell commented on Apr 21, 2014

    @karussell
    Member

    This is a lot simpler: just store one bit in an edge if it is part of a roundabout or not e.g. via CarFlagEncoder. Then in Path.calcInstructions count the numbers of "roundabout edges" and use this number as exit-number for the instructions.

    Scheduled for 0.4 as 0.3 is feature frozen

  5. added this to the 0.4 milestone on Apr 21, 2014
  6. martinsauvage commented on Apr 21, 2014

    @martinsauvage
    Author

    Glad to hear this is not a so complicated to support this kind of feature.

    When do you expect to release 0.3 and 0.4? Is it planned for this year? Please let me know if you need any help for this feature.

    Thanks

  7. karussell commented on Apr 21, 2014

    @karussell
    Member

    0.3 in a few days or weeks. 0.4 surely this year.

    Pull request are always welcome. See the guidelines

  8. martinsauvage commented on Apr 21, 2014

    @martinsauvage
    Author

    Thank you Peter, I will ask an update about that in a few months.
    Have a good evening

  9. martinsauvage commented on Apr 21, 2014

    @martinsauvage
    Author

    By the way, I detected an issue in roundabout, maybe this is already a known issue.

    In this example, there are 2 consecutives roundabouts
    http://graphhopper.com/maps/?point=48.063203%2C-1.620446&point=48.064519%2C-1.618713

    Check out the found direction: "Turn right onto road". Thus there are several missing directions there...

    Martin

  10. changed the title [-]Roundabout directions[/-] [+]Roundabout instructions[/+] on Apr 22, 2014
  11. karussell commented on Apr 22, 2014

    @karussell
    Member

    Yes, missing instructions are another issue: #94

    Also this issue is related to #80

  12. fabrik42 commented on Apr 23, 2014

    @fabrik42

    Hi - just my two cents:
    If you want to visualize a roundabout instruction, it would be helpful to have two values: Exit you have to take and the total number of exits, so you can show a special icon e.g. for leaving the 3rd of 5 exits.

  13. karussell commented on Apr 23, 2014

    @karussell
    Member

    Hmmh, sounds reasonable. But having the number of exits would make everything more complex, I'll think about it.

  14. karussell commented on Apr 24, 2014

    @karussell
    Member

    I think, for now we go with the number of the exit and the angle which is even more important than the total number IMO.

    (Or maybe before this issue I make some more fundamental changes to the graph model so that we can include the total number too, but I don't think so.)

  15. fabrik42 commented on Apr 25, 2014

    @fabrik42

    Ah yes, the angle is an even better idea!

  16. martinsauvage commented on May 1, 2014

    @martinsauvage
    Author

    This is great, I'm looking forward seeing this improvement in GH!

    Regarding #94 apparently this issue is opened for a long time (9 months ago), do you plan to fix that in 0.3 or 0.4 release?

    Thanks

  17. martinsauvage commented on Sep 20, 2014

    @martinsauvage
    Author

    Hello Karussel,

    Could you provide us a quick update about #185 and #94? I can help you if necessary (code or test). Do expect to release 0.5 (0.4 has apparently been cancelled) by the end of the year?

    Thanks,
    Martin

  18. karussell commented on Sep 20, 2014

    @karussell
    Member

    Yes, sure every contribution is welcome. Both issues depend on #116 which is more complex but nearly completed but I cannot provide a timeline..

  19. karussell commented on Feb 3, 2015

    @karussell
    Member

    We've decided to implement roundabout instruction already in #316. #116 will follow later to make them always working for CH too.

  20. karussell commented on Mar 3, 2015

    @karussell
    Member

    Works now for CH and on GH Maps too

  21. martinsauvage commented on Mar 3, 2015

    @martinsauvage
    Author

    Great !

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions