-
Notifications
You must be signed in to change notification settings - Fork 576
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
Transportation: add filter to reject unsigned routes #1614
base: master
Are you sure you want to change the base?
Conversation
In principle, this change is fine, but Source: The case that you found in Michigan, I would regard as a tagging error and I've corrected it to use |
For context, a route can be signposted independently of its number (ref). For example, this route is conspicuously signposted with signs that indicate the route’s name but not its number. Its number exists only for internal inventory purposes, but that number is tagged as
|
I've edited https://wiki.openstreetmap.org/wiki/Key:unsigned to attempt to make the situation more clear. "unsigned" would imply that a feature has no on-the-ground signage at all. "unsigned_ref" implies that the feature does actually have on-the-ground signage, but that the signs don't display the particular legal designation. |
Even so, the fact that this key originally only pertained to the name (in the context of bus stops) means that data consumers need to be careful interpreting it to mean anything other than an unsigned name, depending on how lenient or strict the use case needs to be. OpenMapTiles may get away with hiding these features out of an abundance of caution, but redefining the key (even in a very sensible manner) probably deserves at least a brief discussion in the OSM community beyond this relatively obscure PR. |
Many of those tag uses are ways instead of relations. For the actual usage on route relations, the current counts are 36 versus 2560. Anyway, the point is not to abandon all existing uses of For example, replacing
This is more or less my idea. I'd say One could consider a follow-up PR to ignore the |
This does not seem to be a problem in practice. In the UK, where E-roads are unsigned, |
I hadn’t thought of that. We should probably make sure that all the editors and the website fall back to The E15 example “works” because of a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quoting from trolltag,
It is not OK to use one tag and add second tag that negates or massively change its meaning. Additional tags should clarify meaning of main tags rather than negate it.
In general, any tag that must be processed to avoid serious misinterpretation of the feature is a trolltag.
This is an excellent example of such a tag. unsigned=yes
goes against the common understanding of ref, and we already have a standard tag for unsigned refs. Quoting from the ref page,
unsigned_ref=* - reference number or code that is generally not signed on the route
This is my suggested fix for issue #1613. It discards transportation routes tagged with
unsigned=yes
.The code is inspired by the already-existing filtering of water polygons with
covered=yes
in the water layer.Disclaimer: I have no experience with this code repository and have not tested this.