db-vendo-client/test/fixtures/vbb-journeys.js

910 lines
20 KiB
JavaScript
Raw Normal View History

2022-05-07 16:17:37 +02:00
const vbbJourneys = [{
type: 'journey',
legs: [{
origin: {
type: 'stop',
id: '900042101',
name: 'U Spichernstr. (Berlin)',
location: {
type: 'location',
id: '900042101',
latitude: 52.496581,
longitude: 13.330616,
},
products: {
suburban: false,
subway: true,
tram: false,
bus: true,
ferry: false,
express: false,
regional: false,
},
},
destination: {
type: 'stop',
id: '900001201',
name: 'S+U Westhafen (Berlin)',
location: {
type: 'location',
id: '900001201',
latitude: 52.536179,
longitude: 13.343839,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: false,
regional: false,
},
},
departure: '2020-12-07T14:08:00+01:00',
plannedDeparture: '2020-12-07T14:08:00+01:00',
departureDelay: 0,
departurePrognosisType: 'prognosed',
arrival: '2020-12-07T14:16:00+01:00',
plannedArrival: '2020-12-07T14:16:00+01:00',
arrivalDelay: 0,
arrivalPrognosisType: 'prognosed',
reachable: true,
tripId: '1|35066|1|86|7122020',
line: {
type: 'line',
id: 'u9',
fahrtNr: '24005',
name: 'U9',
public: true,
adminCode: 'BVU---',
productName: 'U',
mode: 'train',
product: 'subway',
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
name: 'Berliner Verkehrsbetriebe',
},
},
direction: 'U Osloer Str. (Berlin)',
arrivalPlatform: null,
plannedArrivalPlatform: null,
departurePlatform: null,
plannedDeparturePlatform: null,
cycle: {min: 240, max: 300, nr: 26},
remarks: [
{
type: 'hint',
code: 'OPERATOR',
text: 'BVG',
},
{
type: 'hint',
code: 'bf',
text: 'barrier-free',
},
{
type: 'hint',
code: 'FB',
text: 'Bicycle conveyance',
},
{
id: '96404',
type: 'warning',
summary: 'Together against corona: Keep distance, cover mouth and nose!',
text: 'In vehicles, at stops and stations. Don´t risk a fine of at least 50 euros!\n<a href="https://www.vbb.de/corona" target="_blank" rel="noopener">Further information (in German language)</a>',
icon: {
type: 'HIM0',
title: null,
},
priority: 100,
products: {
suburban: true,
subway: true,
tram: true,
bus: true,
ferry: true,
express: true,
regional: true,
},
company: 'VBB',
category: 0,
validFrom: '2020-08-26T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
],
}, {
origin: {
type: 'stop',
id: '900001201',
name: 'S+U Westhafen (Berlin)',
location: {
type: 'location',
id: '900001201',
latitude: 52.536179,
longitude: 13.343839,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: false,
regional: false,
},
},
destination: {
type: 'stop',
id: '900007102',
name: 'S+U Gesundbrunnen Bhf (Berlin)',
location: {
type: 'location',
id: '900007102',
latitude: 52.548638,
longitude: 13.388372,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: true,
regional: true,
},
},
departure: '2020-12-07T14:20:00+01:00',
plannedDeparture: '2020-12-07T14:20:00+01:00',
departureDelay: 0,
departurePrognosisType: 'calculated',
arrival: '2020-12-07T14:25:00+01:00',
plannedArrival: '2020-12-07T14:25:00+01:00',
arrivalDelay: 0,
arrivalPrognosisType: 'calculated',
reachable: true,
tripId: '1|66441|25|86|7122020',
line: {
type: 'line',
id: 's41',
fahrtNr: '2568',
name: 'S41',
public: true,
adminCode: 'DBS---',
productName: 'S',
mode: 'train',
product: 'suburban',
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
name: 'S-Bahn Berlin GmbH',
},
},
direction: 'Ringbahn S 41',
arrivalPlatform: '3',
plannedArrivalPlatform: '3',
departurePlatform: '1',
plannedDeparturePlatform: '1',
cycle: {min: 300, max: 600, nr: 24},
remarks: [
{
type: 'hint',
code: 'OPERATOR',
text: 'DBS',
},
{
type: 'hint',
code: 'bf',
text: 'barrier-free',
},
{
type: 'hint',
code: 'FB',
text: 'Bicycle conveyance',
},
{
id: '96404',
type: 'warning',
summary: 'Together against corona: Keep distance, cover mouth and nose!',
text: 'In vehicles, at stops and stations. Don´t risk a fine of at least 50 euros!\n<a href="https://www.vbb.de/corona" target="_blank" rel="noopener">Further information (in German language)</a>',
icon: {
type: 'HIM0',
title: null,
},
priority: 100,
products: {
suburban: true,
subway: true,
tram: true,
bus: true,
ferry: true,
express: true,
regional: true,
},
company: 'VBB',
category: 0,
validFrom: '2020-08-26T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
],
}, {
origin: {
type: 'stop',
id: '900007102',
name: 'S+U Gesundbrunnen Bhf (Berlin)',
location: {
type: 'location',
id: '900007102',
latitude: 52.548638,
longitude: 13.388372,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: true,
regional: true,
},
},
destination: {
type: 'stop',
id: '900350127',
name: 'Eberswalde, Hauptbahnhof',
location: {
type: 'location',
id: '900350127',
latitude: 52.833668,
longitude: 13.797031,
},
products: {
suburban: false,
subway: false,
tram: false,
bus: true,
ferry: false,
express: true,
regional: true,
},
},
departure: '2020-12-07T14:34:00+01:00',
plannedDeparture: '2020-12-07T13:52:00+01:00',
departureDelay: 2520,
departurePrognosisType: 'prognosed',
arrival: '2020-12-07T14:58:00+01:00',
plannedArrival: '2020-12-07T14:17:00+01:00',
arrivalDelay: 2460,
arrivalPrognosisType: 'prognosed',
reachable: true,
tripId: '1|43248|0|86|7122020',
line: {
type: 'line',
id: 'ice-1710',
fahrtNr: '1710',
name: 'ICE 1710',
public: true,
adminCode: 'N80---',
productName: 'ICE',
mode: 'train',
product: 'express',
operator: {type: 'operator', id: 'db-regio-ag', name: 'DB Regio AG'},
},
direction: 'Ostseebad Binz, Bahnhof',
arrivalPlatform: '3',
plannedArrivalPlatform: '3',
departurePlatform: '10',
plannedDeparturePlatform: '10',
cycle: {min: 7200, max: 9000, nr: 2},
alternatives: [{
tripId: '1|42763|0|86|7122020',
line: {
type: 'line',
id: 'ic-2457',
fahrtNr: '2457',
name: 'IC 2457',
public: true,
adminCode: 'N80---',
productName: 'IC',
mode: 'train',
product: 'express',
operator: {
type: 'operator',
id: 'db-regio-ag',
name: 'DB Regio AG',
},
},
direction: 'Ostseebad Binz, Bahnhof',
when: '2020-12-07T15:52:00+01:00',
plannedWhen: '2020-12-07T15:52:00+01:00',
delay: null,
}, {
tripId: '1|42768|0|86|7122020',
line: {
type: 'line',
id: 'ic-2055',
fahrtNr: '2055',
name: 'IC 2055',
public: true,
adminCode: 'N80---',
productName: 'IC',
mode: 'train',
product: 'express',
operator: {
type: 'operator',
id: 'db-regio-ag',
name: 'DB Regio AG',
},
},
direction: 'Stralsund, Hauptbahnhof',
when: '2020-12-07T18:22:00+01:00',
plannedWhen: '2020-12-07T18:22:00+01:00',
delay: null,
}],
remarks: [
{
type: 'hint',
code: 'OPERATOR',
text: 'DB Regio',
},
{
type: 'hint',
code: 'VG',
text: 'VBB single, collective and season tickets are recognised (S+U Gesundbrunnen Bhf (Berlin))',
},
{
type: 'hint',
code: 'VG',
text: 'VBB single, collective and season tickets are recognised (Eberswalde, Hauptbahnhof)',
},
{
type: 'hint',
code: 'CK',
text: 'Komfort Check-in möglich (Infos unter bahn.de/kci)',
},
{
type: 'hint',
code: 'FR',
text: 'Bicycles conveyed - subject to reservation',
},
{
type: 'hint',
code: 'FB',
text: 'Bicycle conveyance',
},
{
type: 'hint',
code: 'kh',
text: 'Bordrestaurant',
},
{
id: '96404',
type: 'warning',
summary: 'Together against corona: Keep distance, cover mouth and nose!',
text: 'In vehicles, at stops and stations. Don´t risk a fine of at least 50 euros!\n<a href="https://www.vbb.de/corona" target="_blank" rel="noopener">Further information (in German language)</a>',
icon: {
type: 'HIM0',
title: null,
},
priority: 100,
products: {
suburban: true,
subway: true,
tram: true,
bus: true,
ferry: true,
express: true,
regional: true,
},
company: 'VBB',
category: 0,
validFrom: '2020-08-26T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
],
}],
refreshToken: '¶HKI¶T$A=1@O=U Spichernstr. (Berlin)@L=900042101@a=128@$A=1@O=S+U Westhafen (Berlin)@L=900001201@a=128@$202012071408$202012071416$ U9$$1$$$$§T$A=1@O=S+U Westhafen (Berlin)@L=900001201@a=128@$A=1@O=S+U Gesundbrunnen Bhf (Berlin)@L=900007102@a=128@$202012071420$202012071425$ S41$$1$$$$§T$A=1@O=S+U Gesundbrunnen Bhf (Berlin)@L=900007102@a=128@$A=1@O=Eberswalde, Hauptbahnhof@L=900350127@a=128@$202012071352$202012071417$ICE 1710$$3$$$$',
cycle: {min: 7200},
remarks: [{
type: 'status',
code: 'text.realtime.connection.alternative.summary',
text: 'Journey suggestion according to current traffic.',
}, {
type: 'status',
code: 'text.realtime.connection.alternative.detail',
text: 'Journey suggestion according to current traffic situation. Please note the current real-time information.',
}],
},
{
type: 'journey',
legs: [{
origin: {
type: 'stop',
id: '900042101',
name: 'U Spichernstr. (Berlin)',
location: {
type: 'location',
id: '900042101',
latitude: 52.496581,
longitude: 13.330616,
},
products: {
suburban: false,
subway: true,
tram: false,
bus: true,
ferry: false,
express: false,
regional: false,
},
},
destination: {
type: 'stop',
id: '900001201',
name: 'S+U Westhafen (Berlin)',
location: {
type: 'location',
id: '900001201',
latitude: 52.536179,
longitude: 13.343839,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: false,
regional: false,
},
},
departure: '2020-12-07T14:12:00+01:00',
plannedDeparture: '2020-12-07T14:12:00+01:00',
departureDelay: 0,
departurePrognosisType: 'prognosed',
arrival: '2020-12-07T14:21:00+01:00',
plannedArrival: '2020-12-07T14:21:00+01:00',
arrivalDelay: 0,
arrivalPrognosisType: 'prognosed',
reachable: true,
tripId: '1|35069|1|86|7122020',
line: {
type: 'line',
id: 'u9',
fahrtNr: '24006',
name: 'U9',
public: true,
adminCode: 'BVU---',
productName: 'U',
mode: 'train',
product: 'subway',
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
name: 'Berliner Verkehrsbetriebe',
},
},
direction: 'U Osloer Str. (Berlin)',
arrivalPlatform: null,
plannedArrivalPlatform: null,
departurePlatform: null,
plannedDeparturePlatform: null,
cycle: {min: 240, max: 300, nr: 26},
remarks: [
{
type: 'hint',
code: 'OPERATOR',
text: 'BVG',
},
{
type: 'hint',
code: 'bf',
text: 'barrier-free',
},
{
type: 'hint',
code: 'FB',
text: 'Bicycle conveyance',
},
{
id: '96404',
type: 'warning',
summary: 'Together against corona: Keep distance, cover mouth and nose!',
text: 'In vehicles, at stops and stations. Don´t risk a fine of at least 50 euros!\n<a href="https://www.vbb.de/corona" target="_blank" rel="noopener">Further information (in German language)</a>',
icon: {
type: 'HIM0',
title: null,
},
priority: 100,
products: {
suburban: true,
subway: true,
tram: true,
bus: true,
ferry: true,
express: true,
regional: true,
},
company: 'VBB',
category: 0,
validFrom: '2020-08-26T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
],
}, {
origin: {
type: 'stop',
id: '900001201',
name: 'S+U Westhafen (Berlin)',
location: {
type: 'location',
id: '900001201',
latitude: 52.536179,
longitude: 13.343839,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: false,
regional: false,
},
},
destination: {
type: 'stop',
id: '900007102',
name: 'S+U Gesundbrunnen Bhf (Berlin)',
location: {
type: 'location',
id: '900007102',
latitude: 52.548638,
longitude: 13.388372,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: true,
regional: true,
},
},
departure: null,
plannedDeparture: '2020-12-07T14:25:00+01:00',
departureDelay: null,
arrival: null,
departurePrognosisType: null,
plannedArrival: '2020-12-07T14:30:00+01:00',
arrivalDelay: null,
arrivalPrognosisType: null,
reachable: false,
tripId: '1|66451|1|86|7122020',
line: {
type: 'line',
id: 's41',
fahrtNr: '2723',
name: 'S41',
public: true,
adminCode: 'DBS---',
productName: 'S',
mode: 'train',
product: 'suburban',
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
name: 'S-Bahn Berlin GmbH',
},
},
direction: 'Ringbahn S 41',
arrivalPlatform: null,
plannedArrivalPlatform: null,
departurePlatform: null,
plannedDeparturePlatform: null,
cycle: {min: 300, max: 300, nr: 24},
cancelled: true,
remarks: [
{
type: 'hint',
code: 'OPERATOR',
text: 'DBS',
},
{
type: 'hint',
code: 'bf',
text: 'barrier-free',
},
{
type: 'hint',
code: 'FB',
text: 'Bicycle conveyance',
},
{
id: '96404',
type: 'warning',
summary: 'Together against corona: Keep distance, cover mouth and nose!',
text: 'In vehicles, at stops and stations. Don´t risk a fine of at least 50 euros!\n<a href="https://www.vbb.de/corona" target="_blank" rel="noopener">Further information (in German language)</a>',
icon: {
type: 'HIM0',
title: null,
},
priority: 100,
products: {
suburban: true,
subway: true,
tram: true,
bus: true,
ferry: true,
express: true,
regional: true,
},
company: 'VBB',
category: 0,
validFrom: '2020-08-26T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
{
type: 'status',
code: 'text.realtime.journey.cancelled',
text: 'S41: Cancelled',
},
],
}, {
origin: {
type: 'stop',
id: '900007102',
name: 'S+U Gesundbrunnen Bhf (Berlin)',
location: {
type: 'location',
id: '900007102',
latitude: 52.548638,
longitude: 13.388372,
},
products: {
suburban: true,
subway: true,
tram: false,
bus: true,
ferry: false,
express: true,
regional: true,
},
},
destination: {
type: 'stop',
id: '900350127',
name: 'Eberswalde, Hauptbahnhof',
location: {
type: 'location',
id: '900350127',
latitude: 52.833668,
longitude: 13.797031,
},
products: {
suburban: false,
subway: false,
tram: false,
bus: true,
ferry: false,
express: true,
regional: true,
},
},
departure: '2020-12-07T14:39:00+01:00',
plannedDeparture: '2020-12-07T14:39:00+01:00',
departureDelay: null,
departurePrognosisType: null,
arrival: '2020-12-07T15:07:00+01:00',
plannedArrival: '2020-12-07T15:07:00+01:00',
arrivalDelay: null,
arrivalPrognosisType: null,
reachable: true,
tripId: '1|1961|0|86|7122020',
line: {
type: 'line',
id: 're3',
fahrtNr: '22',
name: 'RE3',
public: true,
adminCode: '800158',
productName: 'RE',
mode: 'train',
product: 'regional',
operator: {type: 'operator', id: 'db-regio-ag', name: 'DB Regio AG'},
},
direction: 'Stralsund, Hauptbahnhof',
arrivalPlatform: '3',
plannedArrivalPlatform: '3',
departurePlatform: '9',
plannedDeparturePlatform: '9',
cycle: {min: 840, max: 2760, nr: 5},
alternatives: [{
tripId: '1|130|0|86|7122020',
line: {
type: 'line',
id: 're66',
fahrtNr: '46',
name: 'RE66',
public: true,
adminCode: '800151',
productName: 'RE',
mode: 'train',
product: 'regional',
operator: {
type: 'operator',
id: 'db-regio-ag',
name: 'DB Regio AG',
},
},
direction: 'Tantow, Bahnhof',
when: '2020-12-07T14:53:00+01:00',
plannedWhen: '2020-12-07T14:53:00+01:00',
delay: null,
}, {
tripId: '1|1976|0|86|7122020',
line: {
type: 'line',
id: 're3',
fahrtNr: '372',
name: 'RE3',
public: true,
adminCode: '800158',
productName: 'RE',
mode: 'train',
product: 'regional',
operator: {
type: 'operator',
id: 'db-regio-ag',
name: 'DB Regio AG',
},
},
direction: 'Schwedt, Bahnhof',
when: '2020-12-07T15:39:00+01:00',
plannedWhen: '2020-12-07T15:39:00+01:00',
delay: null,
}, {
tripId: '1|1971|0|86|7122020',
line: {
type: 'line',
id: 're3',
fahrtNr: '377',
name: 'RE3',
public: true,
adminCode: '800158',
productName: 'RE',
mode: 'train',
product: 'regional',
operator: {
type: 'operator',
id: 'db-regio-ag',
name: 'DB Regio AG',
},
},
direction: 'Eberswalde, Hauptbahnhof',
when: '2020-12-07T15:59:00+01:00',
plannedWhen: '2020-12-07T15:59:00+01:00',
delay: null,
}, {
tripId: '1|1959|1|86|7122020',
line: {
type: 'line',
id: 're3',
fahrtNr: '386',
name: 'RE3',
public: true,
adminCode: '800158',
productName: 'RE',
mode: 'train',
product: 'regional',
operator: {
type: 'operator',
id: 'db-regio-ag',
name: 'DB Regio AG',
},
},
direction: 'Stralsund, Hauptbahnhof',
when: '2020-12-07T16:39:00+01:00',
plannedWhen: '2020-12-07T16:39:00+01:00',
delay: null,
}, {
tripId: '1|129|0|86|7122020',
line: {
type: 'line',
id: 're66',
fahrtNr: '47',
name: 'RE66',
public: true,
adminCode: '800151',
productName: 'RE',
mode: 'train',
product: 'regional',
operator: {
type: 'operator',
id: 'db-regio-ag',
name: 'DB Regio AG',
},
},
direction: 'Szczecin, Glowny',
when: '2020-12-07T17:19:00+01:00',
plannedWhen: '2020-12-07T17:19:00+01:00',
delay: null,
}],
remarks: [
{
type: 'hint',
code: 'OPERATOR',
text: 'DB Regio',
},
{
type: 'hint',
code: 'bf',
text: 'barrier-free',
},
{
type: 'hint',
code: 'ko',
text: 'Pflicht zur Bedeckung von Mund und Nase',
},
{
type: 'hint',
code: 'FB',
text: 'Bicycle conveyance',
},
{
type: 'hint',
code: 'SN',
text: 'SnackPoint/Snacks on board the train',
},
{
type: 'hint',
code: 'km',
text: 'vehicle-mounted accessaid',
},
{
id: '96404',
type: 'warning',
summary: 'Together against corona: Keep distance, cover mouth and nose!',
text: 'In vehicles, at stops and stations. Don´t risk a fine of at least 50 euros!\n<a href="https://www.vbb.de/corona" target="_blank" rel="noopener">Further information (in German language)</a>',
icon: {
type: 'HIM0',
title: null,
},
priority: 100,
products: {
suburban: true,
subway: true,
tram: true,
bus: true,
ferry: true,
express: true,
regional: true,
},
company: 'VBB',
category: 0,
validFrom: '2020-08-26T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
],
}],
refreshToken: '¶HKI¶T$A=1@O=U Spichernstr. (Berlin)@L=900042101@a=128@$A=1@O=S+U Westhafen (Berlin)@L=900001201@a=128@$202012071412$202012071421$ U9$$1$$$$§T$A=1@O=S+U Westhafen (Berlin)@L=900001201@a=128@$A=1@O=S+U Gesundbrunnen Bhf (Berlin)@L=900007102@a=128@$202012071425$202012071430$ S41$$1$$$$§T$A=1@O=S+U Gesundbrunnen Bhf (Berlin)@L=900007102@a=128@$A=1@O=Eberswalde, Hauptbahnhof@L=900350127@a=128@$202012071439$202012071507$ RE3$$1$$$$',
cycle: {min: 840},
remarks: [{
type: 'status',
code: 'text.realtime.connection.cancelled',
text: 'A section of this itinerary is cancelled or unusable.',
}],
}];
2022-05-07 16:17:37 +02:00
export {
vbbJourneys,
};