mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
{arrival,departure}.station -> .stop 💥, adapt docs 📝
This commit is contained in:
parent
0c1cec01c2
commit
12e61bea0a
3 changed files with 6 additions and 24 deletions
|
@ -62,7 +62,7 @@ The response may look like this:
|
|||
[ {
|
||||
tripId: '1|31431|28|86|17122017',
|
||||
trip: 31431,
|
||||
station: {
|
||||
stop: {
|
||||
type: 'station',
|
||||
id: '900000024101',
|
||||
name: 'S Charlottenburg',
|
||||
|
@ -129,25 +129,7 @@ The response may look like this:
|
|||
}, {
|
||||
tripId: '1|28671|4|86|17122017',
|
||||
trip: 28671,
|
||||
station: {
|
||||
type: 'station',
|
||||
id: '900000024202',
|
||||
name: 'U Wilmersdorfer Str.',
|
||||
location: {
|
||||
type: 'location',
|
||||
latitude: 52.506415,
|
||||
longitude: 13.306777
|
||||
},
|
||||
products: {
|
||||
suburban: false,
|
||||
subway: true,
|
||||
tram: false,
|
||||
bus: false,
|
||||
ferry: false,
|
||||
express: false,
|
||||
regional: false
|
||||
}
|
||||
},
|
||||
stop: { /* … */ },
|
||||
when: '2017-12-17T19:35:00.000+01:00',
|
||||
delay: 0,
|
||||
line: {
|
||||
|
|
|
@ -68,7 +68,7 @@ The response may look like this:
|
|||
direction: 'S Flughafen Berlin-Schönefeld',
|
||||
trip: 31463,
|
||||
nextStops: [ {
|
||||
station: {
|
||||
stop: {
|
||||
type: 'stop',
|
||||
id: '900000029101',
|
||||
name: 'S Spandau',
|
||||
|
@ -140,13 +140,13 @@ The response may look like this:
|
|||
direction: 'Heinersdorf',
|
||||
trip: 26321,
|
||||
nextStops: [ {
|
||||
station: { /* S+U Alexanderplatz/Dircksenstr. */ },
|
||||
stop: { /* S+U Alexanderplatz/Dircksenstr. */ },
|
||||
arrival: null,
|
||||
arrivalDelay: null,
|
||||
departure: '2017-12-17T19:52:00.000+01:00',
|
||||
departureDelay: null
|
||||
}, {
|
||||
station: { /* Memhardstr. */ },
|
||||
stop: { /* Memhardstr. */ },
|
||||
arrival: '2017-12-17T19:54:00.000+01:00',
|
||||
arrivalDelay: null,
|
||||
departure: '2017-12-17T19:54:00.000+01:00',
|
||||
|
|
|
@ -15,7 +15,7 @@ const createParseArrOrDep = (profile, opt, data, prefix) => {
|
|||
|
||||
const res = {
|
||||
tripId: d.jid,
|
||||
station: locations[parseInt(d.stbStop.locX)] || null,
|
||||
stop: locations[parseInt(d.stbStop.locX)] || null,
|
||||
when: when.toISO(),
|
||||
direction: profile.parseStationName(d.dirTxt),
|
||||
line: lines[parseInt(d.prodX)] || null,
|
||||
|
|
Loading…
Add table
Reference in a new issue