Commit graph

46 commits

Author SHA1 Message Date
Traines
2b55f7148f support db regio-guide trip id/endpoint 2025-01-14 21:07:23 +00:00
Traines
87a705e966 dbnav journeys, trips, fixes 2025-01-03 10:57:24 +00:00
Traines
3d998de41c dbnav boards, fixes 2025-01-02 14:00:45 +00:00
Traines
ed8683e8c2 fix int tests and invalid fields 2024-12-17 19:41:00 +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
Daniel Bund
244e88dec0
add attribute additional to additional stopovers 2023-11-27 16:25:54 +01:00
Jannis R
339d64e901
convert to ESM 💥📝 2022-11-18 19:20:03 +01:00
Pieterjan Van Saet
7c68f962c1
parse{Stopover,JourneyLeg, Trip}: expose {arrival,departure}PrognosisType
see #266

Co-authored-by: Jannis R <mail@jannisr.de>
2022-07-22 01:06:35 +02:00
Leo Maroni
2612494970
fix platform parsing with some profiles 🐛
closes #187
2020-08-01 18:26:30 +02:00
Julius Tens
c072a70c57 soothe the linter: remove unused variables 2020-02-27 17:10:03 +01:00
Jannis R
fb7a5653e3
parseProductsBitmask via profile, pass ctx into parse fns 💥 2020-01-05 18:10:09 +01:00
Jannis R
938a6f22b9
add planned*Platform, scheduled* -> planned/prognosed* 💥 2020-01-05 17:55:27 +01:00
Jannis R
29a2cf36e9
add planned(Arrival|Departure|When), scheduled* -> planned*/prognosed* 💥
when not cancelled:
{when, delay} -> {when, plannedWhen, delay}
{arrival, arrivalDelay} -> {arrival, plannedArrival, arrivalDelay}
{departure, departureDelay} -> {departure, plannedDeparture, departureDelay}

when cancelled:
{when: null, delay: null, scheduledWhen} -> {when: null, plannedWhen, prognosedWhen, delay}
{arrival: null, arrivalDelay: null, scheduledArrival, formerArrivalDelay} -> {arrival: null, plannedArrival, arrivalDelay, prognosedArrival}
{departure: null, departureDelay: null, scheduledDeparture, formerDepartureDelay} -> {departure: null, plannedDeparture, departureDelay, prognosedDeparture}
2020-01-05 17:52:17 +01:00
Jannis R
6af8f6d5ec
parseCommon: resolve hint & warning references 2020-01-05 17:51:27 +01:00
Jannis R
62cc53ffcf
parseCommon: resolve location references 2020-01-05 17:51:27 +01:00
Jannis R
7e39a2f333
formerScheduled… -> scheduled… 💥 2019-02-28 16:45:40 +01:00
Jannis R
ca1105f139
parseDateTime: parse timezone offset if given 💥 2019-02-28 16:44:09 +01:00
Jannis R
a9fd9ff814
parseDateTime: return ISO str/timestamp 💥 2019-02-28 16:44:09 +01:00
Jannis R
e6130d7c23
changelog, related libs 📝, clean up code 2018-07-16 11:36:27 +02:00
Jannis R
0d5a8fab1b
departures, arrivals, stopovers: former scheduled platform(s) 2018-07-09 13:12:26 +02:00
Jannis R
440ed6d1fb
parseStopover: fix first/last canceled stopovers 🐛
[ci skip]
2018-06-28 17:14:17 +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
0db84ce644
merge remarks into next 2018-06-25 13:20:13 +02:00
Jannis R
3e672eeabd
stopover.type, stopover.station -> stopover.stop 💥
To be compatible with `friendly-public-transport-format@1.1.1`.
2018-06-25 11:34:25 +02:00
Jannis R
96f9f93957
parseStopover: arrivalPlatform, departurePlatform 2018-06-22 13:42:01 +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
d3d23140fd
(more) remarks for journeys, journey legs & stopovers 2018-06-11 11:37:00 +02:00
Jannis R
21c273cec7
journey leg passed stations: parse & expose delays 2018-06-07 18:52:47 +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
afc0124982
fix stopover parsing 🐛 2018-04-05 14:23:14 +02:00
Jannis R
d96cbfb228
stopover: default arrival & departure fields 🐛, >= for collecting journeys 2018-03-29 02:45:15 +02:00
Jannis R
bdad9c6ef6
parseStopover: cancelled arrival & departure 🐛
also clean up parseMovement and add DRY todos
2018-03-17 17:16:03 +01:00
Jannis R
6ba617b1bc
let parseMovement use parseStopover 🐛 2018-03-17 16:47:31 +01:00
Julius Tens
ac56493768 mark & filter stations that are passed without stopping, as they contain no arrival/departure time information which would violate the fptf spec 2017-12-29 09:00:18 +01:00
Jannis R
f6077d5b6d
cancelled flag for departures & passed stations
ported abf323d over from master
2017-12-18 21:17:32 +01:00
Jannis R
608a91989f
bugfixes 🐛, even more todos 2017-12-11 19:40:46 +01:00
Jannis R
14cdc77c0f
moment-timezone -> luxon, parse DateTimes with locale 2017-12-11 17:28:29 +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