mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
put more todos
This commit is contained in:
parent
43b4a6e6d9
commit
9ce72930b1
2 changed files with 5 additions and 2 deletions
5
index.js
5
index.js
|
@ -57,7 +57,8 @@ const createClient = (profile, userAgent, request = _request) => {
|
|||
}
|
||||
|
||||
opt = Object.assign({
|
||||
direction: null, // only show departures heading to this station
|
||||
// todo: for arrivals(), this is actually a station it *has already* stopped by
|
||||
direction: null, // only show departures stopping by this station
|
||||
duration: 10, // show departures for the next n minutes
|
||||
linesOfStops: false, // parse & expose lines at the stop/station?
|
||||
remarks: true, // parse & expose hints & warnings?
|
||||
|
@ -201,6 +202,8 @@ const createClient = (profile, userAgent, request = _request) => {
|
|||
jnyFltrL: filters,
|
||||
getTariff: !!opt.tickets,
|
||||
outFrwd,
|
||||
// todo: this is actually "take additional stations nearby the given start and destination station into account"
|
||||
// see rest.exe docs
|
||||
ushrp: !!opt.startWithWalking,
|
||||
|
||||
// todo: what is req.gisFltrL?
|
||||
|
|
|
@ -26,7 +26,7 @@ const parseLocation = (profile, opt, {lines}, l) => {
|
|||
type: l.isMainMast ? 'station' : 'stop',
|
||||
id: res.id,
|
||||
name: l.name ? profile.parseStationName(l.name) : null,
|
||||
location: 'number' === typeof res.latitude ? res : null
|
||||
location: 'number' === typeof res.latitude ? res : null // todo: remove `.id`
|
||||
}
|
||||
|
||||
if ('pCls' in l) stop.products = profile.parseProducts(l.pCls)
|
||||
|
|
Loading…
Add table
Reference in a new issue