Milan
fcc53b5d2a
journeys: return object with journeys, earlierRef, laterRef 💥
...
Previously, an array with additional attributes `earlierRef` and `laterRef` was returned.
When JSON-stringified, the attributes were missing.
2019-02-28 16:44:59 +01:00
Jannis R
3bc2eff530
locations: default opt.results to 5 💥 📝
2019-02-28 16:44:58 +01:00
Jannis R
96ff59dc43
leg.id -> leg.tripId 💥
2019-02-28 16:44:36 +01:00
Jannis R
bad0af8e25
rename station(id) -> stop(id) 💥
2019-02-28 16:44:10 +01:00
Jannis R
46e772967a
remove console.error call 🐛
...
[ci skip]
2019-02-28 16:23:54 +01:00
Jannis R
5d0096c596
departures: profile flag for getPasslist & stbFilterEquiv
2018-12-30 18:42:05 +01:00
Jannis R
e867dac2ab
arrivals/departures: opt.stopovers for previous/next stopovers, docs 📝
2018-12-28 22:14:35 +01:00
Jannis R
5beff47dea
radar: fix polylines option 🐛
...
Had to set the default value to `true` to stay backwards-compatible.
2018-12-13 19:30:55 +01:00
Jannis R
9d96902794
readableFrom: make maxDuration optional
...
[ci skip]
2018-11-01 19:39:04 +01:00
Jannis R
02e0e513ef
parse scheduled days of a journey
2018-10-25 18:57:31 +02:00
Jannis R
95839372b5
trip: remove when option, it gets ignored anyways
2018-10-15 20:10:50 +02:00
Jannis R
c6b7aa74dd
VBB supports numF again
2018-09-25 20:19:06 +02:00
Jannis R
035877c368
reachableFrom: retry 🐛
2018-09-03 20:38:56 +02:00
Jannis R
3ac04a0ebd
reachableFrom(loc, [opt]) -> reachableFrom(address, [opt])
2018-09-03 16:43:01 +02:00
Jannis R
b36ccda79d
reachableFrom(loc, [opt])
2018-09-03 16:43:01 +02:00
Jannis R
e98cec1734
remove unused code, minor changes
2018-09-03 15:30:42 +02:00
Jannis R
858fc209bb
fix merge leftover 🐛
2018-08-17 22:05:51 +02:00
Jannis R
abf3661edc
merge next into master
2018-08-17 21:52:40 +02:00
Jannis R
8653e43b2b
refreshJourney: pass through userAgent 🐛
2018-07-25 11:24:01 +02:00
Jannis R
067e807db7
INSA doesn't support refreshJourney 🐛
2018-07-25 10:05:52 +02:00
Jannis R
5b754aaa55
refreshJourney method
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
e6130d7c23
changelog, related libs 📝 , clean up code
2018-07-16 11:36:27 +02:00
Jannis R
1551943fdb
option: departures/arrivals at related stations
...
With default `true`
- because it seems to be the sensible default configuration
- to stay backwards-compatible
2018-07-10 18:59:59 +02:00
Jannis R
4a454917dd
rename profile.journeyLeg to profile.trip 💥
2018-07-07 21:19:28 +02:00
Jannis R
ab5ca3db8b
rename journeyLeg() to trip() 💥 , adapt tests
2018-07-07 21:19:28 +02:00
Jannis R
fccd3d0037
journeys: startWithWalking with default true ✨
...
cherry-picked 9305a12
from next
2018-06-30 14:38:11 +02:00
Jannis R
31973431ff
option not to parse remarks
2018-06-28 13:45:56 +02:00
Jannis R
58f183506e
option to parse station lines, default off 💥 , adapt docs 📝
2018-06-28 13:04:03 +02:00
Jannis R
eeb9ec2535
add todos, migrating to 3.x guide, related repos 📝
2018-06-27 11:49:57 +02:00
Jannis R
ac9819b1dd
query arrivals ✨ , docs 📝
2018-06-26 18:13:41 +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
b02f012b18
parse fn signatures: bugfixes 🐛
2018-06-26 11:48:30 +02:00
Jannis R
9305a129a8
journeys: startWithWalking with default true ✨
2018-06-25 18:34:10 +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
3e18f5d415
gitignore lockfile, add & remove todos, minor changes
2018-06-13 20:25:56 +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
665bed9f79
rename location(id) -> station(id) 💥
...
see #17 for reasons
closes #17
2018-06-10 14:47:29 +02:00
Jannis R
fa2cdc5177
pass warnings into parsers, apply warnings to journey legs
2018-06-07 18:48:45 +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
856a751b51
journeys: make opt.departure & opt.arrival mutually exclusive
2018-05-30 16:39:51 +02:00
Jannis R
c82ad234e0
journeys: opt.when -> opt.departure/opt.arrival 💥
2018-05-30 16:39:51 +02:00
Jannis R
deb88297a0
journeys: whenRepresents option
2018-05-24 22:06:46 +02:00
Jannis R
6063fa6651
journeys: fix polylines option 🐛
2018-05-24 21:54:25 +02:00
Jannis Redmann
bebb975584
Merge branch 'next' into format-location-err-msg
2018-05-24 10:28:18 +02:00
Jannis R
431574b756
parseJourneyLeg, parseMovement: use parsePolyline 💥 , refactor
2018-05-24 10:26:24 +02:00