Commit graph

289 commits

Author SHA1 Message Date
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
Jannis R
b88090dd30
br2nl -> @derhuerst/br2nl 2019-03-27 18:31:56 +01:00
Jannis R
5d49fd0a20 parseDateTime: fix tzOffset + daysOffset 🐛
closes #106
2019-03-19 12:56:49 +01:00
Jannis R
7e39a2f333
formerScheduled… -> scheduled… 💥 2019-02-28 16:45:40 +01:00
Jannis R
eb3ffba4fc
make POIs objects with poi: true 💥
fixes #42
2019-02-28 16:45:31 +01:00
Jannis R
4a79b91680
parseLocation: L param as fallback ID 2019-02-28 16:45:31 +01:00
Jannis R
9c449958c4
remove (arrival|departure).trip, movement.trip 💥 2019-02-28 16:45:31 +01:00
Jannis R
0e1fcb0c99
leg.mode: 'walking' -> leg.walking: true 💥 2019-02-28 16:45:18 +01:00
Jannis R
a972dad7b8
departures/arrivals, locations, nearby, stop: opt.stationLines -> linesOfStops 💥 📝 2019-02-28 16:45:18 +01:00
Jannis R
a1ffad3071
parseLine: remove line.class & line.productCode 💥 2019-02-28 16:44:59 +01:00