Traines
71d1a4f1a9
refactor enrichStations, only load on first request
2025-02-13 22:16:22 +00:00
Traines
6ff406ea79
artificially filter for includeRelatedStations and direction
2025-02-13 21:53:49 +00:00
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
1b0858a253
update docs
2025-01-14 22:16:09 +00:00
Traines
01b95e74f4
add back cli
2025-01-11 20:55:46 +00:00
Traines
63bc542b1c
improve line details (fahrtNr, name, id), add tests
2025-01-10 18:55:14 +00:00
Traines
8d07b24604
make dbnav default for docker image, require setting of user agent
2025-01-09 12:32:12 +00:00
Traines
98670d5e08
stop()
2025-01-08 23:24:40 +00:00
Traines
87a705e966
dbnav journeys, trips, fixes
2025-01-03 10:57:24 +00: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
73b4d40e02
trip by id support
2024-12-18 01:16:57 +00:00
Traines
318644958a
cleanup
2024-12-18 00:21:10 +00:00
Traines
80195404bb
enrich stations with db-hafas-stations
2024-12-18 00:10:49 +00:00
Traines
e05b31e19c
fix laterThan/earlierThan
2024-12-17 20:26:48 +00:00
Traines
e4a99d4be3
artificially limit number of results, fixes #2
2024-12-17 19:54:14 +00:00
Traines
ed8683e8c2
fix int tests and invalid fields
2024-12-17 19:41:00 +00:00
Traines
760a1bdb54
refreshJourney with tickets, loyaltyCard/firstClass rest support, accept-lang
2024-12-11 23:51:58 +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
2f45f66793
/locations, /locations/nearby, fixes
2024-12-07 18:29:16 +00:00
Traines
2e094c2b78
initial db-vendo with /journeys (wip)
2024-12-07 16:17:16 +00:00
Jannis R
90b1140401
radar(): relax bounding box checks 🐛 ✅
...
to allow crossing the antimeridian & poles
fixes https://github.com/derhuerst/hafas-monitor-trips/issues/12
2024-02-25 21:36:23 +01:00
Kristjan ESPERANTO
66d9fb5194
apply linting rules
...
follow-up of 228c7253
2024-02-10 16:50:12 +01:00
Jannis R
14c9805ad8
journeys(): let earlierRef/laterRef fall back to null 🐛
2023-04-04 11:40:03 +02:00
Jannis R
e7602e6c84
createClient(): throw if userAgent is one of the documented ones 💥 📝
...
related: #286
fixes #286
2023-03-14 21:01:11 +01:00
Jannis R
339d64e901
convert to ESM 💥 📝
2022-11-18 19:20:03 +01:00
Jannis R
30cb1f3d28
trip: remove lineName parameter, update integration test fixtures 💥 ✅ 📝
2022-11-18 19:20:03 +01:00
Jannis R
db442bb578
serverInfo: fix realtimeDataUpdatedAt parsing 🐛
2022-11-18 19:20:02 +01:00
Jannis R
44c8e37e5c
lines: realtimeDataFrom -> realtimeDataUpdatedAt 💥 ✅ 📝
2022-11-18 19:20:02 +01:00
Jannis R
bb70081ceb
remarks: realtimeDataFrom -> realtimeDataUpdatedAt 💥 ✅ 📝
2022-11-18 19:20:02 +01:00
Jannis R
2fcaa2304b
reachableFrom: realtimeDataFrom -> realtimeDataUpdatedAt 💥 ✅ 📝
2022-11-17 15:25:01 +01:00
Jannis R
0cc50a918a
radar: realtimeDataFrom -> realtimeDataUpdatedAt 💥 ✅ 📝
2022-11-17 15:25:01 +01:00
Jannis R
a0a4064bf0
trip/tripsByName: realtimeDataFrom -> separate realtimeDataUpdatedAt field 💥 ✅ 📝
2022-11-17 15:25:00 +01:00
Jannis R
3cbbc3c4da
refreshJourney: return journey as field 💥 ✅ 📝
2022-11-17 15:17:02 +01:00
Jannis R
751ae21d18
journeys/refreshJourney/journeysFromTrip: realtimeDataFrom -> realtimeDataUpdatedAt 💥 ✅ 📝
2022-11-17 15:17:02 +01:00
Jannis R
c4470ca962
arrivals/departures: return obj with realtimeDataUpdatedAt & results 💥 ✅ 📝
2022-11-17 15:17:02 +01:00
Jannis R
9b263bb379
rework error handling 💥 ✅ 📝
2022-11-17 15:17:02 +01:00
Jannis R
b030eec1f5
use more async/await 💥 ✅
2022-11-17 15:17:02 +01:00
Jannis R
40957d3515
reachableFrom: don't retry 💥
2022-11-17 15:17:02 +01:00
Jannis R
a60083f8d1
parse trip.scheduledDays ✅
2022-11-16 15:23:25 +01:00
Jannis R
5ff8527b60
tweak & restructure docs 📝 , explicit defaults
2022-11-09 18:23:56 +01:00
Jannis R
2edcd49e99
serverInfo: add opt.versionInfo 📝 ✅
...
Thanks to @alexander-albers!
see also https://github.com/alexander-albers/tripkit/issues/69#issuecomment-1048105228
2022-02-22 20:27:05 +01:00
Jannis R
ca6f75501c
add todos; add @MTRNord as contributor
2021-11-18 18:29:25 +01:00
Jannis R
97b6a76e75
parseTrip: expose realtimeDataUpdatedAt ✅
2021-10-28 00:25:58 +02:00
Jannis R
a7cb71c870
add todos & comments
2021-10-26 15:00:08 +02:00
Jannis R
84c7582a33
journeys(): fix empty viaLocL[] 🐛
...
fixes #247
2021-10-26 14:08:06 +02:00
Jannis R
39ca7ede57
tripsByName: support some journey filters
2021-10-24 22:52:46 +02:00