Repository navigation
Bike: priority "multiplier" instead of "set" for lane - #3349
Merged
Merged
Conversation
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR boosts the priority for "lane" slightly (and removes the cycleway=track inconsistency and the speed-compensation block) and fixes the inconsistencies discussed in #3219 (and does this for all bike classes) but without removing preferHighwayTags (would lead to unrelated changes for routes like this). The maximum priority is 1.2 (PREFER) i.e. it can never get as good as cycleway=track. This leads to fewer route changes compared to #3336 (draft) and #3327.
Also the the original route is fixed and now follows the initial laned residential:
I also deleted the speed-compensate block as @michaz said - it makes the priority calculation unnecessary complex.
AI generated summary table:
Original issue
highway=residentialhighway=residential+cycleway=lanehighway=residential+cycleway=trackhighway=cyclewayHierarchy preservation
highway=tertiary(not in preferHwy)highway=residentialhighway=residential+cycleway=lanehighway=secondaryhighway=secondary+cycleway=lanehighway=primaryhighway=primary+cycleway=lanehighway=primary+cycleway=trackhighway=secondary+cycleway=trackmaxspeed≤30(now "1.1 like residential")highway=secondary+maxspeed=30highway=secondary+maxspeed=30+cycleway=lanehighway=primary+maxspeed=30Speed-compensation block removed
highway=secondary+maxspeed=10highway=residential+maxspeed=15residential+bicycle=designated+class:bicycle:touring=2+maxspeed=15bikeDesignatedno longer downgraded bycycleway=trackhighway=path+bicycle=designated(good surface)highway=path+bicycle=designated+cycleway=track