Commit graph

58 commits

Author SHA1 Message Date
Andreas Schildbach
176bce0790 AbstractHafasClientInterfaceProvider: Pass 'getConGroups' flag when querying for trips to reduce size of response. 2019-01-10 11:50:37 +01:00
Andreas Schildbach
2550c68771 AbstractHafasClientInterfaceProvider: Parse 'polyG' for the exact path of a trip. 2019-01-09 17:19:52 +01:00
Andreas Schildbach
979a5c95a4 AbstractHafasClientInterfaceProvider: Require API version 1.14 or higher, as older versions are not in use any more. 2019-01-09 17:16:23 +01:00
Andreas Schildbach
d92989cbe7 AbstractHafasClientInterfaceProvider: Derive missing foreground colors in 'icoL'. 2019-01-09 12:40:58 +01:00
Andreas Schildbach
dcf3efa086 AbstractHafasClientInterfaceProvider: Parse 'dPltfS', 'aPltfS', 'dPltfR' and 'aPltfR' as alternatives to the old platforms. 2019-01-08 20:22:05 +01:00
Andreas Schildbach
9b34b91ad4 AbstractHafasClientInterfaceProvider: Parse 'lineId' of 'prodCtx' and use it. 2019-01-08 20:21:49 +01:00
Andreas Schildbach
e1568f32e5 AbstractHafasClientInterfaceProvider: Parse 'crdSysL' and verify all coordinates are WGS84. 2019-01-08 20:20:05 +01:00
Andreas Schildbach
04673aadea AbstractHafasClientInterfaceProvider: Parse 'icoL' and product references to icoL entries. 2019-01-08 20:15:31 +01:00
Andreas Schildbach
f3355605c6 Standardize on new lines at end of file. 2019-01-08 17:33:18 +01:00
Andreas Schildbach
e2dafd2874 AbstractHafasClientInterfaceProvider: Handle CGI_NO_SERVER error for all queries. 2019-01-07 22:29:50 +01:00
Andreas Schildbach
8e52035ce5 NetworkProvider: Add types parameter to suggestLocations(). 2019-01-06 15:28:24 +01:00
Andreas Schildbach
0ea83a1ad3 NetworkProvider: Add maxLocations parameter to suggestLocations(). 2019-01-06 14:53:11 +01:00
Andreas Schildbach
73cf64278f AbstractHafasClientInterfaceProvider: Getters for configuration properties. 2019-01-05 18:46:53 +01:00
Andreas Schildbach
c5b140b073 AbstractHafasClientInterfaceProvider: Derive checksum and mic/mac salts. 2019-01-05 17:58:32 +01:00
Andreas Schildbach
7117f9e933 AbstractHafasClientInterfaceProvider: Parse 'DEVI' connection section type. 2019-01-04 17:09:29 +01:00
Andreas Schildbach
12f597fe78 AbstractHafasClientInterfaceProvider: Support for 'ext' configuration. 2019-01-04 17:09:01 +01:00
Andreas Schildbach
fe5a2a8453 Migrate from EnumSet<LocationType> in interfaces to just Set<LocationType>. 2019-01-01 18:11:49 +01:00
Andreas Schildbach
4affd18885 AbstractHafasClientInterfaceProvider: Skip cancelled departures on jsonStationBoard(). 2018-12-18 11:14:55 +01:00
Andreas Schildbach
c4576c399e AbstractHafasClientInterfaceProvider: Handle 'HCI Service: problems during service execution' error in jsonStationBoard() and jsonTripSearch(). 2018-12-18 11:14:55 +01:00
Andreas Schildbach
0da46fe14d AbstractHafasClientInterfaceProvider: For now, from API version 1.19 on just ignore the equivs parameter. 2018-12-17 12:58:12 +01:00
Andreas Schildbach
95352d70e1 AbstractHafasClientInterfaceProvider: Suppress deprecation warning for usage of Hashing.md5(). 2018-12-17 12:58:01 +01:00
Andreas Schildbach
a776a0ae89 AbstractHafasClientInterfaceProvider: Test for OK status of results in jsonTripSearchIdentify(). 2018-12-10 10:53:09 +01:00
Andreas Schildbach
907d7f5ad6 AbstractHafasClientInterfaceProvider: Handle Hafas kernel error 'H892'. 2018-12-09 02:33:49 +01:00
Andreas Schildbach
d244deddbc AbstractHafasClientInterfaceProvider: Handle Hafas kernel error 'H886'. 2018-12-06 18:34:04 +01:00
Andreas Schildbach
3591f05aa3 AbstractHafasClientInterfaceProvider: Handle Hafas kernel error 'H887'. 2018-12-01 17:24:03 +01:00
Andreas Schildbach
15d3b40125 AbstractHafasClientInterfaceProvider: Introduce filtering by location type in jsonLocMatch(). 2018-12-01 15:28:16 +01:00
Andreas Schildbach
391ee47f3a AbstractHafasClientInterfaceProvider: Append '?' to constraint in jsonLocMatch(). 2018-12-01 14:25:42 +01:00
Andreas Schildbach
d1f03705d0 AbstractHafasClientInterfaceProvider: Exception message cosmetics. 2018-12-01 12:33:42 +01:00
Andreas Schildbach
a199d757d2 AbstractHafasClientInterfaceProvider: Handle CGI_READ_FAILED error in all queries. 2018-12-01 12:33:35 +01:00
Andreas Schildbach
21fbce08f7 AbstractHafasClientInterfaceProvider: 'errTxt' is always optional. 2018-12-01 12:23:53 +01:00
Andreas Schildbach
724f8a23e3 AbstractHafasClientInterfaceProvider: Parse 'nameS' (short name) in 'prodL' entries. 2018-11-30 18:41:19 +01:00
Andreas Schildbach
bf1eb524e4 AbstractHafasClientInterfaceProvider: Ignore errors in ServerInfo responses. 2018-11-27 15:34:50 +01:00
Andreas Schildbach
667166bbc9 AbstractHafasClientInterfaceProvider: Handle CGI_READ_FAILED error in jsonTripSearch(). 2018-11-27 15:25:50 +01:00
Andreas Schildbach
b370effeae AbstractHafasClientInterfaceProvider: Handle missing 'code' in 'remL' entry. 2018-11-26 17:57:23 +01:00
Andreas Schildbach
5056548975 AbstractHafasClientInterfaceProvider: Handle missing 'txtN' in 'remL' entry and try 'txtS' first. 2018-11-26 17:55:43 +01:00
Andreas Schildbach
d2019aef57 AbstractHafasClientInterfaceProvider: Handle missing dProdX in jnyL.stbStop when querying for departures. 2018-11-26 17:55:31 +01:00
Andreas Schildbach
874198b621 AbstractHafasClientInterfaceProvider: Split unidentified destination as if it were a station. 2018-11-17 17:26:48 +01:00
Andreas Schildbach
28dd2c8033 ZVV: Replace some line numbers by the line name. 2018-11-17 14:00:22 +01:00
Andreas Schildbach
db7b4c8a0d AbstractHafasClientInterfaceProvider: Allow configuration of the endpoint. 2018-11-16 21:57:36 +01:00
Andreas Schildbach
52e6fc3aab AbstractHafasClientInterfaceProvider: Avoid infinite parseLoc() recursions. 2018-11-16 14:36:41 +01:00
Andreas Schildbach
e6474db222 Point: Store coordinate as pair of double, rather than 1E6 ints.
This makes the lat/lon member variables private and adds 1E6 variants for getters and the static constructor.
Also, Location now stores a Point for its coordinate, rather than 1E6 ints. The 1E6-based constructors have been removed.
2018-11-16 01:41:14 +01:00
Andreas Schildbach
a7f6abc4b9 AbstractHafasClientInterfaceProvider: Parse product numbers. 2018-11-15 19:05:24 +01:00
Andreas Schildbach
b025ca004e AbstractHafasClientInterfaceProvider: Handle when jsonTripSearchIdentify() is called with an already identified location. 2018-11-14 00:33:47 +01:00
Andreas Schildbach
97513c23f5 AbstractHafasClientInterfaceProvider: Fix handling of null products and walkSpeed in jsonTripSearch(). 2018-11-14 00:32:33 +01:00
Andreas Schildbach
e88a4983e6 AbstractHafasClientInterfaceProvider: Migrate requestChecksumSalt and requestMicMacSalt to byte arrays, to make them independent of base-encoding. 2018-11-12 14:51:41 +01:00
Andreas Schildbach
2843b9f33d AbstractHafasClientInterfaceProvider: When resolving locations when querying trips, only request 1 location. 2018-11-09 00:58:04 +01:00
Andreas Schildbach
601572ebde AbstractHafasClientInterfaceProvider: Parse server time. 2018-11-05 19:59:07 +01:00
Ialokim
79ff93b80f NetworkProvider: queryTrips() now uses a TripOptions field for products, optimize, walkSpeed, accessibilty and options.
The old queryTrips() variant is now deprecated.
2018-11-05 19:57:33 +01:00
Andreas Schildbach
16b21c3366 AbstractHafasClientInterfaceProvider: Distinct server product for HCI. 2018-10-30 11:03:44 +01:00
Andreas Schildbach
ddb011c9e4 AbstractHafasClientInterfaceProvider: Pass 'getPasslist' again for querying trips, otherwise intermediate stops could be missing. 2018-10-30 11:00:38 +01:00