Commit graph

69 commits

Author SHA1 Message Date
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
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
a7c550ab69
send Accept: application/json 🐛 2018-06-07 12:13:31 +02:00
Jannis R
00b1eb387c
crypto.createHash -> create-hash, 2.7.3
closes #52
2018-05-24 10:29:50 +02:00
Jannis R
2623fc44c6
merge master into next 2018-05-07 11:53:55 +02:00
Jannis R
03e5cd350d
async stack traces: NODE_ENV=dev -> NODE_DEBUG=hafas-client 2018-04-05 14:17:30 +02:00
Jannis R
98139f9210
prepare move to public-transport org 2018-03-19 22:34:08 +01:00
Jannis R
02e3e7f97e
2.3.1 into new-vbb-protocol 2018-03-02 23:57:29 +01:00
Jannis R
5ac8d5f89e
mic & mac part 2, VBB salt
Many thanks to @alexander-albers!
2018-03-02 23:12:47 +01:00
Jannis R
a769291d95
fix HAFAS error messages 🐛 2018-01-28 14:12:52 +01:00
Jannis R
39636f12bf
parse lines at a location 2018-01-26 17:07:36 +01:00
Jannis R
0ee53ff624
fix ÖBB tests 💚 2018-01-23 01:30:20 +01:00
Jannis R
a28ead4cc1
nicer async stack traces 2018-01-23 01:25:32 +01:00
Jannis R
6f958e14be
mic & mac calculation
thanks to @alexander-albers!
see https://github.com/schildbach/public-transport-enabler/issues/187#issuecomment-357436079
2018-01-15 00:47:16 +01:00
Jannis R
904f890442
move checksum calculation to lib/request 2018-01-15 00:45:05 +01:00
Jannis R
d7eca5b4d1
expose line operators
closes #6
2018-01-05 19:04:24 +01:00
Jannis R
3c9f3393ba
pass in parsers 2017-11-12 01:23:34 +01:00
Jannis R
e0d9c28ef2
move out request handling 2017-11-11 22:49:04 +01:00