Commit graph

34 commits

Author SHA1 Message Date
Jannis R
e98cec1734
remove unused code, minor changes 2018-09-03 15:30:42 +02:00
Jannis R
b5b2cfb38f
put leg-wide remarks into leg, not stopovers
[ci skip]
2018-07-16 14:43:01 +02:00
Jannis R
9c1c2f51e5
parse leg remarks even if it is a walking leg 🐛 2018-07-16 12:18:26 +02:00
Jannis R
2a6f1f9183
transfer flag for walking legs
[ci skip]
2018-07-07 14:14:25 +02:00
Jannis R
2f40c20175
parse TRSF legs as walking 🐛, add todos 2018-07-02 16:49:21 +02:00
Jannis R
bb6e42a662
walking legs: expose distance 2018-06-28 14:12:25 +02:00
Jannis R
31973431ff
option not to parse remarks 2018-06-28 13:45:56 +02:00
Jannis R
eeb9ec2535
add todos, migrating to 3.x guide, related repos 📝 2018-06-27 11:49:57 +02:00
Jannis R
f5eceafdf3
merge refactor-parse-fns into next 2018-06-26 13:07:06 +02:00
Jannis R
a8aa2652df
parseJourneyLeg: fix remarks indices 🐛 2018-06-25 13:54:30 +02:00
Jannis R
0db84ce644
merge remarks into next 2018-06-25 13:20:13 +02:00
Jannis R
ebe4fa64d8 opt.passedStations -> opt.stopovers 💥 2018-06-19 08:23:49 +02:00
Jannis R
6611f262bf leg.passed -> leg.stopovers 💥
Some didn't unterstand what "passed" means in this context.
"stopovers" is a lot less ambiguous; Also, it aligns with
`parseStopover` and FPTF.
2018-06-19 08:23:49 +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
6ca7924f7b
parsePolyline: profile 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
871db25bc9
parse more hints, add todos 2018-06-11 19:50:44 +02:00
Jannis R
d3d23140fd
(more) remarks for journeys, journey legs & stopovers 2018-06-11 11:37:00 +02:00
Jannis R
21c273cec7
journey leg passed stations: parse & expose delays 2018-06-07 18:52:47 +02:00
Jannis R
fa2cdc5177
pass warnings into parsers, apply warnings to journey legs 2018-06-07 18:48:45 +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
431574b756 parseJourneyLeg, parseMovement: use parsePolyline 💥, refactor 2018-05-24 10:26:24 +02:00
Jannis R
c435e25390
parseJourneyLeg: null as fallback direction 🐛 2018-05-13 22:52:33 +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
bdad9c6ef6
parseStopover: cancelled arrival & departure 🐛
also clean up parseMovement and add DRY todos
2018-03-17 17:16:03 +01:00
Jannis R
6ba617b1bc
let parseMovement use parseStopover 🐛 2018-03-17 16:47:31 +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
be6d063cf3
journey leg: delay -> departureDelay/arrivalDelay as in docs 🐛 2018-02-01 15:10:37 +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
Jannis R
8985f8ccd2
rename journey.parts -> journey.legs 2017-12-28 17:13:02 +01:00
Renamed from parse/journey-part.js (Browse further)