Railway=station as an area?

What makes you say pt=station and rw=station have to be the same node?

Id argue that one pt=station may have two separate amenity=bus_station and rw=station.

For one, it tends to be forced by iD (which will complain that a railway=station or amenity=bus_station is missing a public_transport=station) but for the other, many of these stations are functionally separate, having different names, IDs and usually separate operators (here in Germany, mainline railway stations are operated by DB whereas bus terminals are operated by the transport association, local bus operator or whatever depending which one is more relevant).

I’m talking about the diagram. This was also discussed before. Both =platform and =stop are currently used with the public_transport= counterpart directly. This uniformity would be lost.
Not saying this is impossible, but even with =bus_stop being used differently between public_transport=platform and =stop_position , =bus_station is kept with the =station . You would have a public_transport=station used alone without the mode’s feature, although this might be envisioned by the public_transport= proposal. So perhaps paradoxically, this would be leading the adoption of standalone public_transport= features.
Different public_transport=station can always be related by =stop_area_group first. This doesn’t precludes creation of multiple public_transport=station next to each other.

That makes sense, I was looking at it from the wrong angle. Thanks for the clarification

Maybe running off topic, but what is the best-practice for handling bridges within the landuse=railway=station area? (Which will happen a lot when mapping to the signals) A multipolygon connected to either end of the bridge?

It seems to me that the diagram is already complete — or very close to it. So I’m sharing the SVG file, along with a link to an editable version in the Figma online vector editor.

In addition to the ā€œcomplete taggingā€ version, I’ve also created a version that illustrates simple tagging. However, I’m not entirely sure how relevant or useful the simplified diagram is.

I’d like to invite those who participated in this discussion to either update the diagram on the wiki or, if needed, continue the conversation and refine the diagram further. @stevea, @gymate — perhaps the two of you could take the lead together from here?

Finally, I want to thank everyone who took part in the discussion — I couldn’t have done this without your help :heart:

4 Likes

These (latest) diagrams are an exemplary OSM achievement of thoughtful, patient consensus. They truly are beautiful and it’s triumphant to reach this finish line. With more support (thumbs-ups, hearts…) for this most recent version, (that is, please add your support with an emoji as you agree that this version is effective!) we can confidently supersede the existing wiki entries.

I am distinctly honored to be a part of this process. With your ā€œvotesā€ of support, these diagrams will become our latest pedagogical visual aids to better railway station mapping throughout our project’s data. Again, thank you to everyone who participates!

P.S.: I think the simplified version is great as it can be ā€œvisually grokkedā€ by more-novice users who don’t have to ā€œeat the whole meal.ā€ When the simplified version nourishes as a ā€œlight meal,ā€ the more-complete (yet, not fully complete) version can deepen understandings.

1 Like

Sure—thank you very much for your work so far! :slight_smile:

1 Like

I think it is also very much related to mapping philosophy:

  1. Most of the current railway=station areas do not represent actual station boundaries but areas open to passengers. If we were to redefine their meaning, we’d instantly get 6,751 invalid usages.
  2. railway=station is currently tied together with public_transport=station. Using railway=station for marking their boundaries would require a change in id-tagging-schema so that iD would only suggest adding public_transport=station to railway=station nodes, not areas.
  3. Having two tags for describing railway station boundaries (based on the location) is an unnecessary complication in my opinion.
1 Like

Tipping my hat to you @gymate as you field our vast system of rail semantics.

We have (all together) said a great deal here. Might we say ā€œthe latest two graphics go a distance to improveā€ and promote them to wiki? Add a link or three from there to here, and we now have a novice-intermediate-friendly introductory graphic with stunningly effective use of color to introduce. Plus our latest solid work that both looks great and describes a lot quite well. Tip of the iceberg and ā€œmoreā€ of the iceberg and yes, the latter has a question mark or so about it. There are some additional platform_edge semantics, described elsewhere, omitted on this ā€œmiddle levelā€ diagram (not the whole enchilada of railway=station semantics), so that would do with some explanatory wiki text, of course. And so on. There are dozens? of authors and feathering of edges that are ā€œstill trueā€ about how we describe these. It’s complicated, we’ve talked about it here for a year and a half. This Discourse topic captures a lot, it’s awesome.

Let’s herd cats. Everyone, let’s promote these latest two graphics to our wiki, with some good links to here (there remain many salient points-to-be-noted) with some brief text that some cleaves and not-fully-resolved edges continue. I’ll call these diagrams 99% to 100% (for now) and they pedagogically rock: OSM does mean to teach these concepts well, these diagrams do that. Let’s see them on our wiki, huh? Fireworks want to be free.

Edit: Semantics visually described are not an exact be-all and end-all. They are pedagogical.

Sure, go ahead! But we need to discuss the railway=station vs area:railway=station issue anyway.

I’m interested in your thoughts on the points I mentioned in my previous comment.

Sure, go ahead! But we need to discuss the railway=station vs area:railway=station issue anyway.

I’m interested in your thoughts on the points I mentioned in my previous comment.

typically in OpenStreetMap, we distinguish between linear objects and polygons, and reduce the latter to points if they are either very small or when we want to denote a ā€œcentreā€ explicitly (and in this latter case, in particular with admin and place, we have a method to combine area and point, but we keep using the same tags, e.g. a place represented as an area has the same tag as one mapped as a point). There is no requirement to specify an ā€œarea:-prefixā€ because the geometry already implies it.
The only context where we use area: prefixes is with highways, because these are linear objects, and we need to distinguish between linear highways and area highways.

I agree that both are carrying distinct information, polygons and points, but if we were to come up with a solution to map both for the same object, we would rather want to have the possibility to map several points to the same area, so we can map different access points (entrances, gates etc.) for the thing. This is not limited to train stations though, it would be useful for other big pois as well, e.g. airports, universities, ultimately every poi with several entrances.

Huge respect all around; we are heroes together. I offer my perspective re-affirming there are other perspectives (on this large topic in our relational database). With the simple diagram, we use color as blue and green to distinguish different syntax as differing objects, tagged similarly. Everybody can agree to it. It pedagogically rocks; crackle-boom.

Now, simultaneously, a pink landuse thing is going on, too (we render its edges and boundaries, we model with signals and edges of ways in OSM…). Not either-or, this is both. Pink AND blue; blue AND green. Yellow as a visual relation call-out. As simultaneous differing concepts. Sometimes syntax shares across things, like railway. A deeper diagram visually groups in geometry and logic as syntax with color. Boom.

The ? is there to denote that the area: prefix, while it exists, is a meta-syntactic method to call out something exceptional or at least different. I see how both can and do exist. There isn’t always a pure ā€œthis method is always correct.ā€ With these diagrams and bouncing back to further wiki if need be and brief wiki pointing back here, OSM draws a certain-sized box around this (snapshot for now). As two pretty diagrams in our wiki, with some links back here many might say captures 99% or 100% of the spirit. If we must put a number on it. I nod my head.

For now. I call it a wrap!

When I attempt to upload the new .png image(s) to the wiki, I get an error
ā€œFile extension ā€˜.svg’ does not match the detected MIME type of the file (image/png).ā€

I have had similar trouble before uploading to wiki(commons), I have also had success. I can’t figure out what I’m doing wrong, so any help uploading the new documents (both of them, the ā€œmore completeā€ version and the ā€œsimpleā€ one), I would appreciate that! Thank you in advance to anybody who can assist.

It seems the upload issue might have been caused by a mismatch between the file type and extension — for example, if a PNG image was being uploaded under a .svg filename, the system would throw an error.

In any case, I’ve uploaded both updated diagrams as new versions of the previous files. I’ve added myself and andygol to the list of authors for helpful feedback, software tips, and the idea to improve diagrams with accessible colors.

Many thanks to everyone who took part in the discussion!

https://wiki.openstreetmap.org/wiki/File:Railway-station-tagging.svg

https://wiki.openstreetmap.org/wiki/File:Railway-station-tagging_simple.svg

3 Likes

Applause, everybody! Applause! These diagrams here and now are sweet. I or others can dress them up with minor wiki fiddling as appropriate. Applause. (OK, I’ll stop applauding now).

I hereby declare my (and @gymate’s…) very recent wiki-fiddling (truly minor) defining the simple and up to ā€œMore completeā€ diagrams to be ā€œrailway=station Diagrams 2.0.ā€

Chef’s kiss, mwah. These are so pretty, effective, shared as ours; cool. Congratulations, OSM.

1 Like

This is a legacy practice because OpenRailwayMap does not work with railway=yard on areas. I am in the process of updating railway yards in Mexico to railway=yard on an area which is the perimeter of the yard.


Regarding the main topic of the conversation:

  • Railway stations are inherently areas and should be mapped as such.
  • Rendering software should not arbitrarily add a node for stations mapped as areas.
  • Good practice for mappers is not to add a node in the ā€œcenterā€ of the station.

Railway stations have spatial extent, just like supermarkets, power plants, etc. do. Would it make sense if a map rendered a node for power=station? No. Would it make sense if we always mapped power stations as nodes or added a node to the ā€œcenterā€? No. Neither it does for railway stations. The displayed node is a spurious artifact of OSM Carto, not something we need to acomodate in our mapping scheme. We already have building=train_station and railway=stop to mark the part that is of interest for passengers.

There is an exception for low zoom levels only: Given that areas effectively become points anyway, it is fair for a map to display areas of interest as points, this being computed, not stored in the database. If for some unknown reason we needed to precisely define the location of that point: let it be the barycenter of all building=train_station areas within the railway=station area.

1 Like

The two diagrams and two lines of text (five sentences) in the ā€œOverviewā€ section of our wiki (where these diagrams live…including the ā€œmore completeā€ one as now referred by many other multilingual wikis) succinctly capture these ā€œ1% of edgesā€ (of the semantics the ā€œmore completeā€ diagram displays).

So, indeed, we continue discussion on the topics of railway stations being primarily areas (areas defined by landuse=railway + railway=station or perhaps public_transport=station). Though, we do have the diagram display that nodes can ā€œalsoā€ be tagged railway=station or areas / polygons can be area:railway=station without specifying (in the diagram) these are legacy, rare or exceptional cases.

The diagrams improve much but they do leave this particular 1% or so a bit ambiguous, with a few brief sentences of explanation immediately below them. We have ā€œnailed it upā€ for now, but the paint is still a bit wet on that / those specific topics.

So, I offer my thumbs-up of agreement to @Ferrocarriles_de_MƩxico 's post just above this one.

Edit: I think 100% of OSM can agree the ā€œsimplifiedā€ diagram is 100% correct. I think the ā€œmore completeā€ diagram being 99% (or so) correct and agreeable by a great many of us getting us to 199% correct out of 200% of diagrams is ā€œpretty good.ā€ For now. Discussion continues!

You can try to read through the ā€œconversationā€ first. The fundamental disagreement is about public passenger area vs much larger and restricted rail operations area vs linear referencing point. The centroid/label/target for rendering and routing comes afterward.
=train_station only covers buildings, causing public_transport=station to be discussed as its own area enclosing the grounds and parts outside (and exposed platforms). =stop doesn’t work for linear referencing at bay platform terminus stations, which were preferred by proponents to be a point at the end of the platforms.

5 Likes

Thanks for your delightfully pithy words. I updated Talk:Railway stations - OpenStreetMap Wiki to point here (in addition to the footnote in the page, and to look at the Talk page).

We seem to have contained current unresolved issues / disagreements in a smallish box, though I don’t know if it gets easier to further refine!

So I’ve read the thread a bit and just wanted to quickly mention, that this is a good idea for smaller stations like halts. It may not work the best for bigger stations though, as the exact area can be heavily disputed. That’s up for debate though.

The idea of area:railway=station is completely stupid and is not at all what area:highway=* was going for. It really just seems like tagging for the renderer. The actual fix to this is either not caring about rendering or implementing a new centre role for untagged nodes in multipoligons – if that would even be usable for software. I’m not going to go into too much detail right now.

I have a question about whether or not railway=station should be used on multipoligons. Let me show you my issue:

https://maps.app.goo.gl/3uogt76Kw7nMQHfM6

Right here I’ve got a halt which has platforms on both sides of the road. Would it be okay to use a multipoligon with two outer areas containing a platform and tracks so that it excludes the highway? I really wouldn’t consider the road as a part of the halt.