From 9c1c2f51e5310216a6125b055cb816430b9acba5 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 16 Jul 2018 12:18:23 +0200 Subject: [PATCH] parse leg remarks even if it is a walking leg :bug: --- parse/journey-leg.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parse/journey-leg.js b/parse/journey-leg.js index 95f02324..e6f2a2e4 100644 --- a/parse/journey-leg.js +++ b/parse/journey-leg.js @@ -81,6 +81,10 @@ const createParseJourneyLeg = (profile, opt, data) => { res.public = true res.distance = pt.gis && pt.gis.dist || null if (pt.type === 'TRSF') res.transfer = true + + if (opt.remarks && Array.isArray(pt.gis.msgL)) { + applyRemarks(res, hints, warnings, pt.gis.msgL) + } } else if (pt.type === 'JNY') { // todo: pull `public` value from `profile.products` res.id = pt.jny.jid