diff --git a/test/db-journey-overnight.js b/test/db-journey-overnight.js index 3e233078f..14e52c45f 100644 --- a/test/db-journey-overnight.js +++ b/test/db-journey-overnight.js @@ -9,6 +9,8 @@ import {createClient} from '../index.js' import {profile as rawProfile} from '../p/db/index.js' const res0 = require('./fixtures/db-journey-overnight-0.json') const expected0 = require('./fixtures/db-journey-overnight-0.expected.json') +const res1 = require('./fixtures/db-journey-overnight-1.json') +import {overnightJourney as expected1} from './fixtures/db-journey-overnight-1.expected.js' const client = createClient(rawProfile, 'public-transport/hafas-client:test') const {profile} = client @@ -45,3 +47,19 @@ tap.test('parses a journey across day with correct timestamps', (t) => { t.same(journey, expected0) t.end() }) + +tap.test('parses a journey across dates with correct timestamps', (t) => { + const opt = { + ...baseOpt, + results: 1, + stopovers: true, + departure: '2023-11-24T22:00+01:00', + } + + const common = profile.parseCommon({profile, opt, res: res1}) + const ctx = {profile, opt, common, res: res1} + const journey = profile.parseJourney(ctx, res1.outConL[0]) + + t.same(journey, expected1) + t.end() +}) diff --git a/test/fixtures/db-journey-overnight-1.expected.js b/test/fixtures/db-journey-overnight-1.expected.js new file mode 100644 index 000000000..42a026b5a --- /dev/null +++ b/test/fixtures/db-journey-overnight-1.expected.js @@ -0,0 +1,313 @@ +const büchen = { + type: 'stop', + id: '8000058', + name: 'Büchen', + location: { + type: 'location', + id: '8000058', + latitude: 53.475291, + longitude: 10.622939 + }, + products: { + nationalExpress: true, + national: true, + regionalExpress: false, + regional: true, + suburban: false, + bus: true, + ferry: false, + subway: false, + tram: false, + taxi: true, + }, +} + +const berlinHbfTief = { + type: 'stop', + id: '8098160', + name: 'Berlin Hbf (tief)', + location: { + type: 'location', + id: '8098160', + latitude: 52.52585, + longitude: 13.368892 + }, + products: { + nationalExpress: true, + national: true, + regionalExpress: true, + regional: true, + suburban: true, + bus: true, + ferry: false, + subway: true, + tram: true, + taxi: false, + }, + station: { + type: 'station', + id: '8011160', + name: 'Berlin Hbf', + location: { + type: 'location', + id: '8011160', + latitude: 52.524924, + longitude: 13.369629 + }, + products: { + nationalExpress: true, + national: true, + regionalExpress: true, + regional: true, + suburban: true, + bus: true, + ferry: false, + subway: true, + tram: true, + taxi: false, + }, + }, +} + +const overnightJourney = { + type: 'journey', + refreshToken: 'T$A=1@O=Lübeck Hbf@L=8000237@a=128@$A=1@O=Büchen@L=8000058@a=128@$202311242210$202311242249$erx21137$$1$$$$$$§T$A=1@O=Büchen@L=8000058@a=128@$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$202311242315$202311250054$ICE 907$$1$$$$$$§T$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$A=1@O=München Hbf@L=8000261@a=128@$202311250430$202311250917$ICE 501$$1$$$$$$', + + legs: [ + { + origin: { + type: 'stop', + id: '8000237', + name: 'Lübeck Hbf', + location: { + type: 'location', + id: '8000237', + latitude: 53.86767, + longitude: 10.669737 + }, + products: { + nationalExpress: true, + national: true, + regionalExpress: true, + regional: true, + suburban: false, + bus: true, + ferry: false, + subway: false, + tram: false, + taxi: true, + }, + }, + destination: büchen, + departure: '2023-11-24T22:10:00+01:00', + plannedDeparture: '2023-11-24T22:10:00+01:00', + departureDelay: null, + arrival: '2023-11-24T22:49:00+01:00', + plannedArrival: '2023-11-24T22:49:00+01:00', + arrivalDelay: null, + reachable: true, + tripId: '1|466091|0|80|24112023', + line: { + type: 'line', + id: 'erx-re83', + fahrtNr: '21137', + name: 'erx RE83', + public: true, + adminCode: 'X1____', + productName: 'erx', + mode: 'train', + product: 'regional', + operator: { + type: 'operator', + id: 'erixx', + name: 'erixx', + }, + additionalName: 'erx RE83', + }, + direction: 'Lüneburg', + arrivalPlatform: '140', + plannedArrivalPlatform: '140', + arrivalPrognosisType: null, + departurePlatform: '6', + plannedDeparturePlatform: '6', + departurePrognosisType: 'prognosed', + remarks: [ + { + text: 'Number of bicycles conveyed limited', + type: 'hint', + code: 'bicycle-conveyance', + summary: 'bicycles conveyed', + }, + { + text: 'space for wheelchairs', + type: 'hint', + code: 'wheelchairs-space', + summary: 'space for wheelchairs', + }, + { + text: 'vehicle-mounted access aid', + type: 'hint', + code: 'boarding-ramp', + summary: 'vehicle-mounted boarding ramp available', + }, + { + type: 'hint', + code: 'SI', + text: 'Barrierefreier Zustieg an geeigneten Stationen möglich', + }, + { + type: 'hint', + code: 'SM', + text: 'Info www.bahn.de/sh-barrierefrei', + }, + ] + }, + { + origin: büchen, + destination: berlinHbfTief, + departure: '2023-11-24T23:15:00+01:00', + plannedDeparture: '2023-11-24T23:15:00+01:00', + departureDelay: null, + arrival: '2023-11-25T00:54:00+01:00', + plannedArrival: '2023-11-25T00:54:00+01:00', + arrivalDelay: null, + reachable: true, + tripId: '1|206310|0|80|24112023', + line: { + type: 'line', + id: 'ice-907', + fahrtNr: '907', + name: 'ICE 907', + public: true, + adminCode: '80____', + productName: 'ICE', + mode: 'train', + product: 'nationalExpress', + operator: { + type: 'operator', + id: 'db-fernverkehr-ag', + name: 'DB Fernverkehr AG', + }, + }, + direction: 'Berlin Südkreuz', + arrivalPlatform: '1', + plannedArrivalPlatform: '1', + arrivalPrognosisType: null, + departurePlatform: '1', + plannedDeparturePlatform: '1', + departurePrognosisType: null, + remarks: [ + { + text: 'Komfort Check-in possible (visit bahn.de/kci for more information)', + type: 'hint', + code: 'komfort-checkin', + summary: 'Komfort-Checkin available', + }, + { + text: 'Bordrestaurant', + type: 'hint', + code: 'on-board-restaurant', + summary: 'Bordrestaurant available', + }, + ], + loadFactor: 'low-to-medium', + }, + { + origin: berlinHbfTief, + destination: { + type: 'stop', + id: '8000261', + name: 'München Hbf', + location: { + type: 'location', + id: '8000261', + latitude: 48.140364, + longitude: 11.558744 + }, + products: { + nationalExpress: true, + national: true, + regionalExpress: true, + regional: true, + suburban: true, + bus: true, + ferry: false, + subway: true, + tram: true, + taxi: false, + }, + }, + departure: '2023-11-25T04:30:00+01:00', + plannedDeparture: '2023-11-25T04:30:00+01:00', + departureDelay: null, + arrival: '2023-11-25T09:17:00+01:00', + plannedArrival: '2023-11-25T09:17:00+01:00', + arrivalDelay: null, + reachable: true, + tripId: '1|198958|0|80|25112023', + line: { + type: 'line', + id: 'ice-501', + fahrtNr: '501', + name: 'ICE 501', + public: true, + adminCode: '80____', + productName: 'ICE', + mode: 'train', + product: 'nationalExpress', + operator: { + type: 'operator', + id: 'db-fernverkehr-ag', + name: 'DB Fernverkehr AG', + }, + }, + direction: 'München Hbf', + arrivalPlatform: '19', + plannedArrivalPlatform: '19', + arrivalPrognosisType: 'prognosed', + departurePlatform: '1', + plannedDeparturePlatform: '1', + departurePrognosisType: null, + remarks: [ + { + text: 'Komfort Check-in possible (visit bahn.de/kci for more information)', + type: 'hint', + code: 'komfort-checkin', + summary: 'Komfort-Checkin available', + }, + { + text: 'Bicycles conveyed - subject to reservation', + type: 'hint', + code: 'bicycle-conveyance-reservation', + summary: 'bicycles conveyed, subject to reservation', + }, + { + text: 'Number of bicycles conveyed limited', + type: 'hint', + code: 'bicycle-conveyance', + summary: 'bicycles conveyed', + }, + { + text: 'Bordrestaurant', + type: 'hint', + code: 'on-board-restaurant', + summary: 'Bordrestaurant available', + }, + { + text: 'vehicle-mounted access aid', + type: 'hint', + code: 'boarding-ramp', + summary: 'vehicle-mounted boarding ramp available', + }, + ], + loadFactor: 'low-to-medium', + }, + ], + + remarks: [], + price: {amount: 108.9, currency: 'EUR', hint: null}, +} + +export { + overnightJourney, +} diff --git a/test/fixtures/db-journey-overnight-1.json b/test/fixtures/db-journey-overnight-1.json new file mode 100644 index 000000000..f0c56f3a1 --- /dev/null +++ b/test/fixtures/db-journey-overnight-1.json @@ -0,0 +1,865 @@ +{ + "common": { + "locL": [ + { + "lid": "A=1@O=Lübeck Hbf@X=10669818@Y=53867544@U=80@L=8000237@", + "type": "S", + "name": "Lübeck Hbf", + "icoX": 0, + "extId": "8000237", + "state": "F", + "crd": { + "x": 10669737, + "y": 53867670, + "z": 0, + "floor": 0 + }, + "pCls": 559 + }, + { + "lid": "A=1@O=Büchen@X=10623299@Y=53474976@U=80@L=8000058@", + "type": "S", + "name": "Büchen", + "icoX": 0, + "extId": "8000058", + "state": "F", + "crd": { + "x": 10622939, + "y": 53475291, + "z": 0, + "floor": 0 + }, + "pCls": 555 + }, + { + "lid": "A=1@O=Berlin Hbf (tief)@X=13369549@Y=52525589@U=80@L=8098160@", + "type": "S", + "name": "Berlin Hbf (tief)", + "icoX": 0, + "extId": "8098160", + "state": "F", + "crd": { + "x": 13368892, + "y": 52525850, + "z": 0, + "floor": 0 + }, + "pCls": 447, + "entry": true, + "mMastLocX": 3 + }, + { + "lid": "A=1@O=Berlin Hbf@X=13369549@Y=52525589@U=80@L=8011160@", + "type": "S", + "name": "Berlin Hbf", + "icoX": 0, + "extId": "8011160", + "state": "F", + "crd": { + "x": 13369629, + "y": 52524924, + "z": 0, + "floor": 0 + }, + "pCls": 447 + }, + { + "lid": "A=1@O=München Hbf@X=11558339@Y=48140229@U=80@L=8000261@", + "type": "S", + "name": "München Hbf", + "icoX": 9, + "extId": "8000261", + "state": "F", + "crd": { + "x": 11558744, + "y": 48140364, + "z": 0, + "floor": 0 + }, + "pCls": 447 + } + ], + "prodL": [ + { + "name": "erx21137", + "nameS": "DPN", + "number": "21137", + "icoX": 1, + "cls": 8, + "oprX": 0, + "prodCtx": { + "name": "erx21137", + "num": "21137", + "matchId": "RE83", + "catOut": "erx", + "catOutS": "DPN", + "catOutL": "erixx", + "catIn": "DPN", + "catCode": "3", + "admin": "X1____", + "addName": "erx RE83" + }, + "addName": "erx RE83" + }, + { + "name": "ICE 907", + "number": "907", + "icoX": 0, + "cls": 1, + "oprX": 1, + "prodCtx": { + "name": "ICE 907", + "num": "907", + "matchId": "28", + "catOut": "ICE", + "catOutS": "ICE", + "catOutL": "Intercity-Express", + "catIn": "ICE", + "catCode": "0", + "admin": "80____" + } + }, + { + "name": "ICE 501", + "number": "501", + "icoX": 0, + "cls": 1, + "oprX": 1, + "prodCtx": { + "name": "ICE 501", + "num": "501", + "matchId": "28", + "catOut": "ICE", + "catOutS": "ICE", + "catOutL": "Intercity-Express", + "catIn": "ICE", + "catCode": "0", + "admin": "80____" + } + } + ], + "opL": [ + { + "name": "erixx", + "icoX": 2 + }, + { + "name": "DB Fernverkehr AG", + "icoX": 6 + } + ], + "remL": [ + { + "type": "A", + "code": "FB", + "prio": 260, + "icoX": 3, + "txtN": "Number of bicycles conveyed limited" + }, + { + "type": "A", + "code": "RO", + "prio": 560, + "icoX": 4, + "txtN": "space for wheelchairs" + }, + { + "type": "A", + "code": "EH", + "prio": 560, + "icoX": 5, + "txtN": "vehicle-mounted access aid" + }, + { + "type": "A", + "code": "SI", + "prio": 561, + "icoX": 5, + "txtN": "Barrierefreier Zustieg an geeigneten Stationen möglich" + }, + { + "type": "A", + "code": "SM", + "prio": 561, + "icoX": 5, + "txtN": "Info www.bahn.de/sh-barrierefrei" + }, + { + "type": "A", + "code": "CK", + "prio": 200, + "icoX": 5, + "txtN": "Komfort Check-in possible (visit bahn.de/kci for more information)" + }, + { + "type": "A", + "code": "BR", + "prio": 450, + "icoX": 7, + "txtN": "Bordrestaurant" + }, + { + "type": "H", + "code": "text.connection.section.arrival.date.deviation", + "icoX": 8, + "txtN": "Arrival Saturday, 2023-11-25" + }, + { + "type": "A", + "code": "FR", + "prio": 260, + "icoX": 10, + "txtN": "Bicycles conveyed - subject to reservation" + }, + { + "type": "H", + "code": "text.connection.section.departure.date.deviation", + "icoX": 8, + "txtN": "Departure Saturday, 2023-11-25" + }, + { + "type": "H", + "code": "455", + "icoX": 5, + "txtN": "Longer stay at a station" + } + ], + "icoL": [ + { + "res": "ICE" + }, + { + "res": "erx" + }, + { + "res": "DPN", + "txt": "erixx" + }, + { + "res": "attr_bike" + }, + { + "res": "attr_wchair" + }, + { + "res": "attr_info" + }, + { + "res": "D", + "txt": "DB Fernverkehr AG" + }, + { + "res": "attr_resto" + }, + { + "res": "attr_day_change" + }, + { + "res": "ECE" + }, + { + "res": "attr_bike_r" + }, + { + "res": "cl_all" + } + ], + "tcocL": [ + { + "c": "FIRST", + "r": 1 + }, + { + "c": "SECOND", + "r": 1 + } + ], + "lDrawStyleL": [ + { + "sIcoX": 1, + "type": "SOLID" + }, + { + "type": "SOLID" + }, + { + "sIcoX": 0, + "type": "SOLID" + } + ] + }, + "outConL": [ + { + "cid": "C-0", + "date": "20231124", + "dur": "110700", + "durS": "110700", + "durR": "110700", + "chg": 2, + "sDays": { + "sDaysR": "runs 24. Nov until 8. Dec 2023 Fr, Su; not 1. Dec 2023 ", + "sDaysB": "0000000000000000000000000002888A14245001424402042850A142850A142850A142850A142850A040000A042000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + }, + "dep": { + "locX": 0, + "idx": 0, + "dProdX": 0, + "dPltfS": { + "type": "PL", + "txt": "6" + }, + "dTimeS": "221000", + "dProgType": "PROGNOSED", + "dTZOffset": 60, + "type": "N" + }, + "arr": { + "locX": 4, + "idx": 9, + "aProdX": 2, + "aPltfS": { + "type": "PL", + "txt": "19" + }, + "aTimeS": "01091700", + "aProgType": "PROGNOSED", + "aTZOffset": 60, + "msgL": [ + { + "type": "REM", + "remX": 7, + "sty": "I", + "tagL": [ + "RES_LOC_H3" + ], + "sort": 147324928 + } + ], + "type": "N" + }, + "secL": [ + { + "type": "JNY", + "dep": { + "locX": 0, + "idx": 0, + "dProdX": 0, + "dPltfS": { + "type": "PL", + "txt": "6" + }, + "dTimeS": "221000", + "dProgType": "PROGNOSED", + "dTZOffset": 60, + "type": "N" + }, + "arr": { + "locX": 1, + "idx": 5, + "aProdX": 0, + "aPltfS": { + "type": "PL", + "txt": "140" + }, + "aTimeS": "224900", + "aTZOffset": 60, + "type": "N" + }, + "jny": { + "jid": "1|466091|0|80|24112023", + "prodX": 0, + "dirTxt": "Lüneburg", + "status": "P", + "isRchbl": true, + "ctxRecon": "T$A=1@O=Lübeck Hbf@L=8000237@a=128@$A=1@O=Büchen@L=8000058@a=128@$202311242210$202311242249$erx21137$$1$$$$$$", + "msgL": [ + { + "type": "REM", + "remX": 0, + "sty": "I", + "fLocX": 0, + "tLocX": 1, + "fIdx": 0, + "tIdx": 5, + "tagL": [ + "RES_JNY_DTL_L" + ], + "sort": 839385088 + }, + { + "type": "REM", + "remX": 1, + "sty": "I", + "fLocX": 0, + "tLocX": 1, + "fIdx": 0, + "tIdx": 5, + "tagL": [ + "RES_JNY_DTL_L" + ], + "sort": 878706688 + }, + { + "type": "REM", + "remX": 2, + "sty": "I", + "fLocX": 0, + "tLocX": 1, + "fIdx": 0, + "tIdx": 5, + "tagL": [ + "RES_JNY_DTL" + ], + "sort": 878706688 + }, + { + "type": "REM", + "remX": 3, + "sty": "I", + "fLocX": 0, + "tLocX": 1, + "fIdx": 0, + "tIdx": 5, + "tagL": [ + "RES_JNY_DTL" + ], + "sort": 878837760 + }, + { + "type": "REM", + "remX": 4, + "sty": "I", + "fLocX": 0, + "tLocX": 1, + "fIdx": 0, + "tIdx": 5, + "tagL": [ + "RES_JNY_DTL" + ], + "sort": 878837760 + } + ], + "subscr": "F", + "chgDurR": 26, + "prodL": [ + { + "prodX": 0, + "fLocX": 0, + "tLocX": 1, + "fIdx": 0, + "tIdx": 5 + } + ], + "sumLDrawStyleX": 0, + "resLDrawStyleX": 1, + "trainStartDate": "20231124", + "durS": "003900" + }, + "minChg": "000500", + "resState": "N", + "resRecommendation": "N" + }, + { + "type": "JNY", + "dep": { + "locX": 1, + "idx": 3, + "dProdX": 1, + "dPltfS": { + "type": "PL", + "txt": "1" + }, + "dTimeS": "231500", + "dTrnCmpSX": { + "tcocX": [ + 0, + 1 + ], + "tcM": 1 + }, + "dTZOffset": 60, + "type": "N" + }, + "arr": { + "locX": 2, + "idx": 7, + "aProdX": 1, + "aPltfS": { + "type": "PL", + "txt": "1" + }, + "aTimeS": "01005400", + "aTrnCmpSX": { + "tcM": 1 + }, + "aTZOffset": 60, + "msgL": [ + { + "type": "REM", + "remX": 7, + "sty": "I", + "tagL": [ + "RES_LOC_H3" + ], + "sort": 147324928 + } + ], + "type": "N" + }, + "jny": { + "jid": "1|206310|0|80|24112023", + "prodX": 1, + "dirTxt": "Berlin Südkreuz", + "dirFlg": "1", + "status": "P", + "isRchbl": true, + "ctxRecon": "T$A=1@O=Büchen@L=8000058@a=128@$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$202311242315$202311250054$ICE 907$$1$$$$$$", + "msgL": [ + { + "type": "REM", + "remX": 5, + "sty": "I", + "fLocX": 1, + "tLocX": 2, + "fIdx": 3, + "tIdx": 7, + "tagL": [ + "RES_JNY_DTL" + ], + "sort": 831520768 + }, + { + "type": "REM", + "remX": 6, + "sty": "I", + "fLocX": 1, + "tLocX": 2, + "fIdx": 3, + "tIdx": 7, + "tagL": [ + "RES_JNY_DTL_L" + ], + "sort": 864288768 + } + ], + "subscr": "F", + "chgDurR": 216, + "prodL": [ + { + "prodX": 1, + "fLocX": 1, + "tLocX": 2, + "fIdx": 3, + "tIdx": 7 + } + ], + "dTrnCmpSX": { + "tcocX": [ + 0, + 1 + ] + }, + "sumLDrawStyleX": 2, + "resLDrawStyleX": 1, + "trainStartDate": "20231124", + "durS": "013900", + "tcocXL": [ + 0, + 1 + ] + }, + "minChg": "000800", + "resState": "N", + "resRecommendation": "N" + }, + { + "type": "JNY", + "dep": { + "locX": 2, + "idx": 1, + "dProdX": 2, + "dPltfS": { + "type": "PL", + "txt": "1" + }, + "dTimeS": "01043000", + "dTZOffset": 60, + "msgL": [ + { + "type": "REM", + "remX": 9, + "sty": "I", + "tagL": [ + "RES_LOC_H3" + ], + "sort": 147324928 + } + ], + "type": "N" + }, + "arr": { + "locX": 4, + "idx": 9, + "aProdX": 2, + "aPltfS": { + "type": "PL", + "txt": "19" + }, + "aTimeS": "01091700", + "aProgType": "PROGNOSED", + "aTZOffset": 60, + "msgL": [ + { + "type": "REM", + "remX": 7, + "sty": "I", + "tagL": [ + "RES_LOC_H3" + ], + "sort": 147324928 + } + ], + "type": "N" + }, + "jny": { + "jid": "1|198958|0|80|25112023", + "prodX": 2, + "dirTxt": "München Hbf", + "dirFlg": "1", + "status": "P", + "isRchbl": true, + "ctxRecon": "T$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$A=1@O=München Hbf@L=8000261@a=128@$202311250430$202311250917$ICE 501$$1$$$$$$", + "msgL": [ + { + "type": "REM", + "remX": 5, + "sty": "I", + "fLocX": 2, + "tLocX": 4, + "fIdx": 1, + "tIdx": 9, + "tagL": [ + "RES_JNY_DTL" + ], + "sort": 831520768 + }, + { + "type": "REM", + "remX": 8, + "sty": "I", + "fLocX": 2, + "tLocX": 4, + "fIdx": 1, + "tIdx": 9, + "tagL": [ + "RES_JNY_DTL_L" + ], + "sort": 839385088 + }, + { + "type": "REM", + "remX": 0, + "sty": "I", + "fLocX": 2, + "tLocX": 4, + "fIdx": 1, + "tIdx": 9, + "tagL": [ + "RES_JNY_DTL_L" + ], + "sort": 839385088 + }, + { + "type": "REM", + "remX": 6, + "sty": "I", + "fLocX": 2, + "tLocX": 4, + "fIdx": 1, + "tIdx": 9, + "tagL": [ + "RES_JNY_DTL_L" + ], + "sort": 864288768 + }, + { + "type": "REM", + "remX": 2, + "sty": "I", + "fLocX": 2, + "tLocX": 4, + "fIdx": 1, + "tIdx": 9, + "tagL": [ + "RES_JNY_DTL" + ], + "sort": 878706688 + } + ], + "subscr": "F", + "prodL": [ + { + "prodX": 2, + "fLocX": 2, + "tLocX": 4, + "fIdx": 1, + "tIdx": 9 + } + ], + "dTrnCmpSX": { + "tcocX": [ + 0, + 1 + ] + }, + "sumLDrawStyleX": 2, + "resLDrawStyleX": 1, + "trainStartDate": "20231125", + "durS": "044700" + }, + "resState": "N", + "resRecommendation": "N" + } + ], + "ctxRecon": "T$A=1@O=Lübeck Hbf@L=8000237@a=128@$A=1@O=Büchen@L=8000058@a=128@$202311242210$202311242249$erx21137$$1$$$$$$§T$A=1@O=Büchen@L=8000058@a=128@$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$202311242315$202311250054$ICE 907$$1$$$$$$§T$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$A=1@O=München Hbf@L=8000261@a=128@$202311250430$202311250917$ICE 501$$1$$$$$$", + "trfRes": { + "statusCode": "OK", + "fareSetL": [ + { + "fareL": [ + { + "isFromPrice": true, + "isPartPrice": false, + "isBookable": true, + "isUpsell": false, + "targetCtx": "D", + "buttonText": "To offer selection", + "price": { + "amount": 10890 + }, + "retPriceIsCompletePrice": false, + "retPrice": -1 + } + ] + } + ] + }, + "msgL": [ + { + "type": "REM", + "remX": 10, + "sty": "I", + "tagL": [ + "SUM_CON_HDR_H3", + "RES_CON_FTR_H3" + ], + "sort": 147324928 + } + ], + "conSubscr": "F", + "resState": "N", + "resRecommendation": "N", + "recState": "U", + "sotRating": 0, + "isSotCon": false, + "showARSLink": false, + "sotCtxt": { + "cnLocX": 0, + "calcDate": "20231124", + "jid": "1|466091|0|80|-1", + "locMode": "FROM_START", + "pLocX": 0, + "reqMode": "UNKNOWN", + "sectX": 0, + "calcTime": "170656" + }, + "cksum": "9e560ba9_3", + "cksumDti": "738637ef_3", + "dTrnCmpSX": { + "tcocX": [ + 0, + 1 + ] + }, + "intvlSubscr": "F", + "tcocXL": [ + 0, + 1 + ], + "originType": "INITIAL" + } + ], + "outCtxScrF": "3|OF|MT#14#505330#505330#505997#505997#0#0#565#505316#1#0#26#0#0#-2147483648#1#2|PDH#1f7519b00e0470208ad97667bfd70f7a|RD#24112023|RT#215600|US#0|RS#INIT", + "fpB": "20221211", + "fpE": "20241214", + "bfATS": -1, + "bfIOSTS": -1, + "planrtTS": "1700841908", + "outConGrpSettings": { + "conGrpL": [ + { + "name": "All connections", + "icoX": 11, + "grpid": "cl_all", + "conScoringL": [ + { + "type": "DT", + "conScoreL": [ + { + "score": 7013570268465987581, + "scoreS": "07013570268465987581", + "conRefL": [ + 0 + ] + } + ], + "name": "Departure" + }, + { + "type": "AT", + "conScoreL": [ + { + "score": 7010636771443081213, + "scoreS": "07010636771443081213", + "conRefL": [ + 0 + ] + } + ], + "name": "Arrival" + }, + { + "type": "TI", + "conScoreL": [ + { + "score": 9220434977868480509, + "scoreS": "09220434977868480509", + "conRefL": [ + 0 + ] + } + ], + "name": "Duration" + } + ], + "initScoringType": "DT", + "requests": [ + { + "id": "RQ_CLIENT", + "autosend": true + } + ], + "scrollable": true, + "bitmask": 1 + } + ], + "selectL": [ + { + "icoX": 11, + "name": "All connections", + "bitIdx": 0 + } + ], + "variant": "RADIO" + } +}