departures/arrivals: let results default to null

https://github.com/public-transport/hafas-client/pull/171#discussion_r397402352
This commit is contained in:
Jannis R 2020-03-25 21:54:38 +01:00 committed by Jannis Redmann
parent 9c4189a874
commit 0699d4d22e
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@ With `opt`, you can override the default options, which look like this:
when: new Date(),
direction: null, // only show departures heading to this station
duration: 10, // show departures for the next n minutes
results: null, // max. number of results; `null` means "whatever HAFAS wants"
linesOfStops: false, // parse & expose lines at the stop/station?
remarks: true, // parse & expose hints & warnings?
stopovers: false, // fetch & parse previous/next stopovers?

View file

@ -51,7 +51,7 @@ const createClient = (profile, userAgent, opt = {}) => {
// todo: for arrivals(), this is actually a station it *has already* stopped by
direction: null, // only show departures stopping by this station
duration: 10, // show departures for the next n minutes
results: 50, // max. number of results `null` means "whatever HAFAS wants"
results: null, // max. number of results; `null` means "whatever HAFAS wants"
linesOfStops: false, // parse & expose lines at the stop/station?
remarks: true, // parse & expose hints & warnings?
stopovers: false, // fetch & parse previous/next stopovers?