data (#23) - Increase the cost of all turns (#188) - Message List

Increase the cost of all turns

Hi there,

Is there a relatively straightforward way to model that ALL right and left turns have a higher cost than going straight? You could do this by using turn restrictions as part of the shooting star algorithm, but it would require a huge amount of data for such a straightforward rule.

On the other hand, it's not as if pgRouting has "geometric intelligence" to figure out where the turns are. So I'm curious to see if anyone has come up with a clever way of generating the necessary shooting star data or working around this somehow.

Thanks, Jordan

  • Message #664

    Yep, it requires a huge amount of rules if you use turn restrictions indeed. However I don't know any other way to do it with the current version of pgRouting. I also wonder if anyone did something similar already.