dabund24
c671e995cb
bahn.de boards ( #12 )
...
* parse bahn.de boards
* add optional chaining in line.js
* unit tests for bahn.de boards
* fix product check in line.js for bahn.de boards
* add integration tests for bahn.de boards
* allow letting hafas decide the amount of vias
* split dbweb and dbregioguide profiles; add db profile
* commit location-filter.js (forgot that in the last commit)
* simplify how db profile works
* remove `ezGleis` from coalesce for scheduled platform
* un-break parsing of remarks
* determine fahrtNr by removing all non-digits
* employ enrichStations for board stop property
* prevent timeouts in dbweb e2e test from calling `end()` twice
* use promises in dbweb e2e tests when waiting for enrichStations to work
* replace vias option with stopovers option for dbweb profile; enrich stations when only name is known
* change dbweb-departures test covering enrichStation feature for stop and stopovers
* remove check for not existing option
* move verkehrsmittel.name in front of verkehrsmittel.langText when parsing name in line.js
2025-02-09 00:46:21 +01:00
Traines
2b55f7148f
support db regio-guide trip id/endpoint
2025-01-14 21:07:23 +00:00
Traines
63bc542b1c
improve line details (fahrtNr, name, id), add tests
2025-01-10 18:55:14 +00:00
McToel
942972d5f0
Use risZuglaufId to get fahrtNr ( #8 )
2025-01-10 19:21:27 +01:00
Traines
126077582b
parse admincode, operator where available
2025-01-09 12:26:42 +00:00
Traines
87a705e966
dbnav journeys, trips, fixes
2025-01-03 10:57:24 +00:00
Traines
3d998de41c
dbnav boards, fixes
2025-01-02 14:00:45 +00:00
Traines
760a1bdb54
refreshJourney with tickets, loyaltyCard/firstClass rest support, accept-lang
2024-12-11 23:51:58 +00:00
Traines
c6bb1b468a
fixes for journeyID and fahrtNr
2024-12-10 22:49:11 +00:00
Traines
c663a35711
switch to regio-guide ris for boards
2024-12-10 17:51:20 +00:00
Traines
f8a79834b3
linting
2024-12-08 21:42:57 +00:00
Traines
80e633dcb7
arrival/departure, refactoring
2024-12-07 22:46:04 +00:00
Traines
2e094c2b78
initial db-vendo with /journeys (wip)
2024-12-07 16:17:16 +00:00
Kristjan ESPERANTO
66d9fb5194
apply linting rules
...
follow-up of 228c7253
2024-02-10 16:50:12 +01:00
Jannis R
339d64e901
convert to ESM 💥 📝
2022-11-18 19:20:03 +01:00
Jannis R
ef9e3765ee
parseLine: don't trim adminCode 💥 ✅
2022-11-18 19:20:03 +01:00
Jannis R
e79a371dde
add todos
2021-12-29 15:20:03 +01:00
Yureka
c3bdcc880f
expose prodCtx.catOut as line.productName
...
Closes #242
2021-08-21 00:08:47 +02:00
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
fb7a5653e3
parseProductsBitmask via profile, pass ctx into parse fns 💥
2020-01-05 18:10:09 +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
1e0182f8f6
parseLint: use addName, add todos
2019-06-21 18:43:10 +02:00
Jannis R
a1ffad3071
parseLine: remove line.class & line.productCode 💥
2019-02-28 16:44:59 +01:00
Jannis R
d69c01ba14
parseLine: don't use p.nameS 🐛
2018-09-03 16:17:19 +02:00
Jannis R
b37bedba26
parseLine: prodCtx.lineId as id, nameS as name
2018-09-03 15:13:23 +02:00
Jannis R
9257d3ad7d
parse line.fahrtNr, adapt tests ✅ , adapt docs 📝
2018-08-22 19:06:57 +02:00
Jannis R
b6fbaa5825
parse fns: opt param 💥
...
- parseLine
- parseDeparture
- parseJourney
- parseJourneyLeg
- parseLocation
- parseMovement
- parseNearby
- parseStopover
2018-06-13 20:05:33 +02:00
Jannis R
8881d8a1a4
parse fns: individual params -> data object 💥
...
From now on, all higher-level parse fns will be able to access more
of the response data while keeping their signature.
- parseLine
- parseDeparture
- parseJourney
- parseJourneyLeg
- parseLocation
- parseMovement
- parsePolyline
- parseNearby
- parseStopover
2018-06-13 20:05:24 +02:00
Jannis R
94bbe2361b
products[].product -> products[].id
2018-03-16 17:15:09 +01:00
Jannis R
bbb68d86d5
validate products in lib/validate-profile
2018-03-16 17:15:09 +01:00
Jannis R
08357dfa9d
parseLine: move mode & products parsing from profiles into main code
2018-03-16 17:15:09 +01:00
Jannis R
7cd963c344
fix syntax error 🤦
2018-01-23 02:40:41 +01:00
Jannis R
eddf110894
parseLine: don't use prodCtx.num 🐛
2018-01-23 02:37:08 +01:00
Jannis R
d7eca5b4d1
expose line operators
...
closes #6
2018-01-05 19:04:24 +01:00
Jannis R
09fc50f5b3
comply with FPTF 1.0.1, using validate-fptf
2017-12-16 01:56:59 +01:00
Jannis R
040ed41de7
VBB: add (anti)clockwise symbols to Ringbahn
2017-12-12 18:31:41 +01:00
Jannis R
81c9411cfe
deal with some todos, add more
2017-12-12 04:04:41 +01:00
Jannis R
275c9e54d7
more line info
2017-12-11 15:15:00 +01:00
Jannis R
e762f30f05
VBB-related bugfixes and changes 🐛
2017-11-20 15:25:15 +01:00
Jannis R
47b5ef7ed5
bugfixes 🐛
2017-11-12 21:23:29 +01:00
Jannis R
3c9f3393ba
pass in parsers
2017-11-12 01:23:34 +01:00
Jannis R
fb43a4e43b
code style 👕
...
- rename variables
- more consistent indentation
- give crucial anonymous functions a name
- add more TODOs
2017-11-12 00:05:32 +01:00
Jannis R
79db55d99c
split parse.js
2017-11-11 22:45:17 +01:00