From c6b7aa74ddef57c5531623b95f6f70333368f34f Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 25 Sep 2018 20:19:06 +0200 Subject: [PATCH] VBB supports numF again --- index.js | 5 ++--- p/vbb/index.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 15e6f612..41784915 100644 --- a/index.js +++ b/index.js @@ -169,12 +169,11 @@ const createClient = (profile, userAgent, request = _request) => { filters.push(profile.filters.accessibility[opt.accessibility]) } - // With protocol version `1.16`, the VBB endpoint fails with + // With protocol version `1.16`, the VBB endpoint *used to* fail with // `CGI_READ_FAILED` if you pass `numF`, the parameter for the number // of results. To circumvent this, we loop here, collecting journeys // until we have enough. - // see https://github.com/public-transport/hafas-client/pull/23#issuecomment-370246163 - // todo: check if `numF` is supported again, revert this change + // todo: revert this change, see https://github.com/public-transport/hafas-client/issues/76#issuecomment-424448449 const journeys = [] const more = (when, journeysRef) => { const query = { diff --git a/p/vbb/index.js b/p/vbb/index.js index fbcb1b81..973b3c59 100644 --- a/p/vbb/index.js +++ b/p/vbb/index.js @@ -141,7 +141,7 @@ const vbbProfile = { formatStation, - journeysNumF: false, + journeysNumF: true, trip: true, radar: true, reachableFrom: true