My pgRouting shortest path algorithm is able to take restrictions and oneway streets into account. Threrefore, OSM data was imported into a PostGIS database using the tool pypgroutingloader. Sadly, the left turn at major intersections is still not accurate. Using a different import-tool (like osm2pgrouting) does not help either.
This is, what a correct route (south to west) looks like (using OSRM).
My setup currently generates the shortest path like this:
As you can see, it is not violating the oneway-rule. It illegaly turns left at the node after the driveway. How could I get rid of that behaviour? I already thought about calculating the angle between segments and ristricting sharp turns... But I have no idea about how to do that.