Repository navigation
Open
Description
As a follow up to the implementation of roundabout instructions (#316) some improvements are yet to be implemented:
- get/setRadians misleading #424
- improved detection of direction of rotation by not relying on turn geometry, but purely on the edges' order. For a clean implementation there should be no CH shortcuts in the graph (Make normal algorithms work on graph prepared for CH #116)
- a more accurate assesment of the transit angle through the roundabout in case of drive-up ways. To this end either one calculates entrance/exit direction not only from the last two waypoints but interpolates across the last X meters, or one avarages waypoints of both the incoming and outgoing direction of the edge.
- more fine grained text instructions and rephrase "take exit X in direction dummy street" to "take exit X onto dummy street"
- exit numbers are counted as exits the vehicle (i.e. encoder) could take. This might lead to confusion as e.g for bikes this could increase the exit number (https://graphhopper.com/maps/?point=52.513955%2C13.344462&point=52.511598%2C13.357036&vehicle=bike&elevation=true&layer=TF%20Cycle) but a user might assume that only paved streets are counted. Vice versa this could reduce the number of counted exits for trucks as some exits might be prohibited for them.
- There is a counting problem if the incoming edge its last node is identical to the first node of the next outgoing edge. See the screenshot of miniui (right side), which is taken from old data in the file core/files/monaco.osm.gz here will be fixed with Roundabout fix #354
- A roundabout instruction bug. See this route. It say: at roundabout take exit 2, but it should be exit 1. This is probably created by this track, that is probably seen as the 1st exit.
- Another bug is here where all leaving roads are handled as first exist. Caused potentially from strange tagging.
Metadata
Metadata
Assignees
Labels
No labels

Activity
devemux86 commentedon Feb 9, 2015
I propose to make
publicthe RoundaboutInstruction.getExitNr to be able to handle more flexible theRoundaboutInstruction(like the others) by getting its elements.karussell commentedon Feb 9, 2015
(If so, please rename to getExitNumber :))
devemux86 commentedon Feb 9, 2015
It would be also helpful if the
RoundaboutInstruction'sfinishedandcontinuedStreetvariables get public get methods, since they participate in instruction building.jansoe commentedon Feb 9, 2015
please note that
isContinuedStreetis already public.I will make
getExitNrpublic and rename it togetExitNumber.I hesitate to make
finishedpublic as it's main purpose is internal consitency control, but you are right it takes part in the instruction building if the goal is within a roundabout. With the upcoming improved roundabout instruction in mind I would introduce an indicator variable that indicates if a roundabout either has to be entered and left | only entered | only left.devemux86 commentedon Feb 9, 2015
I know you have mentioned that the roundabout instructions are to be improved.
Because right now do we really need the instruction with 0 exit?
Isn't confusing for the user?
jansoe commentedon Feb 9, 2015
Yes I think it might be confusing. But I also think it is a very unusal case that a route is to end within a roundabout and therefore this instruction is temporarly acceptable.
I totally agree that the refined instructions should be available as soon as possible, but I also wanted to give the community a chance for feedback.
[-]Roundabout instruction improvment[/-][+]Roundabout instruction improvement[/+]karussell commentedon Oct 17, 2022
In general we should probably use "car_access" as reference so that if a bike cannot use the motorway the road is still counted.
On the other hand insignificant roads for car should be somehow ignored: https://graphhopper.com/maps/?point=51.49277%2C-0.28221&point=51.49095%2C-0.283563&profile=car
mattfbacon commentedon Oct 11, 2024
We just encountered the exit counting issue with bicycles. Here was the discussion on OSM (In german): https://www.openstreetmap.org/note/4470785#map=19/49.902639/10.067153&layers=N. Has anything been done to address this? I don't understand why it would be different for bicycles because they also have to follow traffic rules like one-way streets. And no, you can't get off your bike in the middle of a roundabout and push it the wrong way on the roundabout entrance road.