DennisOSRM/Project-OSRM — Issue #153: penalty for very sharp turns
Author: emiltin
Created: 2012-02-26 20:31:50+00:00
State: open

i previously mentionen that there's a problem with osrm suggesting "almost u-turn" in situations where a normal way splits into two oneways (often just before/after intersections). osrm enters the node from one of the oneways, does a very sharp turn, and returning back the other oneway.

the problem is not caused by incorrect tagging. requiring turn restrictions doesn't make much sense; it's assumed that you're not allowed to make such "almost u-turns" right outside the intersection. there are a lot of these places, and none of them has turn restrictions.

an idea for dealing with this problem could be to have a configurable penalty for very sharp corners (fx between 140 and 180 degrees). i think this would work since the sharpness of the maneuver is exactly what makes it akward/undesirable.

it might be easy to implement if you already do penalty for u-turns and left/right turns.