itinero/routing

Question: any way to compute route based on left/right turn avoidance?

jgilbert2017 opened this issue · 0 comments

I'm routing between points that are somewhat on a 90 degree x/y grid and getting a lot of zig-zaggy results based on best time.

Is there any way to introduce a cost associated with making left and right turns without editing the routerdb? For example, I'd prefer a route that may take 0-10% longer if it significantly reduces the number of turns needed.

I saw some references to turnPenalty in the source code but this seems to relate to u-turns based on my reading of the code.

thank you.