Commit graph

127 commits

Author SHA1 Message Date
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
9ce72930b1
put more todos 2019-10-28 17:42:33 +01:00
Christopher Zentgraf
f92e9336c0 DB departures/arrivals: parse load factor
See https://www.bahn.de/p/view/service/buchung/auslastungsinformation.shtml for reference.
2019-05-28 11:16:51 +02:00
Jannis R
29aea9a5ef
journeys: fix opt.results === null 🐛 2019-03-01 11:37:25 +01:00
Jannis R
16461733e4
Error -> TypeError 💥 2019-02-28 16:45:40 +01:00
Jannis R
a972dad7b8
departures/arrivals, locations, nearby, stop: opt.stationLines -> linesOfStops 💥 📝 2019-02-28 16:45:18 +01:00
Jannis R
8f9b22e296
locations, nearby: opt.stations -> opt.stops 💥 📝 2019-02-28 16:45:18 +01:00
Jannis R
61e7d14531
journeys: let opt.transfers default to -1 💥 📝 2019-02-28 16:45:18 +01:00
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