From 48f2cefb5b2b65a5f84f5c499835c3315ab67322 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 16 May 2018 19:30:09 +0200 Subject: [PATCH] parseMovement: expose journey (leg) id --- parse/movement.js | 1 + 1 file changed, 1 insertion(+) diff --git a/parse/movement.js b/parse/movement.js index e2efdf5c..7999eb52 100644 --- a/parse/movement.js +++ b/parse/movement.js @@ -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 ? {