mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
journeys: don't send outDate/outTime & ctxScr
This commit is contained in:
parent
fea27d3a4a
commit
d2314e0d40
1 changed files with 5 additions and 3 deletions
8
index.js
8
index.js
|
@ -182,9 +182,6 @@ const createClient = (profile, userAgent, opt = {}) => {
|
|||
let earlierRef = null, laterRef = null
|
||||
const more = (when, journeysRef) => {
|
||||
const query = {
|
||||
outDate: profile.formatDate(profile, when),
|
||||
outTime: profile.formatTime(profile, when),
|
||||
ctxScr: journeysRef,
|
||||
getPasslist: !!opt.stopovers,
|
||||
maxChg: opt.transfers,
|
||||
minChgTime: opt.transferTime,
|
||||
|
@ -204,6 +201,11 @@ const createClient = (profile, userAgent, opt = {}) => {
|
|||
// todo: `getConGroups: false` what is this?
|
||||
// todo: what is getEco, fwrd?
|
||||
}
|
||||
if (journeysRef) query.ctxScr = journeysRef
|
||||
else {
|
||||
query.outDate = profile.formatDate(profile, when)
|
||||
query.outTime = profile.formatTime(profile, when)
|
||||
}
|
||||
if (profile.journeysNumF && opt.results !== null) query.numF = opt.results
|
||||
if (profile.journeysOutFrwd) query.outFrwd = outFrwd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue