<div dir="ltr"><div>Hi Michael,</div><div><br></div><div>that's very helpful, thanks. I'll implement the ref as well as the ordering. I'll also add this to the English wiki pages where needed. I'll have a look at the DE page as well.</div><div><br></div><div>Examples for nodes as requested. Stop_position at:</div>- End of platform (middle of line) node 13328915<br><div>- End of platform (end of line) node 20955753</div><div>- Middle of platform node 1620401529<br></div><div><br></div><div>(Disclaimer: I was just adding tags for 13328915, but I'll fix this shortly to be in the center of the platform. IMHO that is the convention that does make sense from a passengers perspective, but yes, it doesn't address Colin's comments about physical stop train positions from the drivers perspective.)</div><div><br></div><div>Many thanks,</div><div>Bjoern</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2017 at 15:48, Michael Reichert <span dir="ltr"><<a href="mailto:nakaner@gmx.net" target="_blank">nakaner@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bjoern,<br>
<span class=""><br>
Am 2017-05-10 um 18:59 schrieb Bjoern Hassler:<br>
> In an  osm:relation:route<br>
</span>> <<a href="https://wiki.openstreetmap.org/wiki/relation:route" rel="noreferrer" target="_blank">https://wiki.openstreetmap.<wbr>org/wiki/relation:route</a>> (type=route,<br>
<span class="">> route=train/...), you have both platforms and stop positions. How is a<br>
> particular platform associated with a stop that serves it?<br>
><br>
> E.g. for public transport routing, you'd walk (highway=footway) to a<br>
> platform (public_transport=platform), at which point you'd change to a<br>
> train stopping at a stop (public_transport=stop_<wbr>position). How would the<br>
> routing algorithm know that the platform is associated with the stop?<br>
><br>
> Is there an existing mechanism or convention, e.g. a tag on the platform<br>
> that indicates the stop, or both tagged with the same name or similar?<br>
<br>
</span>Stop positions can have a tag ref=* or local_ref=* giving the track<br>
number which is signed on the platform. The platform has ref=*, too. The<br>
ref tag of the platform often contains multiple numbers because many<br>
platforms have to edges, i.e. ref=2;3 or even worse: ref=2a;2b;2;3a;3b;3<br>
(if the track can be occupied by two trains behind each other at the<br>
same time – very common at busy stations).<br>
<br>
If you don't want to parse ref=*/local_ref=* and route relations are<br>
properly mapped, you can check which route relations reference a<br>
platform. If a route relation contains both platforms and stop<br>
positions, the next member of a relation after a stop position node is<br>
should be the platform.<br>
<br>
I think that both variants provide better results than simple snapping<br>
on the next edge in your pedestrian routing graph (if platforms are in<br>
your routing graph). There are cases in reality where a railway track<br>
has platforms on both sides but you can or must leave the train only to<br>
one direction.<br>
<span class=""><br>
> PS I've noticed that sometimes the stop position is at the far end of a<br>
> platform (i.e. the two stop positions are at opposite ends of the station).<br>
> Maybe that's so that an association can be made?<br>
<br>
</span>From my point of view this is wrong mapping. (In Germany mainly done by<br>
user rayquaza) To give a correct answer, you should give some examples<br>
(node IDs).<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
<br>
--<br>
Per E-Mail kommuniziere ich bevorzugt GPG-verschlüsselt. (Mailinglisten<br>
ausgenommen)<br>
I prefer GPG encryption of emails. (does not apply on mailing lists)<br>
<br>
<br>
</font></span><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>