From 6da1e80ef22f41130f8a8d7e427156a923e8ebaa Mon Sep 17 00:00:00 2001 From: Julius Tens Date: Mon, 3 Jun 2019 17:51:37 +0200 Subject: [PATCH] add leg.reachable --- parse/journey-leg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse/journey-leg.js b/parse/journey-leg.js index 30ef3b57..69952820 100644 --- a/parse/journey-leg.js +++ b/parse/journey-leg.js @@ -55,7 +55,8 @@ const createParseJourneyLeg = (profile, opt, data) => { origin: clone(locations[parseInt(pt.dep.locX)]) || null, destination: clone(locations[parseInt(pt.arr.locX)]), departure: dep, - arrival: arr + arrival: arr, + reachable: !!pt.jny.isRchbl } // todo: DRY with parseDeparture