hafas-find-departures-duration-limit

1.1.0 • Public • Published

hafas-find-departures-duration-limit

Find the duration limit of a HAFAS endpoint's departures method.

npm version ISC-licensed minimum Node.js version support me via GitHub Sponsors chat with me on Twitter

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.

Readme

Keywords

Package Sidebar

Install

npm i hafas-find-departures-duration-limit

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

5.63 kB

Total Files

5

Last publish

Collaborators

  • derhuerst