Skip to content

Commit 7f78dc9

Browse files
committed
add todos & comments
1 parent d3bc9d3 commit 7f78dc9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

p/db/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ const transformReq = (ctx, req) => {
5151
});
5252
}
5353

54+
// todo: `LocGeoPos`/nearby() breaks with `getStops: false`
55+
5456
return req;
5557
};
5658

parse/hint.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ const linkTypesByCode = Object.assign(Object.create(null), {
110110
// "durS": "091400"
111111
// }
112112

113+
// todo bvg:
114+
// {"type": "R", "code": "text.realtime.journey.cancelled", "icoX": 7, "txtN": ": S41"} with icon {"res": "rt_cancel"}
115+
113116
const parseHint = (ctx, h) => {
114117
// todo: C
115118

parse/journey-leg.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
113113
res.transfer = true;
114114
}
115115
if (pt.type === 'DEVI') {
116+
// > DEVI Legs are Deviations.
117+
// > It happens if you ask for a route to a specific stopPlace but HAFAS returns one to another stopPlace. Happens mainly in the night when there is no route to you destination for the forseeable future.
118+
// > For Instance you want to go from Berlin Hbf to München Hbf. One of the only routes to München is to München Ost with a NJ at your time.
119+
// > HAFAS returns that NJ and the last leg is a DEVI that just says "you wanted München HBF, this route ends in München Ost"
120+
121+
// > Bahn.de for instance ignores this completly, the DEVI leg also has no real information.
122+
// https://github.com/public-transport/hafas-client/issues/301#issuecomment-1840820895
123+
116124
// todo: pt.resState, pt.resRecommendation
117125
res.transfer = true;
118126
}

0 commit comments

Comments
 (0)