From 1551943fdb4481dc1f22bb33e670d14ae07d0b7c Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 10 Jul 2018 18:59:54 +0200 Subject: [PATCH] option: departures/arrivals at related stations With default `true` - because it seems to be the sensible default configuration - to stay backwards-compatible --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 752b2b6f..5175cdd0 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,10 @@ const createClient = (profile, request = _request) => { direction: null, // only show departures heading to this station duration: 10, // show departures for the next n minutes stationLines: false, // parse & expose lines of the station? - remarks: true // parse & expose hints & warnings? + remarks: true, // parse & expose hints & warnings? + // departures at related stations + // e.g. those that belong together on the metro map. + includeRelatedStations: true }, opt) opt.when = new Date(opt.when || Date.now()) if (Number.isNaN(+opt.when)) throw new Error('opt.when is invalid') @@ -52,7 +55,8 @@ const createClient = (profile, request = _request) => { dirLoc: dir, jnyFltrL: [products], dur: opt.duration, - getPasslist: false // todo: what is this? + getPasslist: false, // todo: what is this? + stbFltrEquiv: !opt.includeRelatedStations } }) .then((d) => {