mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
journeys: let opt.transfers default to -1 💥 📝
This commit is contained in:
parent
a1c40ad084
commit
61e7d14531
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ With `opt`, you can override the default options, which look like this:
|
|||
results: 5, // how many journeys?
|
||||
via: null, // let journeys pass this station
|
||||
stopovers: false, // return stations on the way?
|
||||
transfers: 5, // maximum of 5 transfers
|
||||
transfers: -1, // Maximum nr of transfers. Default: Let HAFAS decide.
|
||||
transferTime: 0, // minimum time for a single transfer in minutes
|
||||
accessibility: 'none', // 'none', 'partial' or 'complete'
|
||||
bike: false, // only bike-friendly journeys
|
||||
|
|
2
index.js
2
index.js
|
@ -140,7 +140,7 @@ const createClient = (profile, userAgent, request = _request) => {
|
|||
results: 5, // how many journeys?
|
||||
via: null, // let journeys pass this station?
|
||||
stopovers: false, // return stations on the way?
|
||||
transfers: 5, // maximum of 5 transfers
|
||||
transfers: -1, // maximum of 5 transfers
|
||||
transferTime: 0, // minimum time for a single transfer in minutes
|
||||
// todo: does this work with every endpoint?
|
||||
accessibility: 'none', // 'none', 'partial' or 'complete'
|
||||
|
|
Loading…
Add table
Reference in a new issue