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
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
8985f8ccd2
rename journey.parts -> journey.legs
2017-12-28 17:13:02 +01:00
Jannis R
965d5393ef
accessibility filters for every profile
2017-12-18 20:01:12 +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
Jannis R
2e113d9520
expose only supported methods, fix test helpers 🐛
2017-11-27 20:33:34 +01:00
Jannis R
3fb0943680
query live movements in an area
2017-11-20 20:19:13 +01:00
Jannis R
33417a6e61
query journey parts
2017-11-20 16:58:45 +01:00
Jannis R
e762f30f05
VBB-related bugfixes and changes 🐛
2017-11-20 15:25:15 +01:00
Jannis R
2c2826217e
query journeys
2017-11-12 20:02:32 +01:00
Jannis R
c20fd35c67
formatters: add location, change address & poi
2017-11-12 19:54:54 +01:00
Jannis R
eb98123e5b
move out default profile, bugfixes 🐛
2017-11-12 18:06:01 +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