parseMovement: expose journey (leg) id

This commit is contained in:
Jannis R 2018-05-16 19:30:09 +02:00
parent a97e0d31e7
commit 48f2cefb5b
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -12,6 +12,7 @@ const createParseMovement = (profile, locations, lines, remarks, polylines = [])
const res = {
direction: profile.parseStationName(m.dirTxt),
journeyId: m.jid || null,
trip: m.jid && +m.jid.split('|')[1] || null, // todo: this seems brittle
line: lines[m.prodX] || null,
location: m.pos ? {