parseJourneyLeg: parse jny.poly 🐛

fixes #186
This commit is contained in:
Jannis R 2020-07-26 13:20:15 +02:00
parent a4dd763a46
commit f9bfd6918a
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -66,6 +66,8 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
if (pt.jny && pt.jny.polyline) {
res.polyline = pt.jny.polyline || null
} else if (pt.jny && pt.jny.poly) {
res.polyline = profile.parsePolyline(ctx, pt.jny.poly)
}
if (pt.type === 'WALK' || pt.type === 'TRSF' || pt.type === 'DEVI') {