mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
adapt docs to c2dc874
📝
This commit is contained in:
parent
99d1531dbb
commit
ef7bd42d15
6 changed files with 237 additions and 104 deletions
|
@ -62,28 +62,8 @@ The response may look like this:
|
||||||
```js
|
```js
|
||||||
[ {
|
[ {
|
||||||
tripId: '1|31431|28|86|17122017',
|
tripId: '1|31431|28|86|17122017',
|
||||||
stop: {
|
trip: 31431,
|
||||||
type: 'station',
|
direction: 'S Spandau',
|
||||||
id: '900000024101',
|
|
||||||
name: 'S Charlottenburg',
|
|
||||||
location: {
|
|
||||||
type: 'location',
|
|
||||||
latitude: 52.504806,
|
|
||||||
longitude: 13.303846
|
|
||||||
},
|
|
||||||
products: {
|
|
||||||
suburban: true,
|
|
||||||
subway: false,
|
|
||||||
tram: false,
|
|
||||||
bus: true,
|
|
||||||
ferry: false,
|
|
||||||
express: false,
|
|
||||||
regional: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
when: '2017-12-17T19:32:00+01:00',
|
|
||||||
delay: null,
|
|
||||||
platform: '2',
|
|
||||||
line: {
|
line: {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
id: '18299',
|
id: '18299',
|
||||||
|
@ -103,14 +83,37 @@ The response may look like this:
|
||||||
name: 'S-Bahn Berlin GmbH'
|
name: 'S-Bahn Berlin GmbH'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
direction: 'S Spandau',
|
|
||||||
trip: 31431
|
stop: {
|
||||||
}, {
|
type: 'station',
|
||||||
tripId: '1|30977|8|86|17122017',
|
id: '900000024101',
|
||||||
stop: { /* … */ },
|
name: 'S Charlottenburg',
|
||||||
when: null,
|
location: {
|
||||||
|
type: 'location',
|
||||||
|
latitude: 52.504806,
|
||||||
|
longitude: 13.303846
|
||||||
|
},
|
||||||
|
products: {
|
||||||
|
suburban: true,
|
||||||
|
subway: false,
|
||||||
|
tram: false,
|
||||||
|
bus: true,
|
||||||
|
ferry: false,
|
||||||
|
express: false,
|
||||||
|
regional: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
when: '2017-12-17T19:32:00+01:00',
|
||||||
|
plannedWhen: '2017-12-17T19:32:00+01:00',
|
||||||
delay: null,
|
delay: null,
|
||||||
|
platform: '2',
|
||||||
|
plannedPlatform: '2'
|
||||||
|
}, {
|
||||||
cancelled: true,
|
cancelled: true,
|
||||||
|
tripId: '1|30977|8|86|17122017',
|
||||||
|
trip: 30977,
|
||||||
|
direction: 'S Westkreuz',
|
||||||
line: {
|
line: {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
id: '16441',
|
id: '16441',
|
||||||
|
@ -126,15 +129,19 @@ The response may look like this:
|
||||||
night: false,
|
night: false,
|
||||||
operator: { /* … */ }
|
operator: { /* … */ }
|
||||||
},
|
},
|
||||||
direction: 'S Westkreuz',
|
|
||||||
trip: 30977
|
stop: { /* … */ },
|
||||||
|
|
||||||
|
when: null,
|
||||||
|
plannedWhen: '2017-12-17T19:33:00+01:00'
|
||||||
|
delay: null,
|
||||||
|
platform: null,
|
||||||
|
plannedPlatform: '2',
|
||||||
|
prognosedPlatform: '2'
|
||||||
}, {
|
}, {
|
||||||
tripId: '1|28671|4|86|17122017',
|
tripId: '1|28671|4|86|17122017',
|
||||||
trip: 28671,
|
trip: 28671,
|
||||||
stop: { /* … */ },
|
direction: 'U Rudow',
|
||||||
when: '2017-12-17T19:35:00+01:00',
|
|
||||||
delay: 0,
|
|
||||||
platform: null,
|
|
||||||
line: {
|
line: {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
id: '19494',
|
id: '19494',
|
||||||
|
@ -150,6 +157,13 @@ The response may look like this:
|
||||||
night: false,
|
night: false,
|
||||||
operator: { /* … */ }
|
operator: { /* … */ }
|
||||||
},
|
},
|
||||||
direction: 'U Rudow'
|
|
||||||
|
stop: { /* … */ },
|
||||||
|
|
||||||
|
when: '2017-12-17T19:35:00+01:00',
|
||||||
|
plannedWhen: '2017-12-17T19:35:00+01:00',
|
||||||
|
delay: 0,
|
||||||
|
platform: null,
|
||||||
|
plannedPlatform: null
|
||||||
} ]
|
} ]
|
||||||
```
|
```
|
||||||
|
|
133
docs/journeys.md
133
docs/journeys.md
|
@ -104,42 +104,7 @@ The `Promise` returned by `journeys()` will resolve with an object with the `jou
|
||||||
journeys: [ {
|
journeys: [ {
|
||||||
legs: [ {
|
legs: [ {
|
||||||
tripId: '1|32615|6|86|10072018',
|
tripId: '1|32615|6|86|10072018',
|
||||||
origin: {
|
direction: 'S Ahrensfelde',
|
||||||
type: 'station',
|
|
||||||
id: '900000003201',
|
|
||||||
name: 'S+U Berlin Hauptbahnhof',
|
|
||||||
location: {
|
|
||||||
type: 'location',
|
|
||||||
latitude: 52.52585,
|
|
||||||
longitude: 13.368928
|
|
||||||
},
|
|
||||||
products: {
|
|
||||||
suburban: true,
|
|
||||||
subway: true,
|
|
||||||
tram: true,
|
|
||||||
bus: true,
|
|
||||||
ferry: false,
|
|
||||||
express: true,
|
|
||||||
regional: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
destination: {
|
|
||||||
type: 'station',
|
|
||||||
id: '900000100004',
|
|
||||||
name: 'S+U Jannowitzbrücke',
|
|
||||||
location: {
|
|
||||||
type: 'location',
|
|
||||||
latitude: 52.504806,
|
|
||||||
longitude: 13.303846
|
|
||||||
},
|
|
||||||
products: { /* … */ }
|
|
||||||
},
|
|
||||||
departure: '2018-07-10T23:54:00+02:00',
|
|
||||||
departureDelay: 60,
|
|
||||||
departurePlatform: '15',
|
|
||||||
arrival: '2018-07-11T00:02:00+02:00',
|
|
||||||
arrivalDelay: 60,
|
|
||||||
arrivalPlatform: '3',
|
|
||||||
line: {
|
line: {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
id: '16845',
|
id: '16845',
|
||||||
|
@ -159,18 +124,66 @@ The `Promise` returned by `journeys()` will resolve with an object with the `jou
|
||||||
express: false,
|
express: false,
|
||||||
night: false
|
night: false
|
||||||
},
|
},
|
||||||
direction: 'S Ahrensfelde',
|
|
||||||
|
origin: {
|
||||||
|
type: 'station',
|
||||||
|
id: '900000003201',
|
||||||
|
name: 'S+U Berlin Hauptbahnhof',
|
||||||
|
location: {
|
||||||
|
type: 'location',
|
||||||
|
latitude: 52.52585,
|
||||||
|
longitude: 13.368928
|
||||||
|
},
|
||||||
|
products: {
|
||||||
|
suburban: true,
|
||||||
|
subway: true,
|
||||||
|
tram: true,
|
||||||
|
bus: true,
|
||||||
|
ferry: false,
|
||||||
|
express: true,
|
||||||
|
regional: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
departure: '2018-07-10T23:54:00+02:00',
|
||||||
|
plannedDeparture: '2018-07-10T23:53:00+02:00',
|
||||||
|
departureDelay: 60,
|
||||||
|
departurePlatform: '15',
|
||||||
|
plannedDeparturePlatform: '14',
|
||||||
|
|
||||||
|
destination: {
|
||||||
|
type: 'station',
|
||||||
|
id: '900000100004',
|
||||||
|
name: 'S+U Jannowitzbrücke',
|
||||||
|
location: {
|
||||||
|
type: 'location',
|
||||||
|
latitude: 52.504806,
|
||||||
|
longitude: 13.303846
|
||||||
|
},
|
||||||
|
products: { /* … */ }
|
||||||
|
},
|
||||||
|
arrival: '2018-07-11T00:02:00+02:00',
|
||||||
|
plannedArrival: '2018-07-11T00:01:00+02:00',
|
||||||
|
arrivalDelay: 60,
|
||||||
|
arrivalPlatform: '3',
|
||||||
|
plannedArrivalPlatform: '3',
|
||||||
|
|
||||||
stopovers: [ {
|
stopovers: [ {
|
||||||
stop: {
|
stop: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
id: '900000003201',
|
id: '900000003201',
|
||||||
name: 'S+U Berlin Hauptbahnhof',
|
name: 'S+U Berlin Hauptbahnhof',
|
||||||
location: { /* … */ },
|
/* … */
|
||||||
products: { /* … */ }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
arrival: null,
|
arrival: null,
|
||||||
|
plannedArrival: null,
|
||||||
|
arrivalPlatform: null,
|
||||||
|
plannedArrivalPlatform: null,
|
||||||
departure: null,
|
departure: null,
|
||||||
cancelled: true,
|
plannedDeparture: null,
|
||||||
|
departurePlatform: null,
|
||||||
|
plannedDeparturePlatform: null,
|
||||||
|
|
||||||
remarks: [
|
remarks: [
|
||||||
{type: 'hint', code: 'bf', text: 'barrier-free'},
|
{type: 'hint', code: 'bf', text: 'barrier-free'},
|
||||||
{type: 'hint', code: 'FB', text: 'Bicycle conveyance'}
|
{type: 'hint', code: 'FB', text: 'Bicycle conveyance'}
|
||||||
|
@ -180,34 +193,54 @@ The `Promise` returned by `journeys()` will resolve with an object with the `jou
|
||||||
type: 'station',
|
type: 'station',
|
||||||
id: '900000100001',
|
id: '900000100001',
|
||||||
name: 'S+U Friedrichstr.',
|
name: 'S+U Friedrichstr.',
|
||||||
location: { /* … */ },
|
/* … */
|
||||||
products: { /* … */ }
|
|
||||||
},
|
},
|
||||||
arrival: '2018-07-10T23:56:00+02:00',
|
|
||||||
|
cancelled: true,
|
||||||
|
arrival: null,
|
||||||
|
plannedArrival: '2018-07-10T23:55:00+02:00',
|
||||||
|
prognosedArrival: '2018-07-10T23:56:00+02:00',
|
||||||
arrivalDelay: 60,
|
arrivalDelay: 60,
|
||||||
arrivalPlatform: null,
|
arrivalPlatform: null,
|
||||||
departure: '2018-07-10T23:57:00+02:00',
|
plannedArrivalPlatform: null,
|
||||||
|
|
||||||
|
departure: null,
|
||||||
|
plannedDeparture: '2018-07-10T23:56:00+02:00',
|
||||||
|
prognosedDeparture: '2018-07-10T23:57:00+02:00',
|
||||||
departureDelay: 60,
|
departureDelay: 60,
|
||||||
departurePlatform: null,
|
departurePlatform: null,
|
||||||
|
plannedDeparturePlatform: null,
|
||||||
|
|
||||||
remarks: [ /* … */ ]
|
remarks: [ /* … */ ]
|
||||||
},
|
},
|
||||||
/* … */
|
/* … */
|
||||||
{
|
{
|
||||||
|
stop: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
id: '900000100004',
|
id: '900000100004',
|
||||||
name: 'S+U Jannowitzbrücke',
|
name: 'S+U Jannowitzbrücke',
|
||||||
location: { /* … */ },
|
/* … */
|
||||||
products: { /* … */ }
|
|
||||||
},
|
},
|
||||||
|
|
||||||
arrival: '2018-07-11T00:02:00+02:00',
|
arrival: '2018-07-11T00:02:00+02:00',
|
||||||
|
plannedArrival: '2018-07-11T00:01:00+02:00',
|
||||||
arrivalDelay: 60,
|
arrivalDelay: 60,
|
||||||
arrivalPlatform: null,
|
arrivalPlatform: null,
|
||||||
|
plannedArrivalPlatform: null,
|
||||||
|
|
||||||
departure: '2018-07-11T00:02:00+02:00',
|
departure: '2018-07-11T00:02:00+02:00',
|
||||||
|
plannedDeparture: '2018-07-11T00:02:00+02:00',
|
||||||
departureDelay: null,
|
departureDelay: null,
|
||||||
departurePlatform: null,
|
departurePlatform: null,
|
||||||
|
plannedDeparturePlatform: null,
|
||||||
|
|
||||||
remarks: [ /* … */ ]
|
remarks: [ /* … */ ]
|
||||||
} ]
|
} ]
|
||||||
}, {
|
}, {
|
||||||
|
public: true,
|
||||||
|
walking: true,
|
||||||
|
distance: 558,
|
||||||
|
|
||||||
origin: {
|
origin: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
id: '900000100004',
|
id: '900000100004',
|
||||||
|
@ -215,6 +248,8 @@ The `Promise` returned by `journeys()` will resolve with an object with the `jou
|
||||||
location: { /* … */ },
|
location: { /* … */ },
|
||||||
products: { /* … */ }
|
products: { /* … */ }
|
||||||
},
|
},
|
||||||
|
departure: '2018-07-11T00:01:00+02:00',
|
||||||
|
|
||||||
destination: {
|
destination: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
id: '900000100008',
|
id: '900000100008',
|
||||||
|
@ -222,11 +257,7 @@ The `Promise` returned by `journeys()` will resolve with an object with the `jou
|
||||||
location: { /* … */ },
|
location: { /* … */ },
|
||||||
products: { /* … */ }
|
products: { /* … */ }
|
||||||
},
|
},
|
||||||
departure: '2018-07-11T00:01:00+02:00',
|
arrival: '2018-07-11T00:10:00+02:00'
|
||||||
arrival: '2018-07-11T00:10:00+02:00',
|
|
||||||
public: true,
|
|
||||||
walking: true,
|
|
||||||
distance: 558
|
|
||||||
} ]
|
} ]
|
||||||
} ],
|
} ],
|
||||||
earlierRef: '…', // use with the `earlierThan` option
|
earlierRef: '…', // use with the `earlierThan` option
|
||||||
|
|
|
@ -1,5 +1,58 @@
|
||||||
# Migrating to `hafas-client@5`
|
# Migrating to `hafas-client@5`
|
||||||
|
|
||||||
|
## new fields for departure/arrival time & delays
|
||||||
|
|
||||||
|
An arrival/departure now looks like this:
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
when: null, // realtime/prognosed
|
||||||
|
plannedWhen: '2019-10-10T10:10+10:00',
|
||||||
|
platform: '3', // realtime/prognosed
|
||||||
|
plannedPlatform: '4'
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
A stopover/journey leg now will look like this:
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
arrival: null, // realtime/prognosed
|
||||||
|
plannedArrival: '2019-10-10T10:10+10:00',
|
||||||
|
arrivalDelay: null,
|
||||||
|
arrivalPlatform: '3', // realtime/prognosed
|
||||||
|
plannedArrivalPlatform: '4',
|
||||||
|
|
||||||
|
departure: '2019-10-10T10:12+10:00', // realtime/prognosed
|
||||||
|
plannedDeparture: '2019-10-10T10:10+10:00',
|
||||||
|
departureDelay: 120, // seconds
|
||||||
|
departurePlatform: null, // realtime/prognosed
|
||||||
|
plannedDeparturePlatform: null
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
If the same stopover/journey leg is `cancelled: true`, it will look like this:
|
||||||
|
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
arrival: null,
|
||||||
|
prognosedArrival: null,
|
||||||
|
plannedArrival: '2019-10-10T10:10+10:00',
|
||||||
|
arrivalDelay: null,
|
||||||
|
arrivalPlatform: null,
|
||||||
|
prognosedArrivalPlatform: '3',
|
||||||
|
plannedArrivalPlatform: '4',
|
||||||
|
|
||||||
|
departure: null,
|
||||||
|
prognosedDeparture: '2019-10-10T10:12+10:00',
|
||||||
|
plannedDeparture: '2019-10-10T10:10+10:00',
|
||||||
|
departureDelay: 120, // seconds
|
||||||
|
departurePlatform: null,
|
||||||
|
prognosedDeparturePlatform: null,
|
||||||
|
plannedDeparturePlatform: null
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## If you use `journeys()`…
|
## If you use `journeys()`…
|
||||||
|
|
||||||
…with the `walkingSpeed` option and a custom profile, add `journeysWalkingSpeed` to your profile. 937583e
|
…with the `walkingSpeed` option and a custom profile, add `journeysWalkingSpeed` to your profile. 937583e
|
||||||
|
|
|
@ -89,9 +89,15 @@ The response may look like this:
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
arrival: null,
|
arrival: null,
|
||||||
|
plannedArrival: null,
|
||||||
arrivalDelay: null,
|
arrivalDelay: null,
|
||||||
departure: '2017-12-17T19:16:00+01:00',
|
arrivalPlatform: null,
|
||||||
departureDelay: null
|
plannedArrivalPlatform: null,
|
||||||
|
departure: null,
|
||||||
|
plannedDeparture: '2017-12-17T19:16:00+01:00',
|
||||||
|
departureDelay: null,
|
||||||
|
departurePlatform: null,
|
||||||
|
plannedDeparturePlatform: '1'
|
||||||
} /* … */ ],
|
} /* … */ ],
|
||||||
frames: [ {
|
frames: [ {
|
||||||
origin: {
|
origin: {
|
||||||
|
@ -144,15 +150,23 @@ The response may look like this:
|
||||||
nextStopovers: [ {
|
nextStopovers: [ {
|
||||||
stop: { /* S+U Alexanderplatz/Dircksenstr. */ },
|
stop: { /* S+U Alexanderplatz/Dircksenstr. */ },
|
||||||
arrival: null,
|
arrival: null,
|
||||||
|
plannedArrival: null,
|
||||||
arrivalDelay: null,
|
arrivalDelay: null,
|
||||||
departure: '2017-12-17T19:52:00+01:00',
|
departure: null,
|
||||||
|
plannedAeparture: '2017-12-17T19:52:00+01:00',
|
||||||
departureDelay: null
|
departureDelay: null
|
||||||
}, {
|
}, {
|
||||||
stop: { /* Memhardstr. */ },
|
stop: { /* Memhardstr. */ },
|
||||||
arrival: '2017-12-17T19:54:00+01:00',
|
arrival: null,
|
||||||
|
plannedArrival: '2017-12-17T19:54:00+01:00',
|
||||||
arrivalDelay: null,
|
arrivalDelay: null,
|
||||||
departure: '2017-12-17T19:54:00+01:00',
|
arrivalPlatform: null,
|
||||||
departureDelay: null
|
plannedArrivalPlatform: null,
|
||||||
|
departure: null,
|
||||||
|
plannedDeparture: '2017-12-17T19:54:00+01:00',
|
||||||
|
departureDelay: null,
|
||||||
|
departurePlatform: null,
|
||||||
|
plannedDeparturePlatform: '1'
|
||||||
}, /* … */ ],
|
}, /* … */ ],
|
||||||
frames: [ {
|
frames: [ {
|
||||||
origin: { /* S+U Alexanderplatz/Dircksenstr. */ },
|
origin: { /* S+U Alexanderplatz/Dircksenstr. */ },
|
||||||
|
|
11
docs/trip.md
11
docs/trip.md
|
@ -75,7 +75,11 @@ The response looked like this:
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
departure: '2017-12-17T18:37:00+01:00',
|
departure: '2017-12-17T18:37:00+01:00',
|
||||||
|
plannedDeparture: '2017-12-17T18:37:00+01:00',
|
||||||
|
departureDelay: null,
|
||||||
departurePlatform: '13',
|
departurePlatform: '13',
|
||||||
|
plannedDeparturePlatform: '13',
|
||||||
|
|
||||||
destination: {
|
destination: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
id: '900000029101',
|
id: '900000029101',
|
||||||
|
@ -95,8 +99,11 @@ The response looked like this:
|
||||||
regional: true
|
regional: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
arrival: '2017-12-17T19:49:00+01:00',
|
arrival: '2017-12-17T19:50:30+01:00',
|
||||||
arrivalPlatform: '2',
|
plannedArrival: '2017-12-17T19:49:00+01:00',
|
||||||
|
arrivalDelay: 90,
|
||||||
|
arrivalPlatform: '3a',
|
||||||
|
plannedArrivalPlatform: '2',
|
||||||
line: {
|
line: {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
id: '18299',
|
id: '18299',
|
||||||
|
|
34
readme.md
34
readme.md
|
@ -53,9 +53,11 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
location: { /* … */ },
|
location: { /* … */ },
|
||||||
products: { /* … */ }
|
products: { /* … */ }
|
||||||
},
|
},
|
||||||
departure: '2019-12-17T17:05:30+01:00',
|
departure: '2017-12-19T17:05:30+01:00',
|
||||||
|
plannedDeparture: '2017-12-19T17:05:00+01:00',
|
||||||
departureDelay: 30,
|
departureDelay: 30,
|
||||||
departurePlatform: '5',
|
departurePlatform: '5',
|
||||||
|
plannedDeparturePlatform: '5',
|
||||||
|
|
||||||
destination: {
|
destination: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
|
@ -64,9 +66,11 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
location: { /* … */ },
|
location: { /* … */ },
|
||||||
products: { /* … */ }
|
products: { /* … */ }
|
||||||
},
|
},
|
||||||
arrival: '2019-12-17T22:44:00+01:00',
|
arrival: '2017-12-19T22:44:00+01:00',
|
||||||
|
plannedArrival: '2017-12-19T22:45:00+01:00',
|
||||||
arrivalDelay: -60,
|
arrivalDelay: -60,
|
||||||
arrivalPlatform: '11A',
|
arrivalPlatform: '11A',
|
||||||
|
plannedArrivalPlatform: '13',
|
||||||
|
|
||||||
legs: [ {
|
legs: [ {
|
||||||
id: '1|100067|48|81|17122017',
|
id: '1|100067|48|81|17122017',
|
||||||
|
@ -96,9 +100,11 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
},
|
},
|
||||||
products: { /* … */ }
|
products: { /* … */ }
|
||||||
},
|
},
|
||||||
departure: '2019-12-17T17:05:30+01:00',
|
departure: '2017-12-19T17:05:30+01:00',
|
||||||
|
plannedDeparture: '2017-12-19T17:05:00+01:00',
|
||||||
departureDelay: 30,
|
departureDelay: 30,
|
||||||
departurePlatform: '5',
|
departurePlatform: '5',
|
||||||
|
plannedDeparturePlatform: '5',
|
||||||
|
|
||||||
destination: {
|
destination: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
|
@ -106,9 +112,11 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
name: 'Berlin Beusselstraße'
|
name: 'Berlin Beusselstraße'
|
||||||
/* … */
|
/* … */
|
||||||
},
|
},
|
||||||
arrival: '2019-12-17T17:08:00+01:00',
|
arrival: '2017-12-19T17:08:00+01:00',
|
||||||
|
plannedArrival: '2017-12-19T17:08:00+01:00',
|
||||||
arrivalDelay: null,
|
arrivalDelay: null,
|
||||||
arrivalPlatform: '2a-b'
|
arrivalPlatform: '2a-b',
|
||||||
|
plannedArrivalPlatform: '1'
|
||||||
},
|
},
|
||||||
/* more legs… */
|
/* more legs… */
|
||||||
{
|
{
|
||||||
|
@ -121,7 +129,8 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
name: 'Berlin Hauptbahnhof (S+U), Berlin'
|
name: 'Berlin Hauptbahnhof (S+U), Berlin'
|
||||||
/* … */
|
/* … */
|
||||||
},
|
},
|
||||||
departure: '2019-12-17T17:25:00+01:00',
|
plannedDeparture: '2017-12-19T17:25:00+01:00',
|
||||||
|
prognosedDeparture: null,
|
||||||
departureDelay: null,
|
departureDelay: null,
|
||||||
|
|
||||||
destination: {
|
destination: {
|
||||||
|
@ -130,7 +139,8 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
name: 'Berlin Hbf (tief)'
|
name: 'Berlin Hbf (tief)'
|
||||||
/* … */
|
/* … */
|
||||||
},
|
},
|
||||||
arrival: '2019-12-17T17:33:00+01:00',
|
arrival: '2017-12-19T17:33:00+01:00',
|
||||||
|
plannedArrival: '2017-12-19T17:33:00+01:00',
|
||||||
arrivalDelay: null
|
arrivalDelay: null
|
||||||
}, {
|
}, {
|
||||||
id: '1|70906|0|81|17122017',
|
id: '1|70906|0|81|17122017',
|
||||||
|
@ -143,9 +153,11 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
name: 'Berlin Hbf (tief)'
|
name: 'Berlin Hbf (tief)'
|
||||||
/* … */
|
/* … */
|
||||||
},
|
},
|
||||||
departure: '2019-12-17T17:35:00+01:00',
|
departure: '2017-12-19T17:35:00+01:00',
|
||||||
|
plannedDeparture: '2017-12-19T17:37:00+01:00',
|
||||||
departureDelay: -120,
|
departureDelay: -120,
|
||||||
departurePlatform: '1',
|
departurePlatform: '1',
|
||||||
|
plannedDeparturePlatform: '1',
|
||||||
|
|
||||||
destination: {
|
destination: {
|
||||||
type: 'station',
|
type: 'station',
|
||||||
|
@ -153,9 +165,11 @@ client.journeys('8011167', '8000261', {results: 1})
|
||||||
name: 'München Hbf',
|
name: 'München Hbf',
|
||||||
/* … */
|
/* … */
|
||||||
},
|
},
|
||||||
arrival: '2019-12-17T22:44:00+01:00',
|
arrival: '2017-12-19T22:44:00+01:00',
|
||||||
|
plannedArrival: '2017-12-19T22:45:00+01:00',
|
||||||
arrivalDelay: -60,
|
arrivalDelay: -60,
|
||||||
arrivalPlatform: '11A'
|
arrivalPlatform: '11A',
|
||||||
|
plannedArrivalPlatform: '13'
|
||||||
} ],
|
} ],
|
||||||
price: {
|
price: {
|
||||||
amount: null,
|
amount: null,
|
||||||
|
|
Loading…
Add table
Reference in a new issue