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

Add a weight for bicycle=discouraged tag in OSRM profile #1159

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

greenscientist
Copy link
Collaborator

In general the OSM community do not encourage the use for this tag, but it can be a good indication of dangerous bike routes. (We have a few street marked as such in Montreal)

This add a penalty to routing on those segments.

This was tested on De La Verandrye street, after setting the secondary default weight to 0.9 to have OSRM first route on it. After adding this code with the 0.9 weight, we see that the road is avoided.

In general the OSM community do not encourage the use for this tag, but it can
be a good indication of dangerous bike routes. (We have a few street marked as such in Montreal)

This add a penalty to routing on those segments.

This was tested on De La Verandrye street, after setting the secondary default weight to 0.9
to have OSRM first route on it. After adding this code with the 0.9 weight, we see
that the road is avoided.
@greenscientist
Copy link
Collaborator Author

Closes #951

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

Successfully merging this pull request may close these issues.

2 participants