transfer flag for walking legs

[ci skip]
This commit is contained in:
Jannis R 2018-07-05 12:13:29 +02:00
parent a34999b1c5
commit 2a6f1f9183
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -80,6 +80,7 @@ const createParseJourneyLeg = (profile, opt, data) => {
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
if (pt.type === 'TRSF') res.transfer = true
} 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