leg.mode: 'walking' -> leg.walking: true 💥

This commit is contained in:
Jannis R 2019-02-01 14:54:33 +01:00
parent a972dad7b8
commit 0e1fcb0c99
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -80,8 +80,8 @@ const createParseJourneyLeg = (profile, opt, data) => {
}
if (pt.type === 'WALK' || pt.type === 'TRSF') {
res.mode = 'walking'
res.public = true
res.walking = true
res.distance = pt.gis && pt.gis.dist || null
if (pt.type === 'TRSF') res.transfer = true