Commit graph

69 commits

Author SHA1 Message Date
Traines
5c5c1acd44 don't set undefined price fields 2024-12-17 20:43:54 +00:00
Traines
760a1bdb54 refreshJourney with tickets, loyaltyCard/firstClass rest support, accept-lang 2024-12-11 23:51:58 +00:00
Traines
f8a79834b3 linting 2024-12-08 21:42:57 +00:00
Traines
0e328aa681 tests 2024-12-07 23:48:08 +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
Jannis R
97268d7a8a
DB: remove stop() v1.16 workaround
Also, `LocGeoPos`/nearby() doesn't seem to break with `getStops: false` anymore.
2024-07-16 12:10:43 +02:00
Jannis R
7f78dc9458
add todos & comments 2024-03-12 12:26:46 +01:00
Paul Sutter
c4966aeca7
DB: optionally parse ticket URLs
Co-Authored-By: Jannis R <mail@jannisr.de>
2024-03-12 01:18:56 +01:00
Paul Sutter
248adb5f72
DB refreshJourney(): optionally request ticket infos
Co-Authored-By: Jannis R <mail@jannisr.de>
2024-03-12 01:18:50 +01:00
Paul Sutter
fd90abdeca
DB journeys()/refreshJourney(): parse tickets from reponse
Co-Authored-By: Jannis R <mail@jannisr.de>
2024-03-12 01:18:29 +01: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
Lambert Theisen
5ce0129c36
DB: add routingModes option 📝
closes #295
fixes #287

Co-Authored-By: Jannis R <mail@jannisr.de>
2023-07-25 15:51:24 +02:00
Jannis R
b8f0ab0fd6
DB: put todos 2023-05-15 12:58:40 +02:00
Jannis R
8faf8ba507
DB: use ver 1.16 for stop() requests 🐛, update integration test fixture
fixes #288
2023-04-04 11:33:24 +02:00
Jannis R
3c17678d9d
DB: use REALTIME routing mode 2022-11-18 19:20:03 +01:00
Jannis R
339d64e901
convert to ESM 💥📝 2022-11-18 19:20:03 +01:00
Jannis R
a81e550f2a
departures{GetPasslist,StbFltrEquiv}: default to false 💥 2022-11-17 15:17:01 +01:00
roehrt
1236cf63a0
DB: support age group by age API 2022-04-26 12:13:52 +02:00
roehrt
f3c2ee6f5a
DB: support age-based tariffs
The supported age groups are now:
- 'B' (baby, infant)
- 'K' (kind, child)
- 'Y' (young)
- 'E' (Erwachsener, adult)
- 'S' (Senior)
2022-04-26 12:13:41 +02:00
Jannis R
e79a371dde
add todos 2021-12-29 15:20:03 +01:00
Jannis R
a7cb71c870
add todos & comments 2021-10-26 15:00:08 +02:00
Yureka
6de2dc7bf3 fix db price parsing 2021-08-18 12:56:05 +02:00
Jannis R
ce82817631 DB: add journeysFromTrip() 2021-08-04 15:21:00 +02:00
Jannis R
96b4d55f56 re-upgrade profiles, adapt feature flags, adapt tests 2021-05-01 10:58:45 +02:00
Jannis R
c260e34f20
DB: parse gridL[].itemL[].remL[] 🐛 2021-01-26 21:15:19 +01:00
Jannis R
6c4785b05b
DB: use JSON base profile 2021-01-26 21:15:19 +01:00
Jannis R
53e10f73b7 profile flag for 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
322004bdcd
DB: stop.facilities.raw as non-enumerable property 2020-05-21 17:55:01 +02:00
Jannis R
9e75f42346
DB: parse Reisezentrum opening hours & station facilities 2020-05-21 17:51:25 +02:00
Jannis R
e5abe3d98a
DB: fix journey leg loadFactor parsing 🐛 2020-02-25 08:22:49 +01:00
Jannis R
9fc6664302
adapt profiles to ctx-based parse fns 2020-01-05 18:10:09 +01:00
Jannis R
b8496be1a3
DB journeys: make default price null 💥
closes #91
2020-01-05 17:50:55 +01:00
Jannis R
93814983da
add profile.parseCommon 2020-01-05 17:50:27 +01:00
Jannis R
105c18b30d
DB profile: always use rtMode: HYBRID 2019-11-18 18:35:01 +01:00
Jannis R
2993cc0e87
put more todos
[ci skip]
2019-08-30 16:27:34 +02:00
Jannis R
77afb9f9a3
DB: enable radar() 2019-07-20 13:07:16 +02:00
Christopher Zentgraf
f92e9336c0 DB departures/arrivals: parse load factor
See https://www.bahn.de/p/view/service/buchung/auslastungsinformation.shtml for reference.
2019-05-28 11:16:51 +02:00
Jannis R
1e16a10f3d DB: optionally use line.nameS 2019-02-13 14:05:06 +01:00
Julius Tens
d797333a70 db: parse additional line names 2019-02-13 14:05:06 +01:00
Jannis R
8b572d6184 profiles: enable reachableFrom 2018-09-03 16:43:01 +02:00
Jannis R
fe8e68e4a2
fix DB hints parsing 🐛 2018-07-13 12:17:15 +02:00
Jannis R
90519cff68
remove accidental logging
[ci skip]
2018-07-09 19:48:14 +02:00
Jannis R
4529a93175
parse DB-specific hints inside DB profile 2018-07-09 19:32:23 +02:00
Jannis R
4a454917dd rename profile.journeyLeg to profile.trip 💥 2018-07-07 21:19:28 +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
1bb1ce4f8b
merge next into tests-rewrite 2018-05-30 14:22:23 +02:00