Repository navigation
Render oneway:bicycle=-1 and the footway side of segregated paths - #733
Open
AndreasGerken wants to merge 2 commits into
Open
AndreasGerken wants to merge 2 commits into
AndreasGerken wants to merge 2 commits into
Conversation
- One-way arrows follow oneway:bicycle when bicycles have their own direction: oneway:bicycle=-1 now points against the way's drawing direction, also on roads with oneway=yes and on bicycle=designated roads. - highway=track with oneway:bicycle=yes/-1 gets arrows. - The footway line of segregated paths (highway=path + bicycle=designated + segregated=yes) is drawn on the right of the riding direction, so it moves with oneway:bicycle=-1. - traffic_mode:left=foot / traffic_mode:right=foot set the footway side explicitly (new footway_side column in cyclosm_ways). Left and right follow the riding direction on one-way paths and the drawing direction on two-way paths, as defined in Proposal:Separation: https://wiki.openstreetmap.org/wiki/Proposal:Separation#Directions_of_left_and_right Existing databases need views.sql re-run once (no reimport). Fixes cyclosm#697 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phyks
requested changes
Nov 16, 2026
Phyks
left a comment
Member
There was a problem hiding this comment.
Hey!
Thanks for this MR. I have a blocking comment on footway_side. Could you update the MR and I'll quickly review the rest, which should only have minor / style comments, if any?
Thanks!
traffic_mode:left/right comes from Proposal:Separation, which is still a draft, and is used on only about 2k ways. Remove the footway_side column and its rules. The footway of segregated paths stays on the right of the riding direction, so it still moves with oneway:bicycle=-1. views.sql and project.mml are back to master, so no database update is needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
Fixes #697.
What changes
oneway, so a way withoneway:bicycle=-1got an arrow along its drawing direction, against the direction bicycles may ride. The arrow now followsoneway:bicyclewhen it isyesor-1, andonewayotherwise. This applies to paths, cycleways, footways and roads, including thebicycle=designatedroad arrows.highway=trackwithoneway:bicycle=yes/-1now gets arrows, like path/cycleway/footway (example from the issue: way 27582403).highway=path+bicycle=designated+segregated=yeswas always drawn on the right of the drawing direction. It is now drawn on the right of the riding direction, so it moves to the other side together with the arrow foroneway:bicycle=-1.traffic_mode:left=footortraffic_mode:right=foot, the footway is drawn on that side. Left and right are read as in Proposal:Separation (draft, wheretraffic_mode:*is defined): relative to the riding direction on one-way paths, and relative to the drawing direction on two-way paths. This covers footways that really are on the left of the riding direction, e.g. at bus stops or in countries that drive on the left. The ways in the issue (Wrocław, ul. Bolesława Krzywoustego) can then drop the note and be taggedtraffic_mode:left=foot.Deployment
views.sqladds afootway_sidecolumn tocyclosm_ways, so existing databases needviews.sqlrun once (no reimport).Note on labels.mss
In the arrow block, the light
#ddffill for cycleway/path is repeated inside the reverse rule. Without it, carto drops either the fill or the reverse direction foroneway=yes+oneway:bicycle=-1on paths and cycleways (checked in the compiled XML), so please keep it when touching this block.Testing
Berlin, Grüner Weg. (way 1570439660) The separately mapped path is tagged partly
oneway:bicycle=yesand partly-1. On master the arrows and the footway line flip back and forth along one continuous path; with this PR they are consistent:Wrocław, ul. Bolesława Krzywoustego (the ways from the issue, for example way 626720873). Panels: master; this PR without a side tag; this PR with
traffic_mode:left=foot(added locally for the test). The walkway is actually on the left of the riding direction (towards the road), so the last panel is correct. To show it like that, the ways would needtraffic_mode:left=footin OSM (the note could then go):Berlin, Messedamm (way 41107193,
oneway:bicycle=yes,traffic_mode:left=foot):Berlin, Rudower Chaussee (way 1172671353, oneway:bicycle=-1)
The correctness of these examples was manually reviewed using orthophotos.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com