Commit graph

197 commits

Author SHA1 Message Date
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
Jannis R
fd6a349b64
tripsByName: more options, add to debug CLI, skipped E2E test 📝 2021-10-22 00:04:37 +02:00
Yureka
c10f31811a Expose realtimeDataFrom for refreshJourney
Fixes #239
2021-08-17 20:26:47 +02:00
Jannis R
ce82817631 DB: add journeysFromTrip() 2021-08-04 15:21:00 +02:00
Jannis R
458d6a77af
refetchJourney/reachableFrom/remarks: make opt.polylines explicit 2021-01-26 22:15:35 +01:00
Jannis R
174ed80749
remarks(): support missing res.msgL[] 🐛 2021-01-19 15:14:39 +01:00
Jannis R
e6bc8c6f86 departures/arrivals: add line option 2020-11-28 11:25:43 +01:00
Jannis R
53e10f73b7 profile flag for lines() 2020-11-28 11:25:43 +01:00
Jannis R
9d8260bf5f add lines() 2020-11-28 11:25:43 +01:00
Jannis R
731d9b8b81 profile flag for remarks() 2020-11-28 11:25:43 +01:00
Jannis R
ed48971fb1 add remarks() 2020-11-28 11:25:43 +01:00
Jannis R
3e6d6d9917 add serverInfo(), E2E tests
see also #145
2020-11-28 11:25:43 +01:00
Jannis R
48ef7b5a5d
minor fixes 2020-11-15 14:18:25 +01:00
Jannis R
11ca3b171a add tripsByName() method, docs 📝
docs
2020-10-06 22:22:30 +02:00
Jannis R
40df65f462
minor tweaks, changelog 📝, 5.7.0
[ci skip]
2020-08-01 13:14:16 +02:00
Jannis R
2c04e2f728
journeys: async fn -> .then, don't check profile.journeysNumF 🐛 2020-07-20 16:42:51 +02:00
Jannis R
71db75df93
journeys: expose realtime data timestamp 2020-07-19 23:26:55 +02:00
Jannis R
51f4a66bd8
journeys: remove collection of results
Reverts 7fd574f.
See also https://github.com/public-transport/hafas-client/pull/23#issuecomment-370246163 .
2020-07-19 22:58:13 +02:00
Jannis R
d2314e0d40 journeys: don't send outDate/outTime & ctxScr 2020-06-15 15:39:09 +02:00
Jannis R
dce42bfa31
move trip parsing into parse/trip 2020-06-11 15:34:20 +02:00
Jannis R
a8a9303e6f
nearby: return at most opt.results results 2020-06-10 15:00:49 +02:00
Jannis R
07c77f8cf9
add subStops & entrances options 2020-05-21 17:51:25 +02:00