mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
update validate-fptf 🐛, expose movement trip, add more todos
This commit is contained in:
parent
09fc50f5b3
commit
b0157c75d5
3 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,7 @@
|
|||
"tap-spec": "^4.1.1",
|
||||
"tape": "^4.8.0",
|
||||
"tape-promise": "^2.0.1",
|
||||
"validate-fptf": "^1.0.1",
|
||||
"validate-fptf": "^1.0.2",
|
||||
"vbb-parse-line": "^0.2.5",
|
||||
"vbb-stations-autocomplete": "^2.9.0"
|
||||
},
|
||||
|
|
|
@ -21,6 +21,7 @@ const createParseDeparture = (profile, stations, lines, remarks) => {
|
|||
remarks: d.remL ? d.remL.map(findRemark) : [],
|
||||
trip: +d.jid.split('|')[1] // todo: this seems brittle
|
||||
}
|
||||
// todo: res.trip from rawLine.prodCtx.num
|
||||
|
||||
if (d.stbStop.dTimeR && d.stbStop.dTimeS) {
|
||||
const realtime = profile.parseDateTime(profile, d.date, d.stbStop.dTimeR)
|
||||
|
|
|
@ -26,6 +26,7 @@ const createParseMovement = (profile, locations, lines, remarks) => {
|
|||
|
||||
const res = {
|
||||
direction: profile.parseStationName(m.dirTxt),
|
||||
trip: m.jid && +m.jid.split('|')[1] || null, // todo: this seems brittle
|
||||
line: lines[m.prodX] || null,
|
||||
location: m.pos ? {
|
||||
type: 'location',
|
||||
|
|
Loading…
Add table
Reference in a new issue