add leg.reachable

This commit is contained in:
Julius Tens 2019-06-03 17:51:37 +02:00 committed by Jannis Redmann
parent 965e1f9986
commit 6da1e80ef2

View file

@ -55,7 +55,8 @@ const createParseJourneyLeg = (profile, opt, data) => {
origin: clone(locations[parseInt(pt.dep.locX)]) || null, origin: clone(locations[parseInt(pt.dep.locX)]) || null,
destination: clone(locations[parseInt(pt.arr.locX)]), destination: clone(locations[parseInt(pt.arr.locX)]),
departure: dep, departure: dep,
arrival: arr arrival: arr,
reachable: !!pt.jny.isRchbl
} }
// todo: DRY with parseDeparture // todo: DRY with parseDeparture