Commit graph

30 commits

Author SHA1 Message Date
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
Andreas Schildbach
d2fe93b16a AbstractHafasClientInterfaceProvider: Handle missing 'stopL' when querying trips. 2018-10-30 11:00:25 +01:00
Andreas Schildbach
96477de706 AbstractHafasClientInterfaceProvider: Support maxLocations when querying for nearby locations.
Also advance all API versions to 1.14, as required by the maxLoc option to LocGeoPos.
2018-10-29 21:52:03 +01:00
Andreas Schildbach
3742467872 AbstractHafasClientInterfaceProvider: Support filtering for stations when querying for nearby locations. 2018-10-29 21:52:03 +01:00
Andreas Schildbach
6e9cfcd00f AbstractHafasClientInterfaceProvider: Handle missing 'errTxt' when an error is signalled. 2018-10-29 21:52:03 +01:00
Andreas Schildbach
61ed999c65 AbstractHafasClientInterfaceProvider: Remove getPasslist option.
It seems to be unnecessary and has been removed from later API versions anyway.
2018-10-27 20:39:33 +02:00
Andreas Schildbach
06cec0c183 AbstractHafasClientInterfaceProvider: Support maxDistance when querying for nearby locations. 2018-10-27 19:19:38 +02:00
Andreas Schildbach
59e6438882 AbstractHafasClientInterfaceProvider: Fix handling of 'err' in header. 2018-10-27 18:12:16 +02:00
Andreas Schildbach
fe86c0498c Rename AbstractHafasMobileProvider to AbstractHafasClientInterfaceProvider. 2018-10-27 17:46:28 +02:00
Renamed from enabler/src/de/schildbach/pte/AbstractHafasMobileProvider.java (Browse further)