Commit graph

46 commits

Author SHA1 Message Date
Traines
1e7977a8bb linting... 2025-01-20 20:32:38 +00:00
Traines
76d6121f88 trim returned HAFAS journey ids (for better compat with hafas-client/raw HAFAS API) 2025-01-20 20:06:29 +00:00
Traines
32792507ba pretty-print fixtures 2025-01-11 19:08:29 +00:00
Traines
60656b0119 db: create fake walking leg for intra-station transfer 2025-01-11 18:39:32 +00:00
Traines
87a705e966 dbnav journeys, trips, fixes 2025-01-03 10:57:24 +00:00
Traines
ec723b3414 refactoring 2024-12-21 15:26:49 +00:00
Traines
ed8683e8c2 fix int tests and invalid fields 2024-12-17 19:41:00 +00:00
Traines
f8a79834b3 linting 2024-12-08 21:42:57 +00:00
Traines
2e094c2b78 initial db-vendo with /journeys (wip) 2024-12-07 16:17:16 +00:00
Kristjan ESPERANTO
66d9fb5194
apply linting rules
follow-up of 228c7253
2024-02-10 16:50:12 +01:00
Jannis R
26c56f8dc6
fix date of next-day DEVI leg in an overnight journey 🐛
follow-up of a2870f6a
follow-up of 6e6285c7
fixes #301
2024-01-28 20:47:18 +01:00
Jannis R
339d64e901
convert to ESM 💥📝 2022-11-18 19:20:03 +01:00
Jannis R
a60083f8d1
parse trip.scheduledDays 2022-11-16 15:23:25 +01:00
Jannis R
b6900a3ddb
parse journey.scheduleDays using fpB & fpE 🐛
fixes #277

Thanks @bergmannjg!
2022-11-16 15:22:18 +01:00
Jannis R
ca6f75501c
add todos; add @MTRNord as contributor 2021-11-18 18:29:25 +01:00
Jannis R
4efff792ef
parseJourney: use j.recon.ctx as refreshToken too 🐛
see also d017e62
see also #164
2021-01-19 15:14:39 +01:00
Jannis R
fb7a5653e3
parseProductsBitmask via profile, pass ctx into parse fns 💥 2020-01-05 18:10:09 +01:00
Jannis R
29d7bd4299
parseJourney: fix scheduledDays year 🐛 2020-01-05 18:10:09 +01:00
Jannis R
6af8f6d5ec
parseCommon: resolve hint & warning references 2020-01-05 17:51:27 +01:00
Jannis R
4b56f6608c parseJourney: parse freqency 2018-12-03 11:43:14 +01:00
Jannis R
02e0e513ef
parse scheduled days of a journey 2018-10-25 18:57:31 +02:00
Jannis R
5b754aaa55 refreshJourney method 2018-07-25 10:05:52 +02:00
Jannis R
31973431ff
option not to parse remarks 2018-06-28 13:45:56 +02:00
Jannis R
f5eceafdf3
merge refactor-parse-fns into next 2018-06-26 13:07:06 +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
871db25bc9
parse more hints, add todos 2018-06-11 19:50:44 +02:00
Jannis R
d3d23140fd
(more) remarks for journeys, journey legs & stopovers 2018-06-11 11:37:00 +02:00
Jannis R
fa2cdc5177
pass warnings into parsers, apply warnings to journey legs 2018-06-07 18:48:45 +02:00
Jannis R
d2257c26ff
rename d.remarks -> d.hints, parseRemark -> parseHint
HAFAS returns notes for journey legs, stopovers and departures.

There are two kinds of notes: "remarks" (in `remL`) and HAFAS
Information Manager (HIM) notes (in `himL`). The former describe
the regular operating situation, e.g. "bicycles allows", whereas
the latter describe cancellations, construction work, etc.

The planned naming scheme for hafas-client:
- hints: notes from `remL` for regular operation
- warnings: notes from `himL` for cancellations, construction, etc
- remarks: both "notes" and "warnings"

This commit prepares the new naming scheme by renaming the
existing parsing logic of `remL` to "hints". Follow-up commits
will add `parseWarning`.
2018-06-07 16:34:50 +02:00
Jannis R
2623fc44c6
merge master into next 2018-05-07 11:53:55 +02:00
Jannis R
7c6e87afff journey legs: return polylines 2018-05-03 00:17:17 +02:00
Jannis R
005f3f8e4d
remove journey.departure, .arrival, … 💥
closes #36
2018-03-21 01:55:31 +01:00
Jannis R
cfd79b1be1
parseJourney: use parseJourneyLeg from profile 🐛 2018-03-21 01:14:37 +01:00
Jannis R
7ce65ca480
departures, journeys: canceled, former scheduled time
see public-transport/friendly-public-transport-format#27
2018-03-08 03:28:26 +01:00
Jannis R
fd8eb92806
journeys: add journey.type 🐛
To make it FPTF-compliant.
2018-03-02 00:35:55 +01:00
Jannis R
8985f8ccd2
rename journey.parts -> journey.legs 2017-12-28 17:13:02 +01:00
Jannis R
024aa0e948
deal with some todos, add more 2017-12-12 23:15:06 +01:00
Jannis R
14cdc77c0f
moment-timezone -> luxon, parse DateTimes with locale 2017-12-11 17:28:29 +01:00
Jannis R
658d67e3b2
mark journeys & journey parts as cancelled
see derhuerst/vbb-gtfs#19
see public-transport/friend-public-transport-format#27
2017-12-07 20:21:16 +01:00
Jannis R
33417a6e61
query journey parts 2017-11-20 16:58:45 +01:00
Jannis R
e762f30f05
VBB-related bugfixes and changes 🐛 2017-11-20 15:25:15 +01:00
Jannis R
3c9f3393ba
pass in parsers 2017-11-12 01:23:34 +01:00
Jannis R
73d083f418
parse: default to null 2017-11-12 00:36:13 +01:00
Jannis R
fb43a4e43b
code style 👕
- rename variables
- more consistent indentation
- give crucial anonymous functions a name
- add more TODOs
2017-11-12 00:05:32 +01:00
Jannis R
79db55d99c
split parse.js 2017-11-11 22:45:17 +01:00