mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
departures/arrivals: let results default to null
https://github.com/public-transport/hafas-client/pull/171#discussion_r397402352
This commit is contained in:
parent
9c4189a874
commit
0699d4d22e
2 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@ With `opt`, you can override the default options, which look like this:
|
||||||
when: new Date(),
|
when: new Date(),
|
||||||
direction: null, // only show departures heading to this station
|
direction: null, // only show departures heading to this station
|
||||||
duration: 10, // show departures for the next n minutes
|
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?
|
linesOfStops: false, // parse & expose lines at the stop/station?
|
||||||
remarks: true, // parse & expose hints & warnings?
|
remarks: true, // parse & expose hints & warnings?
|
||||||
stopovers: false, // fetch & parse previous/next stopovers?
|
stopovers: false, // fetch & parse previous/next stopovers?
|
||||||
|
|
2
index.js
2
index.js
|
@ -51,7 +51,7 @@ const createClient = (profile, userAgent, opt = {}) => {
|
||||||
// todo: for arrivals(), this is actually a station it *has already* stopped by
|
// todo: for arrivals(), this is actually a station it *has already* stopped by
|
||||||
direction: null, // only show departures stopping by this station
|
direction: null, // only show departures stopping by this station
|
||||||
duration: 10, // show departures for the next n minutes
|
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?
|
linesOfStops: false, // parse & expose lines at the stop/station?
|
||||||
remarks: true, // parse & expose hints & warnings?
|
remarks: true, // parse & expose hints & warnings?
|
||||||
stopovers: false, // fetch & parse previous/next stopovers?
|
stopovers: false, // fetch & parse previous/next stopovers?
|
||||||
|
|
Loading…
Add table
Reference in a new issue