Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jgilbert2017 opened this issue Aug 15, 2022 · 0 comments
Open

Comments

@jgilbert2017
Copy link

jgilbert2017 commented Aug 15, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant