mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
parse leg remarks even if it is a walking leg 🐛
This commit is contained in:
parent
36b24e27e4
commit
9c1c2f51e5
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue