Public Transport Stops Swiss Location Identification (sloid)

Swiss Location Identification (SLOID) documentation in Deutsch, Français, Italiano

Currently, most public transport stops have a uic_ref (explore it on overpass-turbo).
This reference is being retired, in favor of a new id. While the with the old uic there was only one id for all platforms (think directions for typical bus stops), with sloid there will be separate ids for each platfrom.

This matches well with OSM, as we mapped bus stops separately for each direction any way.

Example with Aarau:
Today, there is an uic_ref of 8502113 on Aarau. Sloid will be ch:1:sloid:2113. We could map this to osm tags in different ways. For example ref:sloid=ch:1:sloid:2113
Now the interesting part, platform 1 in Aarau will have ch:1:sloid:2113:1. This could for example be ref:sloid=ch:1:sloid:2113:1. Why do I propose ref:sloid tag? because there might be different refs from different countries in the end. Probably not in Aarau, but in areas close to the border, where a foreign transport company also services Swiss stops or vice versa. So a stop or platform could have multiple useful refs, from different national systems.

Why is this id useful:
Like with the uic number, the sloid will be understood by various APIs, and be referenced from open data like opentransportdata.swiss.
For example the uic is used to create a station board in this demo.

Driver behind this change in the Swiss public transport sphere is SKI with Atlas, which is a directory of all public transport stops with platforms and other relevant information. SBB is hosting and maintaining the platform, but the many public transport corporations have to maintain their data themselves.

To get more context, also see the OSM Wiki DiDok page which documents the previous import.

A new tool was developed by Guillem Massagué as Bachelor’s thesis at HESGE, comparing OSM to Atlas (see other community thread ATLAS-OSM app feedback and ideas). The idea is that this tool will be used to add sloid information to the stops. I also hope it will replace the old didok.osm.ch tool for maintenance, comparing OSM with Atlas and fixing problems.

While neighboring countries are pursuing similar approaches, Switzerland has opted for this namespace approach to meet specific local requirements.

Drawbacks of id refs in OSM: They may not be understood by some mappers. For example a common introduction of an error is copying an existing stop or platform for a new one without adapting the ref. Either not noticing the ref or not knowing what goes in there, as the number is not visible on the ground. The tool from Guillem should detect such errors and help maintaining the refs.

My personal opinion
I appreciate the initiative of SKI, it shows that the Swiss public transport sector is motivated to use and contribute to OSM. As with the uic_ref, the usefulness (of the foreign reference) outweighs the drawback.

6 Likes

Sounds good to me, so sad the uic doesn’t provide a sufficient solution and a national solution is needed….
Your drawback is already an existing problem within osm. So it shouldn’t block the introduction of sloid.

What is the/your idea with the uic_ref tag in osm, should it be removed, once the sloid is added?
So we only have to maintain one identifier.

From the Transitous point of view where we consume this kind of data I agree, both on the namespacing using ref:sloid (there’s just too many overlapping identification systems in that space) as well as maintaining this in OSM (it’s what we have to match all public transport data to eventually, for routing). It’s unfortunate that within Europe this is so fragmented by region/operator, but that’s the reality we have to deal with.

uic_ref still has value though, as the UIC station codes are still in use also for CH, e.g. in international ticket barcodes. The main problem with uic_ref is that it contains the wrong data in DE, but that’s a different issue.

1 Like

Hi! At the moment, there are some stations (example) where the SLOID is currently tagged as ref:IFOPT. According to this document, the SLOID complies with the (superseded) European IFOPT standard. So is it better to use a specialized key for the SLOID or share the IFOPT key with other countries?

1 Like

so maybe ref:IFOPT for the national standard (if it complies) of the country in which the poi is placed. And the specific key for a foreign ref eg. a station in germany receives ref:SLOID if there exists one?

1 Like

The uic will not immediately be removed. But at some point I hope we will only have sloid.

the ref:IFOPT is interesting, thank you for bringing it to attention. However I would rather go with ref:SLOID always for simplicity.

1 Like

UIC identifiers will still be useful for quite some time (e.g. operational matters, ticketing - which won’t use SLOID in the near future).

While ref:IFOPT has also been a suggestion in this paper (see page 12), IFOPT as a standard was actually discontinued 10 years ago (see “2006 - 2016: IFOPT“ on the website of the overarching standards gremium Transmodel). Personally, I find it strange that ref:IFOPT is used so widely in OSM tagging, but it probably has something to do with the fact that it would be very difficult to agree on a common international key like e.g. ref:international_pt_id (pt for public transport) which could include the SLOID as well as other nationally (or regionally) defined keys.

However, the idea of structuring the European ID is still alive. NAPCORE 2 is dealing with it (currently only the first part is published: D2.4.1_Mapping access nodes identifiers MS_final.pdf).

The naming schema of IFOPT was not adhered to by many. The SLOID in Switzerland has the role of the IFOPT identifiers, but doesn’t use the exact format. Switzerland uses the concept of “original stop id” for the generation - the “owner” of a stop has to define a globally valid id for stops under its authority. In the case of Swiss public transport, this is the Federal Office of Transport (FOT). In other countries, it may be the transport operator itself.

So, depending on what should be achieved, ref:sloid or ref:IFOPT may be better. If there’s a consensus in Europe that the master id of stops should be stored in ref:IFOPT, this would be best. In order to know what kind of id it really is, ref:sloid is better.

BTW: As opposed to BPUICs known/used to date (uic_ref), SLOIDs could also be used for other things than stops or platforms, e.g. ticket vending machines.

ref:sloid seems more appropriate to me as well. I’ve been using netex:stopplace:id:SE-SL=SE:001:stopplace:9022001005007000to tag stops in Stockholm and did look at if that would be appropriate here but it’s clearly not. Netex based tagging is also inconvinitent when the id is avaliable in multiple formats and sources.

I think it might be worth while to consider changing the tag to ref:CH/ch:sloid since it’s mostly used domestically, it should also help with tag uniqueness.

I find using uic_ref for bus stops to be a bit weird since I doubt they would be assigned by UIC. Would like to learn why this is.

this is not needed, as the “s” in sloid means “swiss” :wink:

So i think we can conclude:

  • uic_ref stays, until SLOID can be used for everything
  • SLOID ist tagged as ref:sloid
  • ref:IFOPT should not be used

So as soon as there is a internationally approved standard like IFOPT the ref:sloid can easily be migrated.

Since IFOPT standard isn’t approved and if there are no objections, I will migrate the ref:IFOPT (overpass-turbo) to ref:SLOID this weekend.

1 Like

done with Changeset: 186891556 | OpenStreetMap

1 Like

Where should ref:sloid be documented?

on each site (same as uic_ref) → (DE:)public_transport=stops|platform|stop_area
or on Switzerland:Public_Transport
or on it’s own page?

I guess public_transport=* is too prominent for a local tag

I would make a tag page. Mentioning it on Switzerland:Public_Transport is a good idea as well, though I don’t know what to make of that page, it seems to contain quite special knowledge not usually needed for every day mapping (and I would count bus stops as something which usually gets mapped)

Agree. Most modern tags use “ref” and country code prefixes. That “id” and “ref” are equivalent doesn’t matter. As there are just a few uses for now, changing it shouldn’t be much of an issue.

Hi. I know this thread is not the right place to flag this but it was the closest match.
Some -at least one- bus routes in Geneva are completely wrong. I was trying to add the line to the right stops but it’s beyond my skills, and I suspect there may be easier ways. Anyone feeling the sudden urge to fix this or what’s the right place to flag it? Thanks.

For specific errors you can create a note on the map.

If it works, you can use https://relatify.monicz.dev to fix bus routes.

1 Like

Thanks for your reply. I tried several relations ids and got this message {“detail”:“Relation must be a PTv2 bus/tram/trolleybus route”}. I don’t know what to infer. Let me know as well whether I should start a new topic or take the conversation somewhere else.

The relatify website isn’t the most stable. Either it is a issue of the route or the website itself.

I added a matcher for Swiss transit stations to the OSMDiffs conflation pipeline, using ref:sloid to resolve unclear cases. There’s a few problem cases that are probably bad tags in OSM or otherwise need manual checking by an experienced mapper. Would anyone be interested in having a look?

— Sascha