OpenStreetMap

clay_c's diary

Recent diary entries

Is an underground train station a building?

Posted by clay_c on 13 February 2021 in English (English). Last updated on 16 February 2021.

Not too long ago, I lived in San Francisco and frequently took the Muni light rail as well as BART in and out of the stations along Market Street. Being a transit geek and an itinerant mapper, I spent a lot of time working on the various public transit systems of the Bay Area, converting existing route relations to Public Transport v2, adding routes where they’re missing, tweaking geometries, adding wheelchair accessibility information, and so on. One quirk of San Francisco’s Market Street Subway is its double-decker configuration, with BART on the deepest level, Muni light rail above it, and above that a mezzanine level with separate fare gates for the two systems. I wanted to dip my feet into indoor mapping, and I figured these subway stations were a good place to start out, considering my familiarity with them.

isometric diagram of a subway station

I took some time to look at floor plans of the subway stations from their original building plans, which aren’t too far off from how they are today. They had rooms, corridors, stairs, escalators, turnstiles, and all sorts of things I’d have to look up the tagging scheme for. But I wasn’t sure how to, or whether to, map an outline of the excavated area that makes up the entire station. The first thing that came to my mind: it has floors, like a building. You can walk around in it, like a building. It just happens to be underground. So, building=train_station + location=underground made sense to me.

I did what any rail mapper would do in an unfamiliar situation and looked around to other countries with more complete mapping activity to use as examples. I threw together an Overpass query to see if this tagging scheme was in use. A few results in Germany, France, China, Taiwan, and South Korea showed me exactly what I expected: underground train station outlines tagged with building=train_station + location=underground. Some mappers in China have begun to use this extensively, like in Nanchang:

various subway station outlines on OpenStreetMap in Nanchang, China

So I took to mapping beneath Market Street. In the end, my mapping work produced a clickable diagram on OpenLevelUp that I was pretty satisfied with:

level B1 of Powell Street station in San Francisco

And the default renderer seemed to already support it and display it elegantly, with the outline showing up beneath the surface-level streets and buildings:

the same area on OpenStreetMap's default renderer

I eventually ran out of railways to map in the Bay Area, so I continued working my way across the West Coast, and then the rest of the United States. In New York, I came across some cases where someone had already mapped outlines of various major subway stations but had tagged them in a way I hadn’t expected. So I retagged them. Then I traced the outline for Grand Central Terminal, with the help of IsStatenIsland and his incredibly helpful imports of underground easement data from New York’s tax database. I even added some station outlines in Chicago, for good measure.

Well, they didn’t last too long before some other mappers retagged them as not-buildings. In each case, they had given them the tag railway=station, which I thought didn’t quite fit, considering those were already mapped as nodes, and a single excavated underground area could contain multiple stations on different lines. I left them some friendly comments and reverted their changes, but most of all I wanted to come to a consensus on how these outlines should be tagged.

The question was forced when a couple of disused subway entrances in New York got reopened, and a new mapper added them in. This mapper decided to add the indoor corridor leading from the entrances to the platforms as well, and copied the tagging scheme of the underground concourses of Atlantic Avenue–Barclays Center station that I had worked on previously. One issue—they had mapped only one indoor area of the station, rather than the entire station outline. A discussion ensued on how best to tag these underground spaces. What are they, exactly? Are they buildings? Are they just indoor areas?

In the end, their tagging scheme didn’t last and I changed it to a simple indoor area. But they seem to have enough familiarity and information to map the rest of the station and complete an outline. I hope this encourages more mappers to map the indoors of their local subway stations—after all, New York alone has hundreds that still aren’t mapped!

-Clay

The case for highway=trunk on Texas frontage roads

Posted by clay_c on 24 September 2017 in English (English).

You can tell where someone’s from in Texas by what they call that smaller road parallel to the highway. A Dallasite may call it a service road, a San Antonian might say access road, and every other Texan will tell you it’s a frontage road, except of course Houstonians who swear by feeder. Regardless of what you call it, it’s a ubiquitous thing across the urban areas of Texas. Everyone’s driven on ‘em.

So why are they so chaotically mapped? an example of a highway in El Paso As it is right now, they’re typically mapped as highway=secondary throughout, switching to highway=primary or even highway=trunk when they’re part of a freeway exit for such a road. This happens regardless of the lack of any underlying changes to the frontage road itself. If I showed you a cropped image of a frontage road segment tagged highway=secondary and another nearby segment tagged highway=trunk, you probably wouldn’t be able to tell the difference.

This ends up looking kinda janky and ugly. But more importantly, it doesn’t do a good job of describing the roadway it’s supposed to represent. If you take out the freeway and leave just the frontage roads, it’s a wide boulevard with massive spacing in between median crossovers. That alone merits highway=trunk.

And, lo and behold: we already do that where the freeway hasn’t yet been built but its surrounding frontage roads have been. an example of a highway in Houston In good faith, I’m going to be changing most urban Texas frontage roads to highway=trunk. I hope this makes sense to people, and if you have any concerns, feel free to shoot me a message.

-Clay

Posted by clay_c on 17 April 2011 in English (English). Last updated on 24 September 2017.

Posted by clay_c on 16 April 2011 in English (English). Last updated on 24 September 2017.

Posted by clay_c on 7 April 2011 in English (English). Last updated on 24 September 2017.

Posted by clay_c on 5 April 2011 in English (English). Last updated on 24 September 2017.