-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slip road should be preferred #3133
Comments
Yep, http://map.project-osrm.org/debug/#18/39.09459/-76.84185 Tagging: http://wiki.openstreetmap.org/wiki/Highway_link Here's something interesting, though: Check the Table here for some values in combination with the maxspeed tag - almost all of them have a maxspeed 50 tag attached to them. Makes me wonder if our profile default of 35 is way too slow. |
yeah, my gut feeling is that |
Unintended side effect of upping the |
cc @lily-chai just fyi |
Technically we could define this as something to handle in OSRM (e.g. implicit turn restrictions if there is a sliproad). But that would make turn processing way more complicated. I'd define it as a data issue, since the turn should be not allowed in that situation and/or the speed should not be as bad for the turn to make the sliproad unattractive to begin with. Might be that this get fixed with an improved turn function (since we need to slow down considerably for the turn on 90 degrees compared to the two slight turns) - see #2912. |
cc @jakepruitt maybe something to play with in the speed / weight split. |
This just came up again in the context of the fossgis workshop. We now have the turn type available in the turn function, so we can up the weight for sliproad turns: -- Makes turns onto detected Sliproads preferable over their non-sliproad counterparts.
-- We can not detect the turn off of the sliproad here, but this is a good first step.
if turn.turn_type == turn_type.sliproad then
local sliproad_bias = 0.7;
turn.weight = turn.weight * sliproad_bias
end I quickly tested it locally but it needs further investigation, especially since we don't want to screw with the weights too much so that we allow detours via sliproads. Also we can not detect the turn off of the sliproad. |
would it be possible to have access to the way type you come from, as well as the way you turn onto? |
At the moment we iterate over all intersections and call the Lua function (via
What you propose would be to call |
This issue seems to be stale. It will be closed in 30 days if no further activity occurs. |
http://map.project-osrm.org/?z=18¢er=39.094067%2C-76.842510&loc=39.093948%2C-76.842906&loc=39.095093%2C-76.840750&hl=en&alt=0
I think this should prefer the slip road instead of the primary turn. Couple of things at play here:
["primary_link"] = 30,
whereas the taken turn is["primary"] = 65,
. I think we are hitting a point where the slip road is long enough that together with turn penalty, the primary turn is preferred.So this smells like a data issue, but just want to make sure it is.
The text was updated successfully, but these errors were encountered: