Traewelling / traewelling

Free check-in service to log your public transit journeys
https://traewelling.de
GNU Affero General Public License v3.0
233 stars 46 forks source link

Departures aren't shown #2752

Open klukas144 opened 4 months ago

klukas144 commented 4 months ago

Describe the bug

The departures from my home stop between 4:15 AM and 7:00 AM (until 9:25 on Saturdays and 9:30 on Sundays) aren't shown in Träwelling (not even if you try to do this within this time while being on the tram you want to check in). The DB Navigator is indeed showing the departures (example for Monday, 15 July). Screenshot_20240709-203757 Screenshot_20240709-203353~2

Steps to reproduce

Go to Träwelling Search for departures from Karl-Wilhelm-Platz, Karlsruhe on a random work day between 5 and 7. See "no departures found"

Browser console logs

Browser

Chrome

pascalwittler commented 4 months ago

I can confirm this behavior. The JSON API requests for the mentioned times result in empty departure data:

GET https://traewelling.de/api/v1/station/8937/departures?when=2024-07-24T04:45:00.000000Z&travelType=
Response ```json { "disclaimer": { "message": "APIv1 is not officially released for use and is also not fully documented. Use at your own risk. Data fields may change at any time without notice.", "documentation": "https:\\/\\/traewelling.de\\/api\\/documentation", "changelog": "https:\\/\\/github.com\\/Traewelling\\/traewelling\\/blob\\/develop\\/API_CHANGELOG.md" }, "data": [], "meta": { "station": { "id": 8937, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011256, "longitude": 8.422937, "ibnr": 721387, "rilIdentifier": null }, "times": { "now": "2024-07-24T04:45:00.000000Z", "prev": "2024-07-24T04:30:00.000000Z", "next": "2024-07-24T05:00:00.000000Z" } } } ```
GET https://traewelling.de/api/v1/station/8937/departures?when=2024-07-24T05:00:00.000000Z&travelType=
Response ```json { "disclaimer": { "message": "APIv1 is not officially released for use and is also not fully documented. Use at your own risk. Data fields may change at any time without notice.", "documentation": "https:\\/\\/traewelling.de\\/api\\/documentation", "changelog": "https:\\/\\/github.com\\/Traewelling\\/traewelling\\/blob\\/develop\\/API_CHANGELOG.md" }, "data": [ { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490328#TA#6#DA#240724#1S#722635#1T#646#LS#373611#LT#726#PU#80#RT#1#CA#STR#ZE#4#ZB#STR 4#PC#8#FR#722635#FT#646#TO#373611#TT#726#", "stop": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "when": "2024-07-24T07:00:00+02:00", "plannedWhen": "2024-07-24T07:00:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Oberreut Badeniaplatz, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-4", "fahrtNr": "0", "name": "STR 4", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "stop", "id": "373611", "name": "Oberreut Badeniaplatz, Karlsruhe", "location": { "type": "location", "id": "373611", "latitude": 48.982284, "longitude": 8.368283 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": true, "ferry": false, "subway": false, "tram": true, "taxi": false }, "station": { "type": "station", "id": "723877", "name": "Oberreut Badeniaplatz, Karlsruhe", "location": { "type": "location", "id": "723877", "latitude": 48.981943, "longitude": 8.368211 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": true, "ferry": false, "subway": false, "tram": true, "taxi": false } } }, "station": { "id": 8937, "ibnr": 721387, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011256, "longitude": 8.422937, "ifopt": "de:8212:401" } }, { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490327#TA#8#DA#240724#1S#722277#1T#657#LS#363306#LT#745#PU#80#RT#1#CA#STR#ZE#3#ZB#STR 3#PC#8#FR#722277#FT#657#TO#363306#TT#745#", "stop": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "when": "2024-07-24T07:03:00+02:00", "plannedWhen": "2024-07-24T07:03:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Daxlanden Waidweg, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-3", "fahrtNr": "0", "name": "STR 3", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "stop", "id": "363306", "name": "Daxlanden Waidweg, Karlsruhe", "location": { "type": "location", "id": "363306", "latitude": 49.004317, "longitude": 8.322366 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": true, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": true }, "station": { "type": "station", "id": "720577", "name": "Daxlanden Waidweg, Karlsruhe", "location": { "type": "location", "id": "720577", "latitude": 49.004362, "longitude": 8.322321 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": true, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": true } } }, "station": { "id": 8937, "ibnr": 721387, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011256, "longitude": 8.422937, "ifopt": "de:8212:401" } }, { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490623#TA#3#DA#240724#1S#363306#1T#625#LS#722277#LT#710#PU#80#RT#1#CA#STR#ZE#3#ZB#STR 3#PC#8#FR#363306#FT#625#TO#722277#TT#710#", "stop": { "type": "stop", "id": "370401", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "370401", "latitude": 49.011373, "longitude": 8.423432 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false }, "station": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } } }, "when": "2024-07-24T07:04:00+02:00", "plannedWhen": "2024-07-24T07:04:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Rintheim, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-3", "fahrtNr": "0", "name": "STR 3", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "stop", "id": "722277", "name": "Rintheim, Karlsruhe", "location": { "type": "location", "id": "722277", "latitude": 49.016281, "longitude": 8.443721 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": true, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "station": { "id": 8958, "ibnr": 370401, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011373, "longitude": 8.423432, "ifopt": "de:8212:401" } }, { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490422#TA#2#DA#240724#1S#373611#1T#642#LS#722635#LT#722#PU#80#RT#1#CA#STR#ZE#4#ZB#STR 4#PC#8#FR#373611#FT#642#TO#722635#TT#722#", "stop": { "type": "stop", "id": "370401", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "370401", "latitude": 49.011373, "longitude": 8.423432 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false }, "station": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } } }, "when": "2024-07-24T07:07:00+02:00", "plannedWhen": "2024-07-24T07:07:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Waldstadt Europ\\u00e4ische Schule, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-4", "fahrtNr": "0", "name": "STR 4", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "station", "id": "722635", "name": "Waldstadt Europ\\u00e4ische Schule, Karlsruhe", "location": { "type": "location", "id": "722635", "latitude": 49.044804, "longitude": 8.446768 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": true, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "station": { "id": 8958, "ibnr": 370401, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011373, "longitude": 8.423432, "ifopt": "de:8212:401" } }, { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490328#TA#7#DA#240724#1S#722635#1T#656#LS#373611#LT#736#PU#80#RT#1#CA#STR#ZE#4#ZB#STR 4#PC#8#FR#722635#FT#656#TO#373611#TT#736#", "stop": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "when": "2024-07-24T07:10:00+02:00", "plannedWhen": "2024-07-24T07:10:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Oberreut Badeniaplatz, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-4", "fahrtNr": "0", "name": "STR 4", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "stop", "id": "373611", "name": "Oberreut Badeniaplatz, Karlsruhe", "location": { "type": "location", "id": "373611", "latitude": 48.982284, "longitude": 8.368283 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": true, "ferry": false, "subway": false, "tram": true, "taxi": false }, "station": { "type": "station", "id": "723877", "name": "Oberreut Badeniaplatz, Karlsruhe", "location": { "type": "location", "id": "723877", "latitude": 48.981943, "longitude": 8.368211 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": true, "ferry": false, "subway": false, "tram": true, "taxi": false } } }, "station": { "id": 8937, "ibnr": 721387, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011256, "longitude": 8.422937, "ifopt": "de:8212:401" } }, { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490333#TA#0#DA#240724#1S#362391#1T#651#LS#722635#LT#727#PU#80#RT#1#CA#STR#ZE#4#ZB#STR 4#PC#8#FR#362391#FT#651#TO#722635#TT#727#", "stop": { "type": "stop", "id": "370401", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "370401", "latitude": 49.011373, "longitude": 8.423432 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false }, "station": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } } }, "when": "2024-07-24T07:12:00+02:00", "plannedWhen": "2024-07-24T07:12:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Waldstadt Europ\\u00e4ische Schule, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-4", "fahrtNr": "0", "name": "STR 4", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "station", "id": "722635", "name": "Waldstadt Europ\\u00e4ische Schule, Karlsruhe", "location": { "type": "location", "id": "722635", "latitude": 49.044804, "longitude": 8.446768 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": true, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "station": { "id": 8958, "ibnr": 370401, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011373, "longitude": 8.423432, "ifopt": "de:8212:401" } }, { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490327#TA#9#DA#240724#1S#722277#1T#707#LS#363306#LT#755#PU#80#RT#1#CA#STR#ZE#3#ZB#STR 3#PC#8#FR#722277#FT#707#TO#363306#TT#755#", "stop": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "when": "2024-07-24T07:13:00+02:00", "plannedWhen": "2024-07-24T07:13:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Daxlanden Waidweg, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-3", "fahrtNr": "0", "name": "STR 3", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "stop", "id": "363306", "name": "Daxlanden Waidweg, Karlsruhe", "location": { "type": "location", "id": "363306", "latitude": 49.004317, "longitude": 8.322366 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": true, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": true }, "station": { "type": "station", "id": "720577", "name": "Daxlanden Waidweg, Karlsruhe", "location": { "type": "location", "id": "720577", "latitude": 49.004362, "longitude": 8.322321 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": true, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": true } } }, "station": { "id": 8937, "ibnr": 721387, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011256, "longitude": 8.422937, "ifopt": "de:8212:401" } }, { "tripId": "2|#VN#1#ST#1720464615#PI#0#ZI#490623#TA#4#DA#240724#1S#363306#1T#635#LS#722277#LT#720#PU#80#RT#1#CA#STR#ZE#3#ZB#STR 3#PC#8#FR#363306#FT#635#TO#722277#TT#720#", "stop": { "type": "stop", "id": "370401", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "370401", "latitude": 49.011373, "longitude": 8.423432 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false }, "station": { "type": "station", "id": "721387", "name": "Karl-Wilhelm-Platz, Karlsruhe", "location": { "type": "location", "id": "721387", "latitude": 49.011256, "longitude": 8.422937 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": false, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } } }, "when": "2024-07-24T07:14:00+02:00", "plannedWhen": "2024-07-24T07:14:00+02:00", "delay": null, "platform": null, "plannedPlatform": null, "prognosisType": null, "direction": "Rintheim, Karlsruhe", "provenance": null, "line": { "type": "line", "id": "8-kvv021-3", "fahrtNr": "0", "name": "STR 3", "public": true, "adminCode": "kvv021", "productName": "STR", "mode": "train", "product": "tram", "operator": { "type": "operator", "id": "nahreisezug", "name": "Nahreisezug" } }, "remarks": [], "origin": null, "destination": { "type": "stop", "id": "722277", "name": "Rintheim, Karlsruhe", "location": { "type": "location", "id": "722277", "latitude": 49.016281, "longitude": 8.443721 }, "products": { "nationalExpress": false, "national": false, "regionalExp": false, "regional": false, "suburban": true, "bus": false, "ferry": false, "subway": false, "tram": true, "taxi": false } }, "station": { "id": 8958, "ibnr": 370401, "wikidata_id": null, "ifopt_a": "de", "ifopt_b": 8212, "ifopt_c": 401, "ifopt_d": null, "ifopt_e": null, "rilIdentifier": null, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011373, "longitude": 8.423432, "ifopt": "de:8212:401" } } ], "meta": { "station": { "id": 8937, "name": "Karl-Wilhelm-Platz, Karlsruhe", "latitude": 49.011256, "longitude": 8.422937, "ibnr": 721387, "rilIdentifier": null }, "times": { "now": "2024-07-24T05:00:00.000000Z", "prev": "2024-07-24T04:45:00.000000Z", "next": "2024-07-24T05:15:00.000000Z" } } } ```
MrKrisKrisu commented 4 months ago

There was a time offset for this station. @HerrLevin do you have more information how this happen? You've programmed the timezone things. :D

I've removed the offset, now the departures are loading again.

image

HerrLevin commented 4 months ago

You've programmed the timezone things. :D

I... uhm... apparently I didn't do a great job 😂

I really don't know how THAT happened

ChillLP commented 3 months ago

Screenshot_20240729_143546_Trwelldroid.jpg

Screenshot_20240729_143726_Trwelldroid.jpg

I think there are a few Stations with a similar Problem...

fzakfeld commented 3 months ago

Some details:

e.g. 14:52 (GMT+1) service from Aberdeen (saved as GMT+2 in HAFAS)

HAFAS knows this journey: https://v6.db.transport.rest/stops/7000011/departures?when=2024-07-29T12%3A50%3A00%2B00%3A00&duration=5

But it doesn't work in Traewelling: https://traewelling.de/stationboard?stationId=5599&stationName=Aberdeen&when=2024-07-29T12%3A50%3A00.000Z&travelType=

marhei commented 2 months ago

The same goes for Košice, which has an -8 hours time zone offset, even though it's in the same as Germany.

Capture d’écran 2024-08-31 à 19 56 38
girlpunk commented 2 months ago

I believe a similar thing is happening with London St Pancras. Searching for trains departing at 11:00 shows results for around 21:00