-
Notifications
You must be signed in to change notification settings - Fork 2
Cycleway lanes on oneway streets #161
Comments
Hi! This is indeed some kind of bug. We've actually been splitting out the OSM lane parsing logic into a dedicated project, https://github.com/a-b-street/osm2lanes, so I'm going to move the issue to that repo. A/B Street is just about to cutover to using this, so when we fix the issue in osm2lanes, it'll be reflected in A/B Street. (And in osm2lanes, we have much better structure for testing things like this.) The interesting bit: osm2lanes also thinks the cycleway is bidirectional. If you go to https://a-b-street.github.io/osm2lanes/ and type in way ID 25745877, you'll see this: If I'm reading the wiki correctly, I'm a bit confused about So let's
Also by the way, I live in London now, and we've got the contraflow cycle lanes everywhere! They can be confusing to use. Over here, they're getting mapped as separate objects entirely -- like https://www.openstreetmap.org/way/4975997 -- which makes it very hard to handle in software. |
So, to summarize FYI the source in StreetComplete is here:
|
One cannot have a conversation on openstreetmap, so it seems, without competing ideas how to map the same stuff in different ways. Luckily, consumers need not take part in endless discussions. Unfortunately, consumers need to support different schemes. The scheme applied on location indeed is very map-painter friendly. Just draw a blue casing on the side of the osm-way, that the cycle lane is said to be on and add a blue contra arrow to the one-way arrow of the base highway. It is also convenient to provide meaningful turn-by-turn instructions from a router. Things get more complicated, when working on lane level, with lanes that always have a single direction. From what I can tell, cycleways in A/B-Street are of this kind. Looking at the osm2lanes calculation, it seems to me, that it infers "cycleway:left:oneway=no" from "oneway:bicycle=no". I think, this step goes too far. I see a bit of head scratching ahead, to get the correct direction of cycle lanes tagged under this scheme. No idea, if this is even worth the effort. Though it is wrong, and so looks strange, for simulation purposes, it does not really matter much. I might spend a bit more thinking on how to solve this. |
I see, that the text in the left-box on osm2lanes is editable. Shortened version of fetched tags gives me a bidirectional cycle lane:
When I add the line below, I get an arrow on the cycle lane in direction of main traffic:
Tagging as observed in the wild though represents the cycle lane traffic going opposite the main traffic only. Some users therefore tag "cycleway:left=opposite_lane" (c.f. https://wiki.openstreetmap.org/wiki/Talk:Key:cycleway:left ) Following further reasoning down this talk page, perhaps I'd have to add this line instead:
HOORAY! This works out as intended. Problem solved? At least, in so far as osm2lanes is concerned, I'd think so. Regarding OSM tagging, certainly not: Using opposite_lane to record that fact is truly worse than specifying directionality separately, it makes life harder for osm2lanes, as LHT / RHT and also directionality of the adjacent lane have to be considered. Regarding sensible defaults: If osm2lanes defaulted to "cycleway:left:oneway=-1" instead of "cycleway:left:oneway=no"? That also would require to consider LHT/RHT, so a bit of a burden… And, to be honest, the fact that the road is not a one-way for bicycles, and that there is a cycle lane on its left side, says nothing about the one-way-ness of the cycle lane… Update: I added |
Update 2 in separate post: Looks like there actually is a default documented: According to https://wiki.openstreetmap.org/wiki/Key:cycleway:right:oneway the value defaults to the one of the "oneway" tag of the base highway. One should be aware, that wiki documentation not always represents the will of the community or speaks for the popularity among mappers. Yet, failing to come up with anything more sensible as a default, it might be enough to make |
|
What do you think we should do with Should it be equivalent to |
As far as I am concerned, osm2lanes does now properly display the direction of the cycleway. Mind you, I changed the tagging there, 25745877. When I change the "-1" to "yes", the cycleway goes the same direction as the carriageway. Should be right so. What remains, directionality of cycleways with unspecified direction. In a recent tagging-ML discussion, it was posted, that the cycleway inherits the direction from the carriageway then. PS: osm2lanes should support passing way-id as a parameter, either in query-string or in hash. |
In which example?
|
In Austria, "-1" is the most often used value for "cycleway:left:oneway" key, c.f. https://overpass-turbo.eu/s/1ihb Out of the 5 (out of 202) with "yes" (cycleway:left:oneway=yes in Austria from the wizard), I only looked at the one in the most western part of the country, it is certainly a tagging error; It is way id 620921694 - BTW: osm2lanes does not account for the left side cycle-track there. Update: The left side cycleway is missing in the lanes plot, not the right side one. Add total number of oneway-cyleways. |
JFYI, there are TagInfo instances per country/continent. They are a bit hidden, though…
A list of instances is hidden behind the |
So, cycleway:left:oneway=yes is certainly a tagging that should/would trigger a warning of a validator in right-side-driving countries, etc. but it is not necessarily wrong |
A recent ping reminded me to update my local A/B-Streets install. Browsing around my city in A/B-Street, which is always a pleasure, I got to see some bidirectional cycleways, which in fact are single direction only. Eg. https://www.openstreetmap.org/way/25745877 has a lane for cyclists contra-flow motorists. Its tagging looks like polished with StreetComplete, still I consider the tagging accurate and complete, if not over-complete.
In A/B-Street, the "opposite-lane" (an old-fashioned osm jargon) for cyclists renders as a bidirectional cycle-way, where in reality, it is just a narrow cycle-only-lane contra the one-way. Cyclists going the motorist-one-way direction are to use the carriageway just as usual.
The OSM-Wiki is silent about directionality in such cases. I asked on the new forum, but only got on response from somebody, sharing the same background that I operate on ;) Is this different in e.g. Seattle? Or, are there just no tiles/presets for that? Or …
The text was updated successfully, but these errors were encountered: