hafas-find-departures-duration-limit
Find the duration limit of a HAFAS endpoint's departures method.
Given a hafas-client@5
-compatible HAFAS client and a stop/station ID, hafas-find-departures-duration-limit
tries to find the largest duration that the HAFAS endpoint can return departures/arrivals for.
Installation
npm install hafas-find-departures-duration-limit
Usage
const createHafasClient = require('hafas-client')
const bvgProfile = require('hafas-client/p/bvg')
const findDurLimit = require('hafas-find-departures-duration-limit')
const mehringdamm = '900000017101'
const hafas = createHafasClient(
bvgProfile,
'hafas-find-departures-duration-limit example',
)
await findDurLimit(hafas, mehringdamm) // 1920
Contributing
If you have a question or need support using hafas-generate-gtfs
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use the issues page.