Commit graph

182 commits

Author SHA1 Message Date
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
Jannis R
b302ba75d2
minor readme/documentation tweaks 📝
- stop(): add `remarks: true` default
- journeys(): more intuitive options order
- readme: fix build status badge
2020-05-21 17:36:31 +02:00
Jannis R
3c888a0ea0
refreshJourney: actually throw the error 🐛, add code 2020-04-18 17:14:40 +02:00
Jannis R
0699d4d22e departures/arrivals: let results default to null
https://github.com/public-transport/hafas-client/pull/171#discussion_r397402352
2020-04-09 14:33:58 +02:00
Jannis R
e032ec1acd
"invalid response" error: add isHafasError flag
So that consuming code can tell that this error is caused by an
invalid/unexpected response from HAFAS.
2020-04-01 19:03:38 +02:00
Jannis R
ae74bb420d departures/arrivals: add results option 2020-03-21 13:13:03 +01:00
Jannis R
78487d9163
journeys: default earlierRef & laterRef to null 🐛
`JSON.stringify` exludes entries with `undefined`.
2020-03-18 21:45:36 +01:00
Jannis R
36a8b388f2
add todos
also remove dead code
2020-03-18 21:45:30 +01:00
Julius Tens
df010fc24c enable no-irregular-whitespace and no-mixed-spaces-and-tabs rules, fix non-compliant whitespace 2020-02-27 17:10:03 +01:00
Simeon Keske
1c67350b48
move refreshJourneyReq-formatter to own function 2020-02-08 18:05:42 +01:00
Jannis R
39a626784b
request formatters via profile 2020-01-05 18:10:10 +01:00
Jannis R
773035c05d
call formatProductsFilter via profile, use products from ctx.profile 💥 2020-01-05 18:10:10 +01:00
Jannis R
6d5c6081ce
request() via profile 💥 2020-01-05 18:10:09 +01:00
Jannis R
252ce5b515
lib/request, index: use ctx object 💥 2020-01-05 18:10:09 +01:00
Jannis R
fb7a5653e3
parseProductsBitmask via profile, pass ctx into parse fns 💥 2020-01-05 18:10:09 +01:00
Jannis R
4162328fd4
createClient(): request parameter -> opt parameter 💥 2020-01-05 17:52:17 +01:00