diff --git a/docs/journeys.md b/docs/journeys.md index 7d1f81a1..5824e7fb 100644 --- a/docs/journeys.md +++ b/docs/journeys.md @@ -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 diff --git a/index.js b/index.js index 0547b497..fb5dc824 100644 --- a/index.js +++ b/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'