From 04d550f80c3f76aa8e07388c76efe3871025022b Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 2 Jul 2018 16:49:21 +0200 Subject: [PATCH] parse `TRSF` legs as `walking` :bug: cherry-picked 2f40c20 from next --- parse/journey-leg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/journey-leg.js b/parse/journey-leg.js index f0c33b4b..06ba7f86 100644 --- a/parse/journey-leg.js +++ b/parse/journey-leg.js @@ -43,7 +43,7 @@ const createParseJourneyLeg = (profile, stations, lines, remarks, polylines) => res.polyline = p && p.crdEncYX || null } - if (pt.type === 'WALK') { + if (pt.type === 'WALK' || pt.type === 'TRSF') { res.mode = 'walking' res.public = true res.distance = pt.gis && pt.gis.dist || null