I need to generate routes that will be performed in long vehicles. The path can not have curves 90 degrees because the streets are narrow.


I'm not sure how to do it in pgrouting exactly, but you could assign some high cost value to the 90 degree turns in your road network. That way, pgrouting would "skip" those turns as it computes the route.

This seems to be one way to do it:


Hope that helps

  • I was wondering about something similar, except it starts to get complicated when you consider turn direction. For instance, if you have an oblique road junction, turning left from the main road off on to the side road might OK (<<90). Turning right from the side road onto the main road is also OK but turning left from the side road on to the main road would not be acceptable (>>90). – MappaGnosis Aug 8 '13 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.