via points should use u-turn
consider this situation
| a | b | c | d |
| . | e | . | f |
| . | g | h | i |
suppose i'm going from a to c, with a via point at e. the shortest would be to do a u-turn after visiting e, so following a,b,e,b,c
instead osrm goes all the way around the loop, following, a,b,e,g,h,i,f,d,e
U-Turns are disabled by design and only allowed at the end of deadened streets.
ok. because they're considered a bad thing in general?
on bike (and certainly on foot) it might make sense to allow u-turns in the speedprofile.
another option: if turn penalty is implemented, you could just have a (user defined) penalty for u-turns.
U-Turns at via routes will be added, apart from that U-Turns don't make much sense.
+1 for u-turns at via points, without it there are crazy routes like this: http://map.project-osrm.org/YP -- instead of u-turning at the traffic lights.
+1 for u-turns at via points, otherwise they result in crazy routes like this: http://map.project-osrm.org/YP -- instead of u-turning at the traffic lights.
Be careful with the phrase crazy when your example does not include a via point and this is a correct routing according to the data.
Oops, sorry. I didn't pay attention to the meaning of "via" in this topic. Anyway, what's wrong with U-turning at the traffic lights in my example if it's allowed by driving rules and makes the shortest route?
On 24.07.2012 14:31, Inego wrote:
Oops, sorry. I didn't pay attention to the meaning of "via" in this topic. Anyway, what's wrong with U-turning at the traffic lights in my example if it's allowed by driving rules and makes the shortest route?
One would expect a turning lane or seperated lanes in both directions in reality. As it is right now, U-turns are explicitely forbidden.
If there was a special node tag explicitly declaring that u-turns are allowed at this node, would you add support for them? Because routing like in my example is very misleading, and drawing two separate lanes with a connection for turning instead of one two-way highway with a node for u-turning is excessive work.
"U-Turns are disabled by design and only allowed at the end of deadened streets.": U-turn on several deadened streets could be inadequate: service or small residental streets could be even not long enough to allow the manouvre (although logical appropriate(.
As milestone 0.4 is near, please don't forget u-turns are completely legal everywhere in some countries like @stevage stated in issue #729...
Thanks for the reminder
What's needed to fix this, ie optionally allow u-turns at via points?
Sweet-talking me into implementing it next week :-)
good idea!
:+1: great!
Will you have time to work on it this week?
any update?
@DennisOSRM do you know when / if you get to work on it?
We need it quite soon; therefore we are thinking about implementing it ourselfs. Could you share your plans for implementation, (code) drafts and ideas with us?