diff --git a/p/vbb/parse-loc-dhid.js b/p/vbb/parse-loc-dhid.js index 1e706238..95c52a32 100644 --- a/p/vbb/parse-loc-dhid.js +++ b/p/vbb/parse-loc-dhid.js @@ -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 } diff --git a/parse/arrival-or-departure.js b/parse/arrival-or-departure.js index 37c1eed9..81df5cbf 100644 --- a/parse/arrival-or-departure.js +++ b/parse/arrival-or-departure.js @@ -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 diff --git a/parse/hint.js b/parse/hint.js index b5270374..dc05d3d4 100644 --- a/parse/hint.js +++ b/parse/hint.js @@ -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 diff --git a/parse/journey-leg.js b/parse/journey-leg.js index f5a5903d..8dfd7e54 100644 --- a/parse/journey-leg.js +++ b/parse/journey-leg.js @@ -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