mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
fix reachable for walking legs
This commit is contained in:
parent
f04b5416e4
commit
9078d2d25a
1 changed files with 5 additions and 2 deletions
|
@ -55,8 +55,11 @@ const createParseJourneyLeg = (profile, opt, data) => {
|
|||
origin: clone(locations[parseInt(pt.dep.locX)]) || null,
|
||||
destination: clone(locations[parseInt(pt.arr.locX)]),
|
||||
departure: dep,
|
||||
arrival: arr,
|
||||
reachable: !!pt.jny.isRchbl
|
||||
arrival: arr
|
||||
}
|
||||
|
||||
if (pt.jny) {
|
||||
res.reachable = !!pt.jny.isRchbl
|
||||
}
|
||||
|
||||
// todo: DRY with parseDeparture
|
||||
|
|
Loading…
Add table
Reference in a new issue