put more todos

[ci skip]
This commit is contained in:
Jannis R 2019-08-30 16:27:26 +02:00
parent 3c7c1c3d4e
commit 2993cc0e87
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
3 changed files with 11 additions and 0 deletions

View file

@ -143,6 +143,10 @@ const createParseJourneyLeg = (profile, opt, data) => {
return parseJourneyLegWithLoadFactor
}
// todo:
// [ { type: 'hint',
// code: 'P5',
// text: 'Es gilt ein besonderer Fahrpreis' }
const hintsByCode = Object.assign(Object.create(null), {
fb: {
type: 'hint',

View file

@ -45,6 +45,10 @@ const createParseJourneyLeg = (profile, opt, data) => {
// todo: pt.isRchbl, pt.chRatingRT, pt.chgDurR, pt.minChg
// todo: pt.dep.dProgType, pt.arr.dProgType
// todo: what is pt.jny.dirFlg?
// todo: what is pt.recState?
// todo: what is `sty: 'UNDEF'`?
// todo: pt.prodL
// todo: pt.parJnyL (list of coupled trains)
// j = journey, pt = part
// todo: pt.planrtTS
@ -89,6 +93,7 @@ const createParseJourneyLeg = (profile, opt, data) => {
res.distance = pt.gis && pt.gis.dist || null
if (pt.type === 'TRSF') res.transfer = true
// https://gist.github.com/derhuerst/426d4b95aeae701843b1e9c23105b8d4#file-tripsearch-2018-12-05-http-L4207-L4229
if (opt.remarks && Array.isArray(pt.gis.msgL)) {
applyRemarks(res, hints, warnings, pt.gis.msgL)
}
@ -120,6 +125,7 @@ const createParseJourneyLeg = (profile, opt, data) => {
value: stopL[i].locX
})
}
// todo: parse `pt.dep.msgL` & `pt.arr.msgL`
// todo: apply leg-wide remarks if `parseStopovers` is false
applyRemarks(res, hints, warnings, pt.jny.msgL)
}

View file

@ -21,6 +21,7 @@ const createParseMovement = (profile, opt, data) => {
latitude: m.pos.y / 1000000,
longitude: m.pos.x / 1000000
} : null,
// todo: stopL[0] is the first of the trip! -> filter out
nextStopovers: m.stopL.map(pStopover),
frames: []
}