Route ignores "No Right Turn" restriction,175.281672,-37.793474,175.288324&b=0&c=0&k1=en-US&k2=km

Openstreetmap has this intersection as a “no right turn” yet the route ignores this.
Is this a bug or is there another way to ask the openrouteservice to respect this rule

Thank you for reaching out!

The reason for the observed behavior it is that the default routing algorithm which is optimized for speed does not support turn restrictions. This algorithm is used when no route preferences are specified.

Turn restrictions are respected once you enable some filters, for example try Avoid road types: ferries . This of course doesn’t have any direct influence on this particular route, however, it triggers another algorithm at the backed which resolves turn restrictions correctly, see here.

When querying the API directly one can force the latter algorithm by appending to the request optimized=false parameter without the need of specifying any custom route preferences.


Brilliant - Thankyou, This is a fantastic service you have here, Will donate something to the project next week.

1 Like

Hello Andrzej,

this makes sense if you use the api directly but for the users of the ORS app it is not logical to set a restriction to follow turn restrictions.
The app should have “optimized=false” set as default.


i cannot see any difference when clicking the link provided by andrzej. it is still turning right when avoiding ferries

This is because with ORS v6 update we don’t support turn restrictions on our maps client anymore. This temporary shortcoming will be addressed in one of the upcoming releases, so stay tuned.