db-vendo-client/test/fixtures/dbregioguide-departures.json
dabund24 c671e995cb
bahn.de boards (#12)
* parse bahn.de boards

* add optional chaining in line.js

* unit tests for bahn.de boards

* fix product check in line.js for bahn.de boards

* add integration tests for bahn.de boards

* allow letting hafas decide the amount of vias

* split dbweb and dbregioguide profiles; add db profile

* commit location-filter.js (forgot that in the last commit)

* simplify how db profile works

* remove `ezGleis` from coalesce for scheduled platform

* un-break parsing of remarks

* determine fahrtNr by removing all non-digits

* employ enrichStations for board stop property

* prevent timeouts in dbweb e2e test from calling `end()` twice

* use promises in dbweb e2e tests when waiting for enrichStations to work

* replace vias option with stopovers option for dbweb profile; enrich stations when only name is known

* change dbweb-departures test covering enrichStation feature for stop and stopovers

* remove check for not existing option

* move verkehrsmittel.name in front of verkehrsmittel.langText when parsing name in line.js
2025-02-09 00:46:21 +01:00

118 lines
No EOL
3.6 KiB
JSON

{
"isArrival": false,
"evaNo": "8000365",
"stationName": "Dombühl",
"items": [
{
"station": {
"evaNo": "8000365",
"name": "Dombühl",
"canceled": false
},
"train": {
"journeyId": "20241212-d1494ce6-1a01-38de-bf84-c0bceb12f503",
"category": "RE",
"type": "REGIONAL_TRAIN",
"no": 88617,
"lineName": "90"
},
"category": "REGIONAL",
"time": "2024-12-12T11:34:00.000Z",
"timePredicted": "2024-12-12T11:34:00.000Z",
"diff": 0,
"timeType": "PREVIEW",
"platform": "3",
"platformPredicted": "3",
"administration": {
"id": "GARE",
"operatorCode": "RE",
"operatorName": "Arverio Baden-Württemberg (RE)"
},
"canceled": false,
"departureId": "8000365_D_1",
"destination": {
"evaNo": "8000284",
"name": "Nürnberg Hbf",
"canceled": false
}
},
{
"station": {
"evaNo": "682943",
"name": "Bahnhof, Dombühl",
"canceled": false
},
"train": {
"journeyId": "20241212-abd01ce0-cca3-3759-aa4b-410ea4d0a720",
"category": "Bus",
"type": "BUS",
"no": 2221,
"lineName": "813"
},
"category": "BUS",
"time": "2024-12-12T11:50:00.000Z",
"timePredicted": "2024-12-12T11:50:00.000Z",
"diff": 0,
"timeType": "SCHEDULE",
"platform": "",
"platformPredicted": "",
"administration": {
"id": "vgn063",
"operatorCode": "DPN",
"operatorName": "Nahreisezug"
},
"canceled": false,
"departureId": "682943_D_1",
"destination": {
"evaNo": "676542",
"name": "Gymnasium, Dinkelsbühl",
"canceled": false
}
},
{
"station": {
"evaNo": "682943",
"name": "Bahnhof, Dombühl",
"canceled": false
},
"train": {
"journeyId": "20241212-ab6272a5-4bf6-32c1-9344-b47e1fc49eeb",
"category": "Bus",
"type": "BUS",
"no": 2177,
"lineName": "807"
},
"category": "BUS",
"time": "2024-12-12T11:50:00.000Z",
"timePredicted": "2024-12-12T11:50:00.000Z",
"diff": 0,
"timeType": "SCHEDULE",
"platform": "",
"platformPredicted": "",
"administration": {
"id": "vgn063",
"operatorCode": "DPN",
"operatorName": "Nahreisezug"
},
"canceled": false,
"departureId": "682943_D_1",
"destination": {
"evaNo": "683407",
"name": "Bahnhof, Rothenburg ob der Tauber",
"canceled": false
}
}
],
"availableTransports": [
{
"id": "REGIONAL",
"text": "Regional"
},
{
"id": "BUS",
"text": "Bus"
}
],
"timeStart": "2024-12-12T11:33:30.000Z",
"timeEnd": "2024-12-12T12:03:30.000Z"
}