Jannis R
871db25bc9
parse more hints, add todos
2018-06-11 19:50:44 +02:00
Jannis R
3556130f6b
parse more hints
2018-06-11 18:41:53 +02:00
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
d909be3b65
parseWarning
2018-06-07 18:46:44 +02:00
Jannis R
b6e37595a5
remarks for journey legs
2018-06-07 16:39:07 +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
f3609ebd80
WIP parse remarks
2018-06-07 15:41:00 +02:00
Jannis R
0775a27d1d
WIP parse remarks
2018-06-01 11:12:54 +02:00
Jannis R
57f3cdb7e0
parseLocation: null as fallback station name
2018-05-25 16:08:17 +02:00
Jannis R
431574b756
parseJourneyLeg, parseMovement: use parsePolyline 💥 , refactor
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
c9e77f3050
merge master into next
2018-05-16 19:41:45 +02:00
Jannis R
48f2cefb5b
parseMovement: expose journey (leg) id
2018-05-16 19:32:11 +02:00
Jannis R
a97e0d31e7
radar: fix polylines parsing 🐛 , 2.7.2
2018-05-16 00:43:08 +02:00
Jannis R
39aac10a17
parseMovement: empty default polylines arr 🐛
2018-05-15 23:04:13 +02:00
Jannis R
9a0bfc39a4
radar: polylines option, return polylines
2018-05-15 19:41:08 +02:00
Jannis R
c435e25390
parseJourneyLeg: null as fallback direction 🐛
2018-05-13 22:52:33 +02:00
Jannis R
2623fc44c6
merge master into next
2018-05-07 11:53:55 +02:00
Jannis R
71d087aa23
refactor polyline parsing, add todo
2018-05-03 00:17:17 +02:00
Jannis R
7c6e87afff
journey legs: return polylines
2018-05-03 00:17:17 +02:00
Jannis R
5d10d76a15
journey legs: parse cycle
2018-04-29 14:29:29 +02:00
Jannis R
d676b8430d
fix journey leg alternatives 🐛
...
- use realtime data if available
- don't filter by departure station (HAFAS IDs are complicated)
2018-04-29 13:41:23 +02:00
Jannis R
3680f1fe94
fix products bitmask parsing 🐛
2018-04-09 19:37:44 +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
005f3f8e4d
remove journey.departure, .arrival, … 💥
...
closes #36
2018-03-21 01:55:31 +01:00
Jannis R
cfd79b1be1
parseJourney: use parseJourneyLeg from profile 🐛
2018-03-21 01:14:37 +01: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
0987383c72
merge master into nah.sh
2018-03-17 17:21:18 +01: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
787b00228e
let parseStopover use parseStationName 🐛
2018-03-17 16:47:34 +01:00
Jannis R
6ba617b1bc
let parseMovement use parseStopover 🐛
2018-03-17 16:47:31 +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
08357dfa9d
parseLine: move mode & products parsing from profiles into main code
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
Julius Tens
58485d53aa
fix products at station
2018-03-14 14:50:34 +01:00
Jannis R
c123d9e451
INSA: enable radar
2018-03-13 21:06:27 +01:00
Jannis R
73c419fadb
fix products parsing 🐛 , fix tests for it ✅
2018-03-13 03:23:03 +01:00
Jannis R
7ce65ca480
departures, journeys: canceled, former scheduled time
...
see public-transport/friendly-public-transport-format#27
2018-03-08 03:28:26 +01:00
Jannis R
fd8eb92806
journeys: add journey.type 🐛
...
To make it FPTF-compliant.
2018-03-02 00:35:55 +01:00
Jannis R
be6d063cf3
journey leg: delay -> departureDelay/arrivalDelay as in docs 🐛
2018-02-01 15:10:37 +01:00
Jannis R
39636f12bf
parse lines at a location
2018-01-26 17:07:36 +01:00
Jannis R
7cd963c344
fix syntax error 🤦
2018-01-23 02:40:41 +01:00
Jannis R
eddf110894
parseLine: don't use prodCtx.num 🐛
2018-01-23 02:37:08 +01:00
Jannis R
0e1bc5e399
merge oebb into master
2018-01-07 17:13:51 +01:00
Jannis R
d7eca5b4d1
expose line operators
...
closes #6
2018-01-05 19:04:24 +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