From 2f40c20175b92f92711f08b7248d08c7353faba7 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:, add todos --- parse/journey-leg.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/parse/journey-leg.js b/parse/journey-leg.js index 5d740b86..32bb4b84 100644 --- a/parse/journey-leg.js +++ b/parse/journey-leg.js @@ -38,11 +38,10 @@ const createParseJourneyLeg = (profile, opt, data) => { const {locations, lines, hints, warnings, polylines} = data // todo: pt.status // todo: pt.status, pt.isPartCncl + // todo: pt.isRchbl, pt.chRatingRT, pt.chgDurR, pt.minChg // todo: pt.sDays // todo: pt.dep.dProgType, pt.arr.dProgType // todo: what is pt.jny.dirFlg? - // todo: how does pt.freq work? - // todo: what is pt.himL? // j = journey, pt = part // todo: pt.planrtTS @@ -77,7 +76,7 @@ const createParseJourneyLeg = (profile, opt, data) => { res.polyline = p && parse(p) || 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