Commit graph

17 commits

Author SHA1 Message Date
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
a624e62172 disable enrichStations for tests 2025-01-10 18:52:16 +00:00
Traines
bc676fd0b6 more tests, docs 2025-01-09 00:07:17 +00:00
dabund24
632a29d2aa
Allow value -1 for transfers option in journeys() (#6)
* allow value -1 for transfers option in journeys() for db and dbnav profiles

* add unit test for implicitly unconstrained transfers

* implement `formatTransfers()`, use it `formatJourneysReq()` functions and re-add corresponding unit test
2025-01-09 00:22:43 +01:00
Traines
debc1ee150 dbnav profile: locations, nearby 2024-12-21 23:04:05 +00:00
Traines
9f5e1fa6bd refactoring journeysReq 2024-12-21 16:15:10 +00:00
Traines
ec723b3414 refactoring 2024-12-21 15:26:49 +00:00
Traines
f8a79834b3 linting 2024-12-08 21:42:57 +00:00
Traines
0e328aa681 tests 2024-12-07 23:48:08 +00:00
Kristjan ESPERANTO
66d9fb5194
apply linting rules
follow-up of 228c7253
2024-02-10 16:50:12 +01:00
Jannis R
0bc6ba3650
DB journeys(): pass along opt.age if defined 2023-09-03 13:53:38 +02:00
Jannis R
a8401f36e1
DB: add test for profile.transformJourneysQuery() 2023-09-03 13:53:27 +02:00
Jannis R
339d64e901
convert to ESM 💥📝 2022-11-18 19:20:03 +01:00
Jannis R
f1a19450fe
tape + tap-spec -> tap 2021-05-20 16:49:21 +01:00
Jannis R
472646057f
tests: long stack traces! 2021-01-26 22:08:23 +01:00
Jannis R
773035c05d
call formatProductsFilter via profile, use products from ctx.profile 💥 2020-01-05 18:10:10 +01:00
Jannis R
850cd9ce85
tests for formatProductsFilter 2020-01-05 18:10:10 +01:00