From 275176fd94f5292eb45a8c2b5a13af7d919b0234 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Fri, 17 Dec 2021 22:48:21 +0100 Subject: [PATCH] WIP --- index.js | 3 +++ parse/pid-filters-tree.js | 1 + 2 files changed, 4 insertions(+) diff --git a/index.js b/index.js index 3f14c4882..765916b7a 100644 --- a/index.js +++ b/index.js @@ -524,6 +524,9 @@ const createClient = (profile, userAgent, opt = {}) => { onlyCR: opt.onlyCurrentlyRunning, jnyFltrL: [ profile.formatProductsFilter({profile}, opt.products), + // these don't work: + // {mode: 'INC', type: 'ROUTE', value: 'R::10::Schiff::B3012287613::de:aac:05358|obersee:rs::1'}, + // {mode: 'INC', type: 'CAT', value: 'G::4::Fähre::B*::*::*'}, ], // todo: passing `tripId` yields a `CGI_READ_FAILED` error // todo: passing a stop ID as `extId` yields a `PARAMETER` error diff --git a/parse/pid-filters-tree.js b/parse/pid-filters-tree.js index 217d2c6dd..dc341503a 100644 --- a/parse/pid-filters-tree.js +++ b/parse/pid-filters-tree.js @@ -27,6 +27,7 @@ const parsePidFiltersTree = (ctx, jnyTreeNodeL) => { // todo [breaking]: rename field? // todo: parse differently? most tree nodes have a sparse common.prodL[_.prodX] product: _.line, + // nrOfTrips: _.stat ? _.stat.cnt : null, // todo: is this wrong // todo: _.icon? } parsedNodes.set(_, node)