Commit graph

214 commits

Author SHA1 Message Date
Andreas Schildbach
b70a3c5258 Hafas: Handle unidentified from/to locations passed into jsonTripSearch(). 2015-10-31 14:49:37 +01:00
Andreas Schildbach
db63fec2db Hafas: Handle JSON API error H891 'No route found'. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
db5bbd9228 Hafas: Handle JSON API error H9360 'Date outside of the timetable period'. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
c1a309f938 Hafas: Normalize product names received from JSON API. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
75ef5290ba Hafas: Work around embedding of italics HTML tags in station board XML. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
572909f8ed Hafas: Handle h2g error 19. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
42021b2498 Lines. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
4c851ae4c5 Migrate Liechtenstein, Bregenz & Vorarlberg to use VAO. 2015-09-26 10:04:08 +02:00
Andreas Schildbach
d6e03d7bc0 HttpClient: Support for custom request content types. 2015-09-26 10:04:08 +02:00
Andreas Schildbach
ccd0378be0 Hafas: Handle h2g error 13. 2015-09-26 09:57:52 +02:00
Andreas Schildbach
f330f0d799 Hafas: Fix exception message in intToProduct(). 2015-09-26 09:57:52 +02:00
Andreas Schildbach
0ae2fe45d0 Hafas: Parse another cancelled departure case in XML station board. 2015-09-14 16:44:55 +02:00
Andreas Schildbach
4138966cf9 Hafas: Parse AdminCode line attribute. 2015-09-14 16:44:55 +02:00
Johan von Forstner
7588431354 SH: Line colors for Kiel buses. 2015-09-14 16:41:47 +02:00
Andreas Schildbach
8b93e6135a Hafas: Set up default API endpoints in the constructor. 2015-09-13 16:08:00 +02:00
Andreas Schildbach
10d04bcb39 Hafas: Use setters for non-standard character encodings, rather than the constructor parameter. 2015-09-13 16:08:00 +02:00
Andreas Schildbach
27f60db22b Hafas: Parse products for stations. 2015-09-13 16:08:00 +02:00
Andreas Schildbach
fb6e71ee2b Hafas: Declare individual product map for each provider, rather than implementing intToProduct() and setProductBits(). 2015-09-13 16:08:00 +02:00
Andreas Schildbach
5048e826dc Hafas: Handle unparsable XML when querying for departures. 2015-09-11 19:02:29 +02:00
Andreas Schildbach
26199d7ec3 Hafas: Handle invalid station ID when querying for nearby stations by ID. 2015-09-11 11:40:07 +02:00
Andreas Schildbach
966b248d50 Lines. 2015-07-30 21:13:47 +02:00
Andreas Schildbach
00a395a9ad Extract HttpClient into own class which can keep state (cookies and configuration for now). 2015-07-19 14:22:55 +02:00
Andreas Schildbach
07a0b8b535 Hafas: Handle h2g errors 9280 and 9300. 2015-07-17 10:23:47 +02:00
Andreas Schildbach
f12c9db7e9 Hafas: Set clientType by default. 2015-07-17 10:23:47 +02:00
Andreas Schildbach
9bef580434 Hafas: Fix handling of lines with unknown product. 2015-07-01 18:42:16 +02:00
Andreas Schildbach
d934dfa0d4 Hafas: Handle h2g error 207. 2015-07-01 18:42:16 +02:00
Andreas Schildbach
00029ecddc Hafas: Assert for non-presence of <StationTable> and <St> on station board. 2015-06-15 19:31:25 +02:00
Andreas Schildbach
f4974bc8f2 EFA: Trip optimization for least duration, least changes or least walking. 2015-06-06 00:36:27 +02:00
Andreas Schildbach
7545abea7a Assert for valid stationId in queryDepartures(). 2015-04-08 09:42:46 +02:00
Andreas Schildbach
af4f9ab0cc Log network access via slf4j. 2015-04-02 10:24:35 +02:00
Andreas Schildbach
4b65f0145c Introduce location type for plain coordinates. 2015-04-01 17:27:59 +02:00
Andreas Schildbach
95d0a31675 Suppress warnings about missing serialVersionUIDs for the whole project. 2015-03-12 13:18:46 +01:00
Andreas Schildbach
2038a740e2 Include network with Line. 2015-03-02 11:22:52 +01:00
Andreas Schildbach
f48c0ef60e Hafas: If there are predicted times for individual legs, use them. 2015-03-02 11:20:46 +01:00
Andreas Schildbach
322e7cf8cb Include network ID in result header. 2015-02-25 09:09:37 +01:00
Andreas Schildbach
cf651676d2 Migrate network IDs to constant field. 2015-02-25 09:05:01 +01:00
Andreas Schildbach
5b3ceed733 Apply @Nullable annotation to NetworkProvider methods and DTOs. 2015-02-17 17:52:28 +01:00
Andreas Schildbach
883015177e Migrate from using char as a product type to Product enum. Line labels are really just the label and can be null. 2015-02-10 13:56:21 +01:00
Andreas Schildbach
4a8a17f1fe Lines. 2015-02-10 13:34:55 +01:00
Andreas Schildbach
84dbc788ab Clear warnings about unused variables and methods. 2015-02-06 11:07:41 +01:00
Andreas Schildbach
2ab38329c5 Migrate Kiel, Lübeck & Schleswig-Holstein to use XML station board for querying departures. 2015-02-05 17:16:43 +01:00
Andreas Schildbach
dc6af36e12 Fix old departures for Bremen, Bremerhaven & Osnabrück. Same for Rostock. 2015-02-05 16:42:27 +01:00
Andreas Schildbach
4c8f48931c Clear 'potential null pointer access' warnings. 2015-02-05 16:28:59 +01:00
Andreas Schildbach
0a571554c5 Change NetworkProvider.queryTrips() signature to accept a Set of products rather than a Collection. 2015-02-02 10:49:32 +01:00
Andreas Schildbach
8df79805d0 Rename .queryNearbyStations() to .queryNearbyLocations() and make it find POIs too. 2015-02-02 10:41:12 +01:00
Andreas Schildbach
25c2eb6176 Refactor XmlPullParser.getAttributeValue() to use XmlPullUtil.attr() variants. 2015-02-01 23:02:09 +01:00
Andreas Schildbach
806100c868 Guava: Use Charsets constants. 2015-01-29 00:33:39 +01:00
Andreas Schildbach
891c0b64fd Hafas: Extract methods nearbyStationsByCoordinate() and nearbyStationsById(). 2015-01-28 23:57:51 +01:00
Andreas Schildbach
7ff06cc2d4 Hafas: More improvements to splitting place and name, mostly for POIs. 2015-01-28 23:57:30 +01:00
Andreas Schildbach
3c5dc7c328 Introduce AbstractNetworkProvider.parsePosition() for custom parsable positions. 2015-01-27 14:44:54 +01:00