itinero / routing

The routing core of itinero.
Apache License 2.0
222 stars 70 forks source link

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

Open jgilbert2017 opened 2 years ago

jgilbert2017 commented 2 years ago

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.