Commit graph

198 commits

Author SHA1 Message Date
Jannis R
8c7f164fa3 parseLine: expose adminCode
The admin code is often helpful to distinguish lines that can't
be distinguished by their `operator.id`. See also #10.
2020-03-08 23:44:40 +01:00
Jannis R
3ea9380218 parseLocation: parse fare zone, transit authority & more foreign stop IDs
closes #131
see also #5, #90
2020-03-08 23:04:04 +01:00
Jannis R
2a241375db parseLocation: parse foreign stop IDs from I hints
`rRefL` seems to be used by older HAFAS endpoints, e.g. `ver: 1.11`.

see also #5, #90, #131
2020-03-08 23:04:04 +01:00
Julius Tens
df010fc24c enable no-irregular-whitespace and no-mixed-spaces-and-tabs rules, fix non-compliant whitespace 2020-02-27 17:10:03 +01:00
Julius Tens
c072a70c57 soothe the linter: remove unused variables 2020-02-27 17:10:03 +01:00
Julius Tens
bc30309056 bugfixes: fix undefined variables 🐛 2020-02-27 17:10:03 +01:00
Lukas Siemon
8cb7d807f2
improve findInTree performance
by passing a list of paths to find in the tree up front

#154

closes #152
2020-02-22 19:13:56 +00:00
Jannis R
db9287f7fd
@mapbox/polyline -> google-polyline 2020-01-31 18:07:16 +01:00
Jannis R
e049aa3d04
parseWarning: fix parseMsgEvent 🐛 2020-01-15 18:17:06 +01:00
Jannis R
fb7a5653e3
parseProductsBitmask via profile, pass ctx into parse fns 💥 2020-01-05 18:10:09 +01:00
Jannis R
29d7bd4299
parseJourney: fix scheduledDays year 🐛 2020-01-05 18:10:09 +01:00
Jannis R
5ea22f7a59
parseHint: parse code & text properly 🐛 2020-01-05 18:10:09 +01:00
Jannis R
9a6bc2df0d
parseWarning: parseDateTime -> profile.parseDateTime 🐛 2020-01-05 18:10:09 +01:00
Jannis R
8b2a5a82f2
parseIcon: use txt & txtS as text fallback 2020-01-05 18:10:09 +01:00
Jannis R
6c5409fbce
extract parseIcon from parseCommon 2020-01-05 18:10:09 +01:00
Jannis R
c2dc8742b6
parseWhen, parsePlatform: let when & platform fall back to plan data
This commit adapts parseWhen & parsePlatform to the latest FPTF v2 draft.

see public-transport/friendly-public-transport-format#63
2020-01-05 17:55:37 +01:00
Jannis R
938a6f22b9
add planned*Platform, scheduled* -> planned/prognosed* 💥 2020-01-05 17:55:27 +01:00
Jannis R
29a2cf36e9
add planned(Arrival|Departure|When), scheduled* -> planned*/prognosed* 💥
when not cancelled:
{when, delay} -> {when, plannedWhen, delay}
{arrival, arrivalDelay} -> {arrival, plannedArrival, arrivalDelay}
{departure, departureDelay} -> {departure, plannedDeparture, departureDelay}

when cancelled:
{when: null, delay: null, scheduledWhen} -> {when: null, plannedWhen, prognosedWhen, delay}
{arrival: null, arrivalDelay: null, scheduledArrival, formerArrivalDelay} -> {arrival: null, plannedArrival, arrivalDelay, prognosedArrival}
{departure: null, departureDelay: null, scheduledDeparture, formerDepartureDelay} -> {departure: null, plannedDeparture, departureDelay, prognosedDeparture}
2020-01-05 17:52:17 +01:00
Jannis R
d724846e91
rename findIdxRefs -> findInTree, remove resolveIdxRefs abstraction 2020-01-05 17:51:27 +01:00
Jannis R
f02fe301c7
parse: refactor applyRemarks 2020-01-05 17:51:27 +01:00
Jannis R
018fc84bf5
parseCommon: parse polylines 2020-01-05 17:51:27 +01:00
Jannis R
6af8f6d5ec
parseCommon: resolve hint & warning references 2020-01-05 17:51:27 +01:00
Jannis R
62cc53ffcf
parseCommon: resolve location references 2020-01-05 17:51:27 +01:00
Jannis R
758deaf2d5
parseCommon: resolve line references 2020-01-05 17:51:27 +01:00
Jannis R
0cc17ee780
parseCommon: resolve icon references 2020-01-05 17:51:27 +01:00
Jannis R
3eae7ab169
parseCommon: resolve operator references 2020-01-05 17:51:27 +01:00
Jannis R
4270125bf7
parse: minor changes 2020-01-05 17:51:27 +01:00
Jannis R
352fa2e564
parse more warning fields 2020-01-05 17:50:55 +01:00
Jannis R
35e44d4c92
pass all data into parseHint/parseWarning 💥 2020-01-05 17:50:55 +01:00
Jannis R
a40006f5ca
BVG: support BerlKönig, docs 📝 2020-01-05 17:50:55 +01:00
Jannis R
793457a7a8
parse icons 💥 2020-01-05 17:50:27 +01:00
Jannis R
93814983da
add profile.parseCommon 2020-01-05 17:50:27 +01:00
Felix Geyer
fceaf86186 parse 'Q' hints 2019-11-25 12:43:29 +01:00
Jannis R
1cc453b778
parseArrOrDep, parseLocation: bugfixes 🐛 2019-10-28 17:43:27 +01:00
Jannis R
9ce72930b1
put more todos 2019-10-28 17:42:33 +01:00
Jannis R
2993cc0e87
put more todos
[ci skip]
2019-08-30 16:27:34 +02:00
Jannis R
3aaa1496f5
parseWarning: handle missing summary/text 🐛 2019-07-20 13:07:14 +02:00
Jannis R
f5121f1bf6
changelog 📝, minor changes, 4.5.0
[ci skip]
2019-07-08 21:12:39 +02:00
Jannis R
e46d6cd588
parseLocation: expose stop.isMeta 2019-06-30 13:21:25 +02:00
Jannis R
0ce5669899
fix bitmask handling 🐛 2019-06-24 18:37:39 +02:00
Jannis R
1e0182f8f6
parseLint: use addName, add todos 2019-06-21 18:43:10 +02:00
Julius Tens
9078d2d25a fix reachable for walking legs 2019-06-08 12:56:24 +02:00
Julius Tens
6da1e80ef2 add leg.reachable 2019-06-05 11:59:23 +02:00
Julius Tens
875ea18b4c parse scheduled/actual platform information on legs
fixes #116
2019-05-29 14:19:23 +02:00
Jannis R
b3d75b567d
fix parseWarning 🐛 2019-05-27 16:33:01 +02:00
Jannis R
820f2abe86
parseWarning: parse products 2019-05-27 16:08:09 +02:00
Jannis R
3e01303e43 CFL profile 2019-05-20 20:06:24 +02:00
Jannis R
831bcaf4c9 ISO date+time: suppress milliseconds if 0 2019-04-29 18:23:40 +01:00
Jannis R
6aa57d4616
handle missing dirTxt 🐛 2019-04-01 19:22:10 +02:00
Jannis R
133cee9988
parseWarning: expose id 🐛 2019-03-27 18:58:34 +01:00