VBB supports numF again

This commit is contained in:
Jannis R 2018-09-25 20:19:06 +02:00
parent 129caa704f
commit c6b7aa74dd
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 3 additions and 4 deletions

View file

@ -169,12 +169,11 @@ const createClient = (profile, userAgent, request = _request) => {
filters.push(profile.filters.accessibility[opt.accessibility]) 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 // `CGI_READ_FAILED` if you pass `numF`, the parameter for the number
// of results. To circumvent this, we loop here, collecting journeys // of results. To circumvent this, we loop here, collecting journeys
// until we have enough. // until we have enough.
// see https://github.com/public-transport/hafas-client/pull/23#issuecomment-370246163 // todo: revert this change, see https://github.com/public-transport/hafas-client/issues/76#issuecomment-424448449
// todo: check if `numF` is supported again, revert this change
const journeys = [] const journeys = []
const more = (when, journeysRef) => { const more = (when, journeysRef) => {
const query = { const query = {

View file

@ -141,7 +141,7 @@ const vbbProfile = {
formatStation, formatStation,
journeysNumF: false, journeysNumF: true,
trip: true, trip: true,
radar: true, radar: true,
reachableFrom: true reachableFrom: true