Commit graph

16 commits

Author SHA1 Message Date
Jannis R
c1beb28b85
Error -> TypeError 2020-02-04 18:47:25 +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
4a454917dd rename profile.journeyLeg to profile.trip 💥 2018-07-07 21:19:28 +02:00
Jannis R
1d5f4ff31c parse arrivals 2018-06-26 18:13:41 +02:00
Jannis R
d909be3b65
parseWarning 2018-06-07 18:46:44 +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
03b9ab9a83 expect parsePolyline in lib/validate-profile 2018-05-24 10:26:24 +02:00
Jannis R
94bbe2361b
products[].product -> products[].id 2018-03-16 17:15:09 +01:00
Jannis R
bbb68d86d5
validate products in lib/validate-profile 2018-03-16 17:15:09 +01:00
Jannis R
ce43f15ad5
parseProducts: move factory from profiles into main code 2018-03-16 17:15:08 +01:00
Jannis R
551d2b8215
fix profile and profile validation 🐛 2018-03-13 03:37:25 +01:00
Jannis R
8985f8ccd2
rename journey.parts -> journey.legs 2017-12-28 17:13:02 +01:00
Jannis R
81c9411cfe
deal with some todos, add more 2017-12-12 04:04:41 +01:00
Jannis R
eacbd8ef01
validate profile 2017-12-12 03:32:07 +01:00