OpendataCH / Transport

Swiss public transport API
http://transport.opendata.ch/
MIT License
241 stars 50 forks source link

Cancelled connections and platform changes #183

Open ShiroYacha opened 6 years ago

ShiroYacha commented 6 years ago

Hi,

This is more like a question then an issue. Is there anyway to identify cancelled connections? I have read that you are merging your info with GTFS-RT from transport.opendata.swiss, but seems they do not provide any information on service alerts...

Thanks!

helbling commented 6 years ago

We from timetable.search.ch are still developing the gtfsrt integration. This turned out to be quite complicated.

We expect it to be ready soon. Cancelled connections are supported. They even have dynamic additional trips which are often necessary when there is some replacement service.

What do you mean by service alerts?

ShiroYacha commented 6 years ago

Hi, I mean in this document https://opentransportdata.swiss/de/cookbook/gtfs-rt/ they only provide trip update but no service alert which is basically cancelled trains etc... Which gtfsrt data/api are you guys using for integration?

helbling commented 6 years ago

Yes, we are using this gtfsrt api. Cancelled trains are specified in "trip updates" as well (don't know if they have them for all the transport companies they support in gtfsrt).

We also have something similar to the service alerts which is this system: http://fahrplan.sbb.ch/bin/help.exe/en?tpl=showmap_external Look for the key disruptions in the json returned by the timetable.search.ch api. This key is only returned whenever there is some disruption at all.

ShiroYacha commented 6 years ago

Indeed there are some schedules marked as "CANCELED" in the trip_update... However, there are so few that I think it might not be exhaustive even for all the companies that supported GTFS-RT... I will take a look into http://fahrplan.sbb.ch/bin/help.exe/en?tpl=showmap_external

Thanks for the info

ShiroYacha commented 6 years ago

Hi,

I am also looking at platform changes. If I understand correctly, platform changes are not yet integrated in transport.opendata.ch? I am looking into GTFS-RT, but it seems that this is not explicitely reported either there (actually, if they list a stop_id, and there is a platform change, the data seems to be correct judging by the platform number in the id, e.g. 8502202:0:5; however, it seems that there is no trigger for this type of changes)...

How do you deal with these kinds of changes?

Thanks!

helbling commented 6 years ago

hi I have enabled track changes as experimental opt-in on the timetable.search.ch API. If you add &show_trackchanges=1 changed tracks are considered. Changed tracks are returned in the same field normal planned tracks are returned and an exclamation mark is appended.

hb9tst commented 4 years ago

Are there news about this? Two years passed but it still looks like the real time data is not available (neither on transport.search.ch nor via the opendata API). For instance, tonight the IC5 from Neuchâtel to Lausanne at 19:03 is cancelled (which appears on the SBB timetable): Cancelled train on SBB web site

But this is not visible from transport.search.ch... Same train on transport.search.ch, no trace of cancellation

schafran commented 1 year ago

Are there any news on this? timetable.search.ch seems to have the information about cancelled connections, however I see no info about cancellations on the connections api endpoint. Is there any other way I can find whether a connection is cancelled or not? Delay seems to be working fine.