Skip to content

Commit

Permalink
remove leftover code 👕
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Mar 4, 2018
1 parent 8ae3fe2 commit 084fed7
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,42 +159,6 @@ const createClient = (profile, request = _request) => {
}

return more(opt.when, journeysRef)

// const query = profile.transformJourneysQuery({
// outDate: profile.formatDate(profile, opt.when),
// outTime: profile.formatTime(profile, opt.when),
// ctxScr: journeysRef,
// numF: opt.results,
// getPasslist: !!opt.passedStations,
// maxChg: opt.transfers,
// minChgTime: opt.transferTime,
// depLocL: [from],
// viaLocL: opt.via ? [{loc: opt.via}] : null,
// arrLocL: [to],
// jnyFltrL: filters,
// getTariff: !!opt.tickets,

// // todo: what is req.gisFltrL?
// getPT: true, // todo: what is this?
// outFrwd: true, // todo: what is this?
// getIV: false, // todo: walk & bike as alternatives?
// getPolyline: false // todo: shape for displaying on a map?
// }, opt)

// return request(profile, {
// cfg: {polyEnc: 'GPA'},
// meth: 'TripSearch',
// req: query
// })
// .then((d) => {
// if (!Array.isArray(d.outConL)) return []
// const parse = profile.parseJourney(profile, d.locations, d.lines, d.remarks)
// const res = d.outConL.map(parse)

// if (d.outCtxScrB) res.earlierRef = d.outCtxScrB
// if (d.outCtxScrF) res.laterRef = d.outCtxScrF
// return res
// })
}

const locations = (query, opt = {}) => {
Expand Down

0 comments on commit 084fed7

Please sign in to comment.