put todos

This commit is contained in:
Jannis R 2022-10-24 17:29:23 +02:00
parent f530a30fe0
commit c88179777d
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
4 changed files with 25 additions and 2 deletions

View file

@ -12,6 +12,7 @@ const parseAndAddLocationDHID = (loc, l) => {
// It seems that the DHID of the parent station is being used, not of the stop.
// if (!loc.ids) loc.ids = {}
// loc.ids.dhid = dhid
// todo: use loc.ids.stationDHID instead?
loc.stationDHID = dhid
}

View file

@ -5,7 +5,7 @@ const findRemarks = require('./find-remarks')
const ARRIVAL = 'a'
const DEPARTURE = 'd'
// todo: what is d.jny.dirFlg?
// todo: pt.jny.dirFlg https://github.com/alexander-albers/tripkit/blob/07047c6ddef24339ebd49a86a78158bca8047421/Sources/TripKit/Provider/AbstractHafasClientInterfaceProvider.swift#L347-L353 & https://github.com/alexander-albers/tripkit/commit/07047c6ddef24339ebd49a86a78158bca8047421#commitcomment-68471656
// todo: d.stbStop.dProgType/d.stbStop.aProgType
// todo: d.stbStop.dProdX/aProdX can be different than d.prodX

View file

@ -27,6 +27,28 @@ const linkTypesByCode = Object.assign(Object.create(null), {
// todo: expose h.type somehow
// todo: https://github.com/KDE/kpublictransport/blob/39ac8f9586b9300fa8a9ba0dec010e96fab9ab08/src/lib/backends/hafasmgateparser.cpp#L56-L72
// todo: h.sty
// SNCB:
// {
// "type": "A",
// "code": "60",
// "prio": 10,
// "icoX": 2,
// "txtN": "Reservierungspflicht"
// }
// {
// "type": "A",
// "code": "64",
// "prio": 110,
// "icoX": 2,
// "txtN": "Zuschlag"
// }
// {
// "type": "I",
// "code": "CON_OVERVIEW_TARIF_HINT",
// "icoX": 2,
// "txtN": "Für diese Strecke ist ein internationales Ticket notwendig."
// }
const parseHint = (ctx, h) => {
// todo: C

View file

@ -43,7 +43,7 @@ const applyRemarks = (leg, refs) => {
// todo: pt.status, pt.isPartCncl
// todo: pt.chRatingRT, pt.chgDurR, pt.minChg
// todo: what is pt.jny.dirFlg?
// todo: pt.jny.dirFlg https://github.com/alexander-albers/tripkit/blob/07047c6ddef24339ebd49a86a78158bca8047421/Sources/TripKit/Provider/AbstractHafasClientInterfaceProvider.swift#L347-L353 & https://github.com/alexander-albers/tripkit/commit/07047c6ddef24339ebd49a86a78158bca8047421#commitcomment-68471656
// todo: what is pt.recState?
// todo: what is `sty: 'UNDEF'`?
// todo: pt.prodL