diff --git a/parse/hint.js b/parse/hint.js index c1548c18..a5372bd1 100644 --- a/parse/hint.js +++ b/parse/hint.js @@ -5,6 +5,13 @@ const codesByIcon = Object.assign(Object.create(null), { }) // todo: is passing in profile necessary? +// todo: pass in tag list from hint reference, e.g.: +// "tagL": [ +// "RES_JNY_H3" // H3 = level 3 heading? shown on overview +// ] +// "tagL": [ +// "RES_JNY_DTL" // only shown in journey detail +// ] const parseHint = (profile, h, icons) => { // todo: C // todo: diff --git a/parse/line.js b/parse/line.js index 32871e5f..a14784b2 100644 --- a/parse/line.js +++ b/parse/line.js @@ -12,7 +12,7 @@ const createParseLine = (profile, opt, {operators}) => { const parseLine = (p) => { if (!p) return null // todo: handle this upstream - const name = p.line || p.name || null + const name = p.line || p.addName || p.name || null // wtf const res = { type: 'line', // This is terrible, but FPTF demands an ID. Let's pray for HAFAS. @@ -21,6 +21,7 @@ const createParseLine = (profile, opt, {operators}) => { || name && slugg(name.trim()) || null ), + // todo: what is p.prodCtx.matchId? use as `id`? expose it. fahrtNr: p.prodCtx && p.prodCtx.num || null, name, public: true