parse TRSF legs as walking 🐛

cherry-picked 2f40c20 from next
This commit is contained in:
Jannis R 2018-07-02 16:49:21 +02:00
parent 8923bcb619
commit 04d550f80c
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -43,7 +43,7 @@ const createParseJourneyLeg = (profile, stations, lines, remarks, polylines) =>
res.polyline = p && p.crdEncYX || 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