<div dir="ltr">Richard - and anyone else who can help.<div><br></div><div>Can someone help with an overpass query to find problem route relations? I'm happy to help fix, but my overpass skills are, well to put it bluntly, not worth shit:-)</div><div><br></div><div>Thanks,</div><div>Clifford</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 28, 2020 at 11:18 AM Richard Fairhurst <<a href="mailto:richard@systemed.net">richard@systemed.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div name="messageBodySection">
<div dir="auto">Hello folks,
<div dir="auto"><br></div>
<div dir="auto">Route relation names aren’t in a great state, are they?</div>
<div dir="auto"><br></div>
<div dir="auto">Let’s say that I want to render cycle route names on a map (because, well, I do). I zoom in on a way along the East Coast of Britain and I find it’s a member of this route:</div>
<div dir="auto"> <a href="https://www.openstreetmap.org/relation/9579" target="_blank">https://www.openstreetmap.org/relation/9579</a></div>
<div dir="auto"><span> name=NCN National Route 1</span><br></div>
<div dir="auto"><span><br></span></div>
<div dir="auto"><span>Hm, ok. That’s not the name of the route, it’s a duplication of the ref (and network) - something we’ve known not to do with the name/ref tags for roads since time immemorial. No matter, there are other relations for the way, so let’s see if they’re any better:</span></div>
<div dir="auto"> <a href="https://www.openstreetmap.org/relation/9476069" target="_blank">https://www.openstreetmap.org/relation/9476069</a><span><br></span></div>
<div dir="auto"> name=EuroVelo 12 - North Sea Cycle Route - part United Kingdom 5</div>
<div dir="auto"><br></div>
<div dir="auto">That’s _definitely_ not the name of a route. “part United Kingdom 5” is some OSM mapper’s shorthand. If I were to tell someone <span>that I’m having a holiday on “part United Kingdom 5”</span><span>, even someone who works for the route authorities at Sustrans or the European Cycling Federation, they’d look at me blankly. Anyway, this has a parent relation:</span></div>
<div dir="auto"> <a href="https://www.openstreetmap.org/relation/9476239" target="_blank">https://www.openstreetmap.org/relation/9476239</a></div>
<div dir="auto"> name=EuroVelo 12 - North Sea Cycle Route - part United Kingdom</div>
<div dir="auto"><br></div>
<div dir="auto">Nope, that’s not great either. It in turn has a parent relation:</div>
<div dir="auto"> <a href="https://www.openstreetmap.org/relation/1207220" target="_blank">https://www.openstreetmap.org/relation/1207220</a></div>
<div dir="auto"> name=EuroVelo 12 - North Sea Cycle Route</div>
<div dir="auto"><br></div>
<div dir="auto"><span>That’s not good. It duplicates the ref and the network; it enforces arbitrary punctuation upon the data consumer. It is, I guess, the least wrong of any of these names. But that’s not saying much.</span><br></div>
<div dir="auto"><span><br></span></div>
<div dir="auto"><span>This isn't just a British thing, or an NCN thing, or a EuroVelo thing. Refs in names are depressingly ubiquitous. Better still: there are hundreds of routes with something like ref=12-83, name=</span><span>(12) - (83) - with the added brackets meaning you can’t even filter them out based on a simple match. Then </span><span>there are routes called "</span><span>Aare-Route (Etappe 3)” and "</span><span>Alpenpanorama-Route- Etappe 6 (Thun-Fribourg)” and "</span><span>[D10] Elberadweg [Abschnitt K] Dessau-Roßlau - Elster [linkselbisch]”. I wish I were making this up.</span></div>
<div dir="auto"><span><br></span></div>
<div dir="auto">The upshot: bad luck if you want to render the actual names of routes on a map. You can’t.</div>
<div dir="auto"><br></div>
<div dir="auto">A modest proposal: let’s use the name= tag in route relations for route names. Let’s use the ref= tag for route numbers. If it doesn’t have a name, it shouldn’t have a name= tag. Same as we do everywhere else.</div>
<div dir="auto"><br></div>
<div dir="auto">If you need somewhere for a mapper-facing route description (and I can see that you need that for “part United Kingdom 5”), then I guess the obvious place to put that is the note= tag. But let’s keep it out of the name tag; and let’s have a concerted effort to remove them from existing name tags.</div>
</div>
</div>
<div name="messageSignatureSection"><br>
<div>Richard</div>
</div>
</div>

_______________________________________________<br>
Tagging mailing list<br>
<a href="mailto:Tagging@openstreetmap.org" target="_blank">Tagging@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/tagging" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/tagging</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>@osm_washington<br></div><div><a href="https://www.snowandsnow.us" target="_blank">www.snowandsnow.us</a></div><div>OpenStreetMap: Maps with a human touch</div></div></div></div></div></div></div>