From 96f9f93957910887a7d7f0564088056a3f98907e Mon Sep 17 00:00:00 2001 From: Jannis R Date: Fri, 22 Jun 2018 13:38:47 +0200 Subject: [PATCH] parseStopover: arrivalPlatform, departurePlatform --- parse/stopover.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parse/stopover.js b/parse/stopover.js index 52f69b17..0264c321 100644 --- a/parse/stopover.js +++ b/parse/stopover.js @@ -1,15 +1,15 @@ 'use strict' -// todo: arrivalDelay, departureDelay or only delay ? -// todo: arrivalPlatform, departurePlatform const createParseStopover = (profile, stations, lines, remarks, date) => { const parseStopover = (st) => { const res = { station: stations[parseInt(st.locX)] || null, arrival: null, arrivalDelay: null, + arrivalPlatform: st.aPlatfR || st.aPlatfS || null, departure: null, - departureDelay: null + departureDelay: null, + departurePlatform: st.dPlatfR || st.dPlatfS || null } // todo: DRY with parseDeparture