mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
stopover.type, stopover.station -> stopover.stop 💥
To be compatible with `friendly-public-transport-format@1.1.1`.
This commit is contained in:
parent
96f9f93957
commit
3e672eeabd
2 changed files with 5 additions and 4 deletions
|
@ -160,7 +160,7 @@ The response may look like this:
|
|||
},
|
||||
direction: 'S Potsdam Hauptbahnhof',
|
||||
stopovers: [ {
|
||||
station: {
|
||||
stop: {
|
||||
type: 'station',
|
||||
id: '900000003201',
|
||||
name: 'S+U Berlin Hauptbahnhof',
|
||||
|
@ -171,7 +171,7 @@ The response may look like this:
|
|||
departure: null,
|
||||
cancelled: true
|
||||
}, {
|
||||
station: {
|
||||
stop: {
|
||||
type: 'station',
|
||||
id: '900000003102',
|
||||
name: 'S Bellevue',
|
||||
|
@ -181,7 +181,7 @@ The response may look like this:
|
|||
arrival: '2017-12-17T19:09:00.000+01:00',
|
||||
departure: '2017-12-17T19:09:00.000+01:00'
|
||||
}, /* … */ {
|
||||
station: {
|
||||
stop: {
|
||||
type: 'station',
|
||||
id: '900000024101',
|
||||
name: 'S Charlottenburg',
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
const createParseStopover = (profile, stations, lines, remarks, date) => {
|
||||
const parseStopover = (st) => {
|
||||
const res = {
|
||||
station: stations[parseInt(st.locX)] || null,
|
||||
type: 'stopover',
|
||||
stop: stations[parseInt(st.locX)] || null,
|
||||
arrival: null,
|
||||
arrivalDelay: null,
|
||||
arrivalPlatform: st.aPlatfR || st.aPlatfS || null,
|
||||
|
|
Loading…
Add table
Reference in a new issue