From d69d2530ef2b62c833eaaff6ea390fc18c49a7e7 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 14 Jan 2021 23:34:37 +0100 Subject: [PATCH] add remarksGetPolyline profile flag --- format/remarks-req.js | 2 +- lib/default-profile.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/format/remarks-req.js b/format/remarks-req.js index a1bfec72..cd122ac7 100644 --- a/format/remarks-req.js +++ b/format/remarks-req.js @@ -10,9 +10,9 @@ const formatRemarksReq = (ctx) => { } const req = { - getPolyline: !!opt.polylines, himFltrL, } + if (profile.remarksGetPolyline) req.getPolyline = !!opt.polylines // todo: stLoc, dirLoc // todo: comp, dept, onlyHimId, onlyToday // todo: dailyB, dailyE diff --git a/lib/default-profile.js b/lib/default-profile.js index 33f6d743..cc3ba885 100644 --- a/lib/default-profile.js +++ b/lib/default-profile.js @@ -112,6 +112,7 @@ const defaultProfile = { refreshJourneyUseOutReconL: false, tripsByName: true, remarks: true, + remarksGetPolyline: true, // `remarks()` method: support for `getPolyline` field? lines: true, }