From ef058bdebabb37c99394b485c6e696d2d77c3b65 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 21 Jan 2019 22:32:45 +0800 Subject: [PATCH] /journeys docs: update parameters list :memo: --- docs/index.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/index.md b/docs/index.md index cb890cb..bb1c8bb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -109,7 +109,9 @@ Output from [`require('db-hafas').journeys(…)`](https://github.com/derhuerst/d ## other parameters -- `when`: A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time) or anything parsable by [`parse-messy-time`](https://github.com/substack/parse-messy-time#example). Default: now. +- `departure`/`arrival`: A [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time) or anything parsable by [`parse-messy-time`](https://github.com/substack/parse-messy-time#example). Default: now. Use either `departure` or `arrival`. +- `earlierThan`: By passing an identifier from another query, get earlier journeys than before. Mutually exlusive with `laterThan`, `departure` & `arrival`. +- `laterThan`: By passing an identifier from another query, get later journeys than before. Mutually exclusive with `earlierThan`, `departure` & `arrival`. - `results`: Maximum number of results. Default: `5`. - `via`: Station ID. Default: `null`. - `stopovers`: Return stations on the way? Default: `false`. @@ -118,17 +120,14 @@ Output from [`require('db-hafas').journeys(…)`](https://github.com/derhuerst/d - `accessibility`: Possible values: `partial`, `complete`. Default: `none`. - `bike`: Return only bike-friendly journeys. Default: `false`. - `tickets`: Return information about available tickets. Default: `false`. +- `language`: Language to get results in. Default: `en`. +- `polylines`: Return a shape for each leg? Default: `false`. +- `remarks`: Parse & expose hints & warnings? Default: `true`. +- `startWithWalking`: Consider walking to nearby stations at the beginning of a journey? Default: `true`. +- `scheduledDays`: Parse which days each journey is valid on? Default: `false`. + +You can filter by means of transportation using these parameters: -taxi -tram -bus -ferry -subway -suburban -regional -regionalExp -national -nationalExp - `taxi`: Include taxis? Default: `false`. - `tram`: Include [trams](https://en.wikipedia.org/wiki/Tram)? Default: `true`. - `ferry`: Include [ferries](https://en.wikipedia.org/wiki/Ferry)? Default: `true`.