Jannis R
6c5409fbce
extract parseIcon from parseCommon
2020-01-05 18:10:09 +01:00
Jannis R
d724846e91
rename findIdxRefs -> findInTree, remove resolveIdxRefs abstraction
2020-01-05 17:51:27 +01:00
Jannis R
3eae7ab169
parseCommon: resolve operator references
2020-01-05 17:51:27 +01:00
Jannis R
93814983da
add profile.parseCommon
2020-01-05 17:50:27 +01:00
Jannis R
ed0c606db1
add journeysOutFrwd profile flag
2019-12-29 22:18:22 +01:00
Jannis R
43b4a6e6d9
handle H_UNKNOWN error
...
see also schildbach/public-transport-enabler#0f6862f
2019-10-28 17:35:57 +01:00
Jannis R
2e88e964bb
client ID: install-unique -> process-unique
2019-08-16 17:57:04 +02:00
Jannis R
b57c212bb5
errors: add HTTP status codes
2019-07-08 21:06:43 +02:00
Jannis R
b144dd5358
parse & expose error codes
2019-07-08 21:06:43 +02:00
Jannis R
d0f7ca1b6c
follow HTTP redirects, accept br encoding
2019-06-24 18:26:11 +02:00
Jannis R
4a79b91680
parseLocation: L param as fallback ID
2019-02-28 16:45:31 +01:00
Jannis R
d7e439b948
NODE_DEBUG -> DEBUG 💥
2019-02-28 16:45:18 +01:00
Jannis R
5d0096c596
departures: profile flag for getPasslist & stbFilterEquiv
2018-12-30 18:42:05 +01:00
Jannis R
b809281d0e
fix error parsing 🐛
2018-12-06 11:31:38 +01:00
Jannis R
a24822d161
fix test output 💚
2018-09-03 15:46:15 +02:00
Jannis R
3c104e2233
debug hook logging request & response
2018-09-03 15:31:22 +02:00
Jannis R
e98cec1734
remove unused code, minor changes
2018-09-03 15:30:42 +02:00
Jannis R
ae31807eb7
better User-Agent randomization 🐛
2018-08-08 18:40:35 +02:00
Jannis R
96c1df5c3a
generate & send install-unique IDs
2018-07-26 19:04:00 +02:00
Jannis R
067e807db7
INSA doesn't support refreshJourney 🐛
2018-07-25 10:05:52 +02:00
Jannis R
5d9d738152
mandatory User-Agent param 💥
2018-07-24 18:29:31 +02:00
Jannis R
a475f2048d
parse stops and their stations
2018-07-13 16:07:23 +02:00
Jannis R
0199749a31
language option with default 'en'
2018-07-09 12:40:38 +02:00
Jannis R
4a454917dd
rename profile.journeyLeg to profile.trip 💥
2018-07-07 21:19:28 +02:00
Jannis R
d9b7df693a
parse hint & warning types using icons
...
[ci skip]
2018-06-30 18:24:55 +02:00
Jannis R
31973431ff
option not to parse remarks
2018-06-28 13:45:56 +02:00
Jannis R
1d5f4ff31c
parse arrivals
2018-06-26 18:13:41 +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
b6fbaa5825
parse fns: opt param 💥
...
- parseLine
- parseDeparture
- parseJourney
- parseJourneyLeg
- parseLocation
- parseMovement
- parseNearby
- parseStopover
2018-06-13 20:05:33 +02:00
Jannis R
a45d640272
request fn: opt param 💥
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
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
03b9ab9a83
expect parsePolyline in lib/validate-profile
2018-05-24 10:26:24 +02:00
Jannis R
deefeb1f64
add parsePolyline to default profile
2018-05-24 10:26:24 +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
ec0c283bf4
merge master into next
2018-03-19 21:18:53 +01: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
4533a70c41
writing a profile guide: minor improvements
2018-03-15 01:35:01 +01:00
Jannis R
551d2b8215
fix profile and profile validation 🐛
2018-03-13 03:37:25 +01:00
Jannis R
0c3e3cb0cf
journeys collection as an option
2018-03-08 03:28:17 +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