journeys: let opt.transfers default to -1 💥 📝

This commit is contained in:
Jannis R 2019-01-23 12:51:54 +08:00
parent a1c40ad084
commit 61e7d14531
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ With `opt`, you can override the default options, which look like this:
results: 5, // how many journeys? results: 5, // how many journeys?
via: null, // let journeys pass this station via: null, // let journeys pass this station
stopovers: false, // return stations on the way? 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 transferTime: 0, // minimum time for a single transfer in minutes
accessibility: 'none', // 'none', 'partial' or 'complete' accessibility: 'none', // 'none', 'partial' or 'complete'
bike: false, // only bike-friendly journeys bike: false, // only bike-friendly journeys

View file

@ -140,7 +140,7 @@ const createClient = (profile, userAgent, request = _request) => {
results: 5, // how many journeys? results: 5, // how many journeys?
via: null, // let journeys pass this station? via: null, // let journeys pass this station?
stopovers: false, // return stations on the way? 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 transferTime: 0, // minimum time for a single transfer in minutes
// todo: does this work with every endpoint? // todo: does this work with every endpoint?
accessibility: 'none', // 'none', 'partial' or 'complete' accessibility: 'none', // 'none', 'partial' or 'complete'