put more todos

This commit is contained in:
Jannis R 2019-10-28 17:42:33 +01:00
parent 43b4a6e6d9
commit 9ce72930b1
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 5 additions and 2 deletions

View file

@ -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?

View file

@ -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)