<div dir="ltr"><div><div><div><div><div>@Colin:<br></div>You got me there: I implicitly excluded the possibility that a way may be part of the route more than once.<br></div>I assumed this to be a general rule.<br></div>If you do not exclude it also the more than-than-two-ends exclusion rule falls apart.<br></div>@Adrian:<br></div>What does RA do with routes where the same member appears several times?<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 May 2018 at 18:49, Colin Smale <span dir="ltr"><<a href="mailto:colin.smale@xs4all.nl" target="_blank">colin.smale@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Why does a loop make it impossible to sort the ways? It implies that a section of the route is present twice in the relation, but there is surely no distinction between the first traversal of a way and the second traversal?</p><div><div class="h5">
<div> </div>
<p><br></p>
<p>On 2018-05-03 18:42, Volker Schmidt wrote:</p>
</div></div><blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0"><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>I will try to explain this in a more systematic way:<br><br>Routes belong to either of two categories:</div>
(A) Those whose members can be sorted into a single ordered sequence</div>
(B) Those that cannot be sorted into a single ordered sequence of members</div>
Sorting makes only sense for category (A)</div>
Routes of type (B) can be subdivided into routes of type (A), each of which can be sorted, but the overall route can not be sorted.<br><br></div>
Routes are of type (A) if <br>(1) the path from begin to end is identical to the reverse path with  all members traversed in the reverse order and in the opposite direction</div>
<div>or</div>
<div>(2) all members have the role forward</div>
<div>or</div>
<div>(3) all members have the role backward<br><br></div>
<div>Any route </div>
<div>(1) that has more than two ends </div>
<div>or</div>
<div>(2) that contains any loop (except the case that the entire route is a single loop)</div>
<div>or</div>
<div>(3) that contains any element with role forword or role backward (except the cases of all-forward or all-backward)</div>
<div>or<br>(4) that contains node or area elements</div>
<div>is of type B<br><br></div>
<div>I am not sure if I have taken care of all cases - please complete as necessary</div>
<div> </div>
<div class="gmail_extra"><br><br></div>
</div>
<br>
</div></div><div class="m_4551909851068834227pre" style="margin:0;padding:0;font-family:monospace">______________________________<wbr>_________________<span class=""><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="noopener noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/tagging</a></span></div>
</blockquote>
</div>
<br>______________________________<wbr>_________________<br>
Tagging mailing list<br>
<a href="mailto:Tagging@openstreetmap.org">Tagging@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/tagging" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/tagging</a><br>
<br></blockquote></div><br></div>