From 458d6a77afd02aa29e2574bfa97ce4d8c95613c9 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 26 Jan 2021 22:10:44 +0100 Subject: [PATCH] refetchJourney/reachableFrom/remarks: make opt.polylines explicit --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 98bcf61a..a3858511 100644 --- a/index.js +++ b/index.js @@ -239,7 +239,7 @@ const createClient = (profile, userAgent, opt = {}) => { opt = Object.assign({ stopovers: false, // return stations on the way? tickets: false, // return tickets? - polylines: false, // return leg shapes? + polylines: false, // return leg shapes? (not supported by all endpoints) subStops: true, // parse & expose sub-stops of stations? entrances: true, // parse & expose entrances of stops/stations? remarks: true // parse & expose hints & warnings? @@ -435,6 +435,7 @@ const createClient = (profile, userAgent, opt = {}) => { products: {}, subStops: true, // parse & expose sub-stops of stations? entrances: true, // parse & expose entrances of stops/stations? + polylines: false, // return leg shapes? }, opt) if (Number.isNaN(+opt.when)) throw new TypeError('opt.when is invalid') @@ -483,6 +484,7 @@ const createClient = (profile, userAgent, opt = {}) => { from: Date.now(), to: null, products: null, // filter by affected products + polylines: false, // return leg shapes? (not supported by all endpoints) ...opt }