<p></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">Currently most PTv2 relations have <code class="notranslate">network</code>, <code class="notranslate">ref</code>, <code class="notranslate">route</code>, <code class="notranslate">from</code>, <code class="notranslate">via</code> and <code class="notranslate">to</code> tags. Regardless of these tags the OSM website shows only the ref of these relations. Using that information it is possible to generate a name like iD and JOSM do.</p>
<p dir="auto">To make it easier, you can use the strings from iD's implementation (<a href="https://github.com/openstreetmap/iD/pull/8276/files">https://github.com/openstreetmap/iD/pull/8276/files</a>):</p>
<pre class="notranslate"><code class="notranslate">display_name:
direction: "{direction}"
from_to: "from {from} to {to}"
from_to_via: "from {from} to {to} via {via}"
network_direction: "{network} {direction}"
network_from_to: "{network} from {from} to {to}"
network_from_to_via: "{network} from {from} to {to} via {via}"
ref: "{ref}"
ref_direction: "{ref} {direction}"
ref_from_to: "{ref} from {from} to {to}"
ref_from_to_via: "{ref} from {from} to {to} via {via}"
network_ref: "{network} {ref}"
network_ref_direction: "{network} {ref} {direction}"
network_ref_from_to: "{network} {ref} from {from} to {to}"
network_ref_from_to_via: "{network} {ref} from {from} to {to} via {via}"
</code></pre>
<p dir="auto">Example elements for testing:<br>
<a href="https://www.openstreetmap.org/relation/13892501" rel="nofollow">https://www.openstreetmap.org/relation/13892501</a><br>
<a href="https://www.openstreetmap.org/relation/13892502" rel="nofollow">https://www.openstreetmap.org/relation/13892502</a><br>
<a href="https://www.openstreetmap.org/relation/13892503" rel="nofollow">https://www.openstreetmap.org/relation/13892503</a> (see members section)</p>
<h3 dir="auto">Description</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/19364673/238190114-1ad3e3a7-f5d4-4cfd-9e0c-e927a9364966.png"><img src="https://user-images.githubusercontent.com/19364673/238190114-1ad3e3a7-f5d4-4cfd-9e0c-e927a9364966.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/19364673/238190125-51f96ac1-8020-4042-a6b6-da1fae993403.png"><img src="https://user-images.githubusercontent.com/19364673/238190125-51f96ac1-8020-4042-a6b6-da1fae993403.png" alt="image" style="max-width: 100%;"></a></p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/4033">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLMBSZEMBAPACEBCPTXGDPNRANCNFSM6AAAAAAYBFUAF4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMZJIHJACAZNFBN4KLXGDPNRA5CNFSM6AAAAAAYBFUAF6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGLXEMVI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/4033</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/4033",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4033",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>