-
Notifications
You must be signed in to change notification settings - Fork 822
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 rendering of "ref" on paths and create new layer for "ref" of minor roads and paths #3663
Conversation
This makes the ref lables at z17 and up consistent between track roads, paths, residential and unclassified highways
What's the link to the site that makes those cool charts? In this case, we would need a chart that shows the number of highway=path, =footway, =cycleway etc with ref=, since the "ref=" tag can be used for many different features. I've checked the combinations on Taginfo: It's used 6169 times with highway=cycleway 11, 327 times with highway=footway: 1 853 times with highway=steps Taginfo doesn't record how many times it is used with highway=bridleway, suggesting that there are less than 1000. However, there are only 82 ,648 bridleways, so the percentages might be similar. For comparison, ref=* is used 66, 115 times with highway=track, out of 15 million total tracks. So 0.4% of tracks have a "ref", and these are now rendered: https://taginfo.openstreetmap.org/tags/highway=track#overview And ref=* is used 82, 235 times with highway=residential, out of 44 million total, thus 0.2% of highway=residential have a "ref="; these have been rendered for some time. |
OSM Tag History. You can compare multiple tags with it to. Its pretty handy. Hhhhmmm, I don't know what to make of your tagging summary, but its still interesting and helpful. I hadn't thought about the upper and lower case usages. Would they both be rendered then? I'm aware that ref=* has been rendered on highway=residential already. But it might be a similar case to rendering based on height where if it works in one situation that doesn't mean it will work in every situation. Off the top of my head, it would probably work fine on residential roads because 99% of the time they also have name tag that would mitigate any possible confusion. Whereas on paths, they don't have names for someone to fall back on most of the time. Id venture to that where ref names are used without name tags, its just a name tag. Since its essentially being used as one in those cases. Which seems like bad tagging. Ref should be a complement to a name. Not a replacement. Btw, it even says on the ref wiki page that "This key and variations are frequently used to avoid the use of relations." Which just confirms what I hypothesized above about how they might be used instead of relations, and therefore aren't official or reliable in a lot of cases (there's still the verifiability/ground truth rule in Wikipedia. Which relation numbers wouldn't qualify under. As they have no relation to the real world. Therefore, id put this as a tag worth using for enthusiastic and in specific cases, but not worth rendering in cases where its attached to a widespread tag like paths where there is no fallback like name=* |
The majority of paths with a ref also have a name, though there are some
unnamed paths that only have a ref, just as is the case with roads, based
on the search results that I found while looking for examples to render.
(Eg Hwy 96 is unnamed. I-5 sometimes has an official name but the ref is
almost always used, or in SoCal they call it “The Five”)
…On Sat, Feb 2, 2019 at 11:27 AM Adamant36 ***@***.***> wrote:
OSM Tag History <http://taghistory.raifer.tech/>. You can compare
multiple tags with it to. Its pretty handy.
Hhhhmmm, I don't know what to make of your tagging summary, but its still
interesting and helpful. I hadn't thought about the upper and lower case
usages. Would they both be rendered then?
I'm aware that ref=* has been rendered on highway=residential already. But
it might be a similar case to rendering based on height where if it works
in one situation that doesn't mean it will work in every situation. Off the
top of my head, it would probably work fine on residential roads because
99% of the time they also have name tag that would mitigate any possible
confusion. Whereas on paths, they don't have names for someone to fall back
on most of the time.
Id venture to that where ref names are used without name tags, its just a
name tag. Since its essentially being used as one in those cases. Which
seems like bad tagging. Ref should be a complement to a name. Not a
replacement.
Btw, it even says on the ref wiki page that "This key and variations are
*frequently* used to avoid the use of relations." Which just confirms
what I hypothesized above about how they might be used instead of
relations, and therefore aren't official or reliable in a lot of cases
(there's still the verifiability/ground truth rule in Wikipedia. Which
relation numbers wouldn't qualify under. As they have no relation to the
real world. Therefore, id put this as a tag worth using for enthusiastic
and in specific cases, but not worth rendering in cases where its attached
to a widespread tag like paths where there is no fallback like name=*
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3663 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoxshMTEMAxMJ6WCYJMm-Xmv1VvAf-EMks5vJPeugaJpZM4abyaB>
.
|
I'm still not very convinced about the need for this. In which countries would this be desirable? I know many (hiking/cycling) routes have ref's, but are there also many instances when the paths/tracks themselves have refs? I'm a bit concerned that this will lead to mistagging, where mappers will add the route ref to the individual roads rather than the route relations. |
Many forest trails in the USA have a ref, similar to those used for forest tracks and roads, especially on lands owned by the federal government (eg National Forests, National Parks, BLM lands). Not all of these are currently mapped. The trail has a reference number. Some may have started out as track roads, but now are trails because they are not maintained for 4-track motor vehicle access, or motor vehicle access is prohibited. For example, there are 934 ways (including >100,000 nodes!) in Oregon with highway=path and ref=*, usually a 4 digit numeric code that has been assigned by the US Forest Service. Most of these ways are 2 to 20 km long:
It appears some cycleways in the Netherlands have ref tags, eg "Fietssnelweg F35" around Hengelo. See https://www.openstreetmap.org/way/4797877 and connected ways for an example.
I suppose this same issue is present with all types of roads? The ref is selected from But I would think that the ref should be applied to the individual ways. The [wiki page for highway=](url "Names and references So all highways with a ref tag, including paths, footways, and cycleways, should have that ref=* tag on each of the ways, as is done with the name=* tag, according to this. |
The matter of route references has been discussed extensively on #596. Note about half of the hiking and bicycle routes have a ref tag while only a small fraction of highway=footway/path/cycleway do. So @matthijsmelissen's concern on this seems justified. |
Thank you for the link to the other issue. I wasn't aware that the route relations were used so extensively in some other countries for walking and cycling routes. While walking and cycling route refs should not be rendered on most highways, it could be appropriate to render the ref found in a relation of type route=bicycle or =mtb on highway=cycleway, and the ref from a route=foot or =hiking would be appropriate for footways. After reviewing issue #596 "Render Ref from Route Relation", it appears there is not yet a simple way to render the shields and ref numbers from the relations without affecting rendering performance. If I understand the state of the issue, the best solution would require improvements to osm2pgsql discussed at this link: osm2pgsql-dev/osm2pgsql#230 - but no one is currently working on solving this. I don't have the technical ability to solve this issue. So should we consider this to prevent the rendering of refs for footways and cycleways from the tags on the ways, since we cannot yet render refs from tags on route relations? I could remove these changes from the PR. |
This should be tagged as route relations, not directly on |
According to several comments above, it is best if "ref=" tags are placed on route relations for footways and cycleways. This requires solving issue #596 before we can render the ref for paths, which could be done best by improving osm2pgsql. See osm2pgsql-dev/osm2pgsql#230 Therefore, I am closing this PR, and will open a new PR with the other changes. |
Closes Issue #2052
Follow-up to PR #3654
Changes proposed in this pull request:
Add rendering of "ref" numbers for paths (highway= bridleway, cycleway, footway, path, steps)
Move aeroways, minor roads, tracks and paths "ref" to a later layer, after name labels are rendered
Minor changes:
Explanation
1) Map users have requested rendering for the "ref" (reference numbers) for paths
2) The minor roads, aeroways, and tracks with text-based ref labels currently render in the same layer as the shields for major roads.
3) The "ref" labels rendering for residential/unclassified roads needs minor adjustments
Test rendering with links to the example places:
highway=unclassified with name and ref - Basilicata, Italy
https://www.openstreetmap.org/#map=17/40.3776321/15.7281581
Before z17
z18
After z17
z18
highway=residential with name and ref - Basilicata, Italy
https://www.openstreetmap.org/#map=17/40.1412792/16.0893142
Before z17
z18
After z17
z18
highway=path with name and ref - Basilicata, Italy
https://www.openstreetmap.org/#map=16/40.4133/15.6249
Before z16
After z16
highway=path with name and ref - Montenegro
https://www.openstreetmap.org/#map=1616/42.6710/19.6521
Before z16
After z16
highway=footway with ref - Brussels, Belgium
https://www.openstreetmap.org/#map=19/50.85126/4.33989
Before z19
After z19
highway=cycleway with ref - Brussels, Belgium
https://www.openstreetmap.org/#map=17/50.87994/4.29554
Before z17
After z17
highway=cycleway with ref - Brussels, Belgium
https://www.openstreetmap.org/#map=18/50.86575/4.36460
Before z18
After z18
highway=bridleway with ref - Canada
https://www.openstreetmap.org/#map=16/52.8965/-118.1050
Before z16
After z16
highway=steps with ref (and path with ref) - Germany
https://www.openstreetmap.org/#map=19/47.45867/11.12463
Before z19
After z19