Turn restrictions


#1

Hello,

I am having a really hard time trying to figure out, how to make a call action respect turn restrictions in the API playground.

I am using v2/directions (post). I have read other threads in this forum describing the same problem. It was recommended to avoid ferrys or to avoid a country in order to use another algorithm. Which i have tried out, but no effect.

This is my json:
{“coordinates”:[[9.954822,53.561992],[9.94796,53.549324]],“options”:{“avoid_countries”:[193],“avoid_features”:[“ferries”]},“preference”:“shortest”}

This is the example on the map:

https://maps.openrouteservice.org/directions?n1=53.555684&n2=9.951034&n3=16&a=53.561992,9.954822,53.549324,9.94796&b=0&l1=1&c=1&k1=en-US&k2=km

At the first intersection (Stresemannstr) its not possible to turn left (and it is defined in osm data)

Any help would be very much appreciated…


#2

That’s a very good point and unfortunately there is no way right now to respect turn restrictions with the new algorithms in place. We’re working on fixing that. You can read more about the latest release here:
http://k1z.blog.uni-heidelberg.de/2020/01/08/openrouteservice-v60-ganymede/