Commit graph

16 commits

Author SHA1 Message Date
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
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