Turn restrictions revisitied

Hi,

in general, the optimised parameter basically tells the routing engine not to use any of the pre-processed optimisation algorithms, which are what allow the generation of routes very quickly. When you set it to be false, the system drops down to a more flexible, but much slower algorithm, which in turn means that there are much more restrictions as to the distance of routes that can be generated.

Turn restrictions are currently only taken into account when the more flexible (but slower) algorithm is used, which happens to be the case when you do things like avoid ferries.

So in summary, the reason for having optimisation set to true by default is that it reduces server load, allows faster and longer route generation, and in most cases it produces correct results.

Anyone who knows more about the details (@andrzej @HendrikLeuschner ) feel free to correct what I have said.

1 Like