mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
add todos
This commit is contained in:
parent
674e4a5fe6
commit
e79a371dde
4 changed files with 4 additions and 0 deletions
|
@ -154,6 +154,7 @@ const formatStation = (id) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// use the Berlkönig ride sharing service?
|
// use the Berlkönig ride sharing service?
|
||||||
|
// todo: https://github.com/alexander-albers/tripkit/issues/26#issuecomment-825437320
|
||||||
const requestJourneysWithBerlkoenig = ({opt}, query) => {
|
const requestJourneysWithBerlkoenig = ({opt}, query) => {
|
||||||
if (('numF' in query) && opt.berlkoenig) {
|
if (('numF' in query) && opt.berlkoenig) {
|
||||||
// todo: check if this is still true
|
// todo: check if this is still true
|
||||||
|
|
|
@ -157,6 +157,7 @@ const transformJourneysQuery = ({opt}, query) => {
|
||||||
|
|
||||||
query.trfReq = {
|
query.trfReq = {
|
||||||
jnyCl: opt.firstClass === true ? 1 : 2,
|
jnyCl: opt.firstClass === true ? 1 : 2,
|
||||||
|
// todo [breaking]: support multiple travelers
|
||||||
tvlrProf: [{
|
tvlrProf: [{
|
||||||
type: 'E',
|
type: 'E',
|
||||||
redtnCard: opt.loyaltyCard
|
redtnCard: opt.loyaltyCard
|
||||||
|
|
|
@ -109,6 +109,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
|
||||||
res.tripId = pt.jny.jid
|
res.tripId = pt.jny.jid
|
||||||
res.line = pt.jny.line || null
|
res.line = pt.jny.line || null
|
||||||
// todo [breaking]: don't call parseStationName() here, add parseDirection() hook
|
// todo [breaking]: don't call parseStationName() here, add parseDirection() hook
|
||||||
|
// todo: support pt.jny.dirL[]
|
||||||
res.direction = pt.jny.dirTxt && profile.parseStationName(ctx, pt.jny.dirTxt) || null
|
res.direction = pt.jny.dirTxt && profile.parseStationName(ctx, pt.jny.dirTxt) || null
|
||||||
|
|
||||||
if (pt.jny.pos) {
|
if (pt.jny.pos) {
|
||||||
|
|
|
@ -22,6 +22,7 @@ const parseLine = ({profile}, p) => {
|
||||||
// todo: what is p.prodCtx.catCode?
|
// todo: what is p.prodCtx.catCode?
|
||||||
|
|
||||||
if (p.prodCtx && 'string' === typeof p.prodCtx.admin) {
|
if (p.prodCtx && 'string' === typeof p.prodCtx.admin) {
|
||||||
|
// todo [breaking]: don't trim
|
||||||
res.adminCode = p.prodCtx.admin.replace(/-+$/, '')
|
res.adminCode = p.prodCtx.admin.replace(/-+$/, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue