diff --git a/index.js b/index.js index 8ac603e7..d86414ba 100644 --- a/index.js +++ b/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? diff --git a/parse/location.js b/parse/location.js index 67a32537..e82df7eb 100644 --- a/parse/location.js +++ b/parse/location.js @@ -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)