parse leg remarks even if it is a walking leg 🐛

This commit is contained in:
Jannis R 2018-07-16 12:18:23 +02:00
parent 36b24e27e4
commit 9c1c2f51e5
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -81,6 +81,10 @@ const createParseJourneyLeg = (profile, opt, data) => {
res.public = true res.public = true
res.distance = pt.gis && pt.gis.dist || null res.distance = pt.gis && pt.gis.dist || null
if (pt.type === 'TRSF') res.transfer = true 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') { } else if (pt.type === 'JNY') {
// todo: pull `public` value from `profile.products` // todo: pull `public` value from `profile.products`
res.id = pt.jny.jid res.id = pt.jny.jid