parse TRSF legs as walking 🐛, add todos

This commit is contained in:
Jannis R 2018-07-02 16:49:21 +02:00
parent d9b7df693a
commit 2f40c20175
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -38,11 +38,10 @@ const createParseJourneyLeg = (profile, opt, data) => {
const {locations, lines, hints, warnings, polylines} = data const {locations, lines, hints, warnings, polylines} = data
// todo: pt.status // todo: pt.status
// todo: pt.status, pt.isPartCncl // todo: pt.status, pt.isPartCncl
// todo: pt.isRchbl, pt.chRatingRT, pt.chgDurR, pt.minChg
// todo: pt.sDays // todo: pt.sDays
// todo: pt.dep.dProgType, pt.arr.dProgType // todo: pt.dep.dProgType, pt.arr.dProgType
// todo: what is pt.jny.dirFlg? // todo: what is pt.jny.dirFlg?
// todo: how does pt.freq work?
// todo: what is pt.himL?
// j = journey, pt = part // j = journey, pt = part
// todo: pt.planrtTS // todo: pt.planrtTS
@ -77,7 +76,7 @@ const createParseJourneyLeg = (profile, opt, data) => {
res.polyline = p && parse(p) || null res.polyline = p && parse(p) || null
} }
if (pt.type === 'WALK') { if (pt.type === 'WALK' || pt.type === 'TRSF') {
res.mode = 'walking' res.mode = 'walking'
res.public = true res.public = true
res.distance = pt.gis && pt.gis.dist || null res.distance = pt.gis && pt.gis.dist || null