You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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.
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.
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.)
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?
Activity
karussell commentedon Apr 21, 2014
Sure, that is very important. Maybe the community can contribute this.
martinsauvage commentedon Apr 21, 2014
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?
karussell commentedon Apr 21, 2014
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):
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.
karussell commentedon Apr 21, 2014
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
martinsauvage commentedon Apr 21, 2014
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
karussell commentedon Apr 21, 2014
0.3 in a few days or weeks. 0.4 surely this year.
Pull request are always welcome. See the guidelines
martinsauvage commentedon Apr 21, 2014
Thank you Peter, I will ask an update about that in a few months.
Have a good evening
martinsauvage commentedon Apr 21, 2014
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
[-]Roundabout directions[/-][+]Roundabout instructions[/+]karussell commentedon Apr 22, 2014
Yes, missing instructions are another issue: #94
Also this issue is related to #80
fabrik42 commentedon Apr 23, 2014
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.
karussell commentedon Apr 23, 2014
Hmmh, sounds reasonable. But having the number of exits would make everything more complex, I'll think about it.
karussell commentedon Apr 24, 2014
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.)
fabrik42 commentedon Apr 25, 2014
Ah yes, the angle is an even better idea!
martinsauvage commentedon May 1, 2014
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
include isRoundabout check for every edge towards #185
martinsauvage commentedon Sep 20, 2014
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
karussell commentedon Sep 20, 2014
Yes, sure every contribution is welcome. Both issues depend on #116 which is more complex but nearly completed but I cannot provide a timeline..
karussell commentedon Feb 3, 2015
We've decided to implement roundabout instruction already in #316. #116 will follow later to make them always working for CH too.
made roundabout instructions working for CH too, #185
karussell commentedon Mar 3, 2015
Works now for CH and on GH Maps too
martinsauvage commentedon Mar 3, 2015
Great !