mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
journeys collection as an option
This commit is contained in:
parent
95833edd21
commit
0c3e3cb0cf
3 changed files with 3 additions and 1 deletions
2
index.js
2
index.js
|
@ -113,7 +113,6 @@ const createClient = (profile, request = _request) => {
|
|||
outDate: profile.formatDate(profile, when),
|
||||
outTime: profile.formatTime(profile, when),
|
||||
ctxScr: journeysRef,
|
||||
// numF: opt.results,
|
||||
getPasslist: !!opt.passedStations,
|
||||
maxChg: opt.transfers,
|
||||
minChgTime: opt.transferTime,
|
||||
|
@ -129,6 +128,7 @@ const createClient = (profile, request = _request) => {
|
|||
getIV: false, // todo: walk & bike as alternatives?
|
||||
getPolyline: false // todo: shape for displaying on a map?
|
||||
}
|
||||
if (profile.journeysNumF) query.numF = opt.results
|
||||
|
||||
return request(profile, {
|
||||
cfg: {polyEnc: 'GPA'},
|
||||
|
|
|
@ -59,6 +59,7 @@ const defaultProfile = {
|
|||
formatRectangle,
|
||||
filters,
|
||||
|
||||
journeysNumF: true, // `journeys()` method: support for `numF` field
|
||||
journeyLeg: false,
|
||||
radar: false
|
||||
}
|
||||
|
|
|
@ -189,6 +189,7 @@ const vbbProfile = {
|
|||
formatStation,
|
||||
formatProducts,
|
||||
|
||||
journeysNumF: false,
|
||||
journeyLeg: true,
|
||||
radar: true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue