Open derhuerst opened 6 years ago
leg.mode = 'walking'
implies that leg.mode
always contains the mode of the line of the leg, but it doesn't. – 02c95ffleg.id
to leg.tripId
– 8e0b334line.productCode
– 8dd4ef5line.class
– 8dd4ef5station(id)
to stop(id)
– 94fb64dparseFormat
/formatDate
/formatTime
: (profile, ...) => {}
-> (profile) => (...) => {}
profile.journeysNumF
(51f4a66) – nationalExp
-> nationalExpress
– c13138cformerScheduled{Arrival|Departure}Platform
-> scheduled{Arrival|Departure}Platform
– 969c045movement.nextStops
-> movement.nextStopovers
– b4d763fmovement.trip
movement.trip
-> movement.fahrtNr
leg.mode
(from FPTF) vs leg.line.mode
leg.public
(from FPTF) vs leg.line.public
leg.operator
(from FPTF) vs leg.line.operator
locations
: rename opt.stations
to opt.stops
profile.formatStation
/profile.parseStation
-> profile.formatStop
/profile.parseStop
opt.stationLines
-> opt.linesOfStops
trip.line.fahrtNr
-> trip.fahrtNr
, leg.line.fahrtNr
-> leg.fahrtNr
trip.name
to differentiate it from trip.line.name
movement.location
-> movement.position
profile = {...defaultProfile, ...profile}
from index.js
/throttle.js
/retry.js
to p/*/index.js
departure.trip
&movement.trip
– They have a confusing name and may not even be the trip nr all the time. – 1269773splitdeparture.line
intodep.trip
&dep.trip.line
–dep.line.id
/arr.line.id
&dep.line.fahrtNr
/arr.line.fahrtNr
don't make sense.id
(as it currently is) andfahrtNr
are properties of the trip/vehicle, not the line.renamejourney.refreshToken
tojourney.id