Cancelled trips
See original GitHub issueFirst of all: Thank you for your service. I’m trying to build a display which shows the next departure at my favorite S-Bahn station. Your API is a great help to realize it.
Regarding the output I have a question: How can I recognize that a trip has been canceled?
Example:
Response from http://mobile.bahn.de/: S 85 >> Berlin-Schöneweide (S) 10:08 Fahrt fällt aus, Gl. 2
Response from the API:
{'direction': 'S Schöneweide', 'station': {'products': {'suburban': True, 'regional': False, 'express': False, 'tram': False, 'bus': False, 'ferry': False, 'subway': False}, 'name': 'S+U Wittenau', 'coordinates': {'longitude': 13.335479, 'latitude': 52.596388}, 'id': '900000096101', 'type': 'station'}, 'remarks': [None, None], 'trip': 43004, 'line': {'class': 1, 'productCode': 0, 'nr': 85, 'productName': 'S-5', 'name': 'S85', 'symbol': 'S', 'product': 'suburban', 'express': False, 'metro': False, 'night': False, 'id': 's85', 'type': 'line', 'mode': 'train'}, 'ref': '1|43004|2|86|5122017', 'when': '2017-12-05T10:08:00+01:00', 'delay': None}
Thanks in advance!
Issue Analytics
- State:
- Created 6 years ago
- Comments:24 (16 by maintainers)
Top GitHub Comments
Found it! It is
dep.dCncl: true
andarr.aCncl: true
. Will expose them with the next release ofvbb-hafas
.Will look into this, thanks!