mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
transfer flag for walking legs
[ci skip]
This commit is contained in:
parent
a34999b1c5
commit
2a6f1f9183
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue