Commit graph

2020 commits

Author SHA1 Message Date
Andreas Schildbach
0999b3ba7f Extract AbstractHttpException from HTTP related exceptions and provide access to error content. 2014-07-24 11:59:11 +02:00
Andreas Schildbach
1643e12e24 Update user agent. 2014-07-24 11:59:11 +02:00
Andreas Schildbach
ea4b5441e7 Add 'Zentrum' to names that need places in their unique form. 2014-07-24 11:59:11 +02:00
Andreas Schildbach
defb006745 Make NetworkProvider.getArea() throw IOException. 2014-07-15 00:30:32 +02:00
Andreas Schildbach
f25ab9658c Remove redirect detection from BvgProvider because redirects are now detected by ParserUtils.scrape() already. 2014-07-13 13:38:55 +02:00
Andreas Schildbach
addf81860e Parse CAR leg type in binary trips result (Hafas). 2014-07-12 00:17:34 +02:00
Andreas Schildbach
c39a49eed2 Göttingen & Südniedersachsen. 2014-07-12 00:17:27 +02:00
Andreas Schildbach
83d42d070d Fix crash when parsing certain locations without coordinates (EFA). 2014-07-09 16:42:15 +02:00
Andreas Schildbach
00b0f014ca Rename NetworkProvider.autocompleteStations() to .suggestLocations() and change return type to SuggestLocationsResult. 2014-07-09 16:42:14 +02:00
Andreas Schildbach
d38d6e499b Lines. 2014-07-07 23:08:17 +02:00
Andreas Schildbach
9bfa490c8e Remove support for unused MLcReq (Hafas). 2014-07-07 23:08:17 +02:00
Andreas Schildbach
64d243cbcb Migrate Ingolstadt to auto-complete via getstops endpoint. 2014-07-07 23:08:08 +02:00
Andreas Schildbach
6d0ebb8a51 Migrate Luxembourg to auto-complete via getstops endpoint. 2014-07-07 23:08:08 +02:00
Andreas Schildbach
52dc7d7404 Migrate Poland to auto-complete via getstops endpoint. 2014-07-07 23:08:08 +02:00
Andreas Schildbach
befa3e191e Migrate Leipzig, Halle & Sachsen-Anhalt to auto-complete via getstops endpoint. 2014-07-07 23:08:08 +02:00
Andreas Schildbach
6c0f2968c4 Migrate Zurich to auto-complete via getstops endpoint. 2014-07-07 23:08:01 +02:00
Andreas Schildbach
76312cb70a Migrate Kiel, Lübeck & Schleswig-Holstein to auto-complete via getstops endpoint. 2014-07-07 23:08:01 +02:00
Andreas Schildbach
7ddac5813d Migrate Copenhagen to auto-complete and query for nearby stations via getstops endpoint. 2014-07-07 23:08:01 +02:00
Andreas Schildbach
b265dd03cb Make auto-complete via getstops endpoint default (Hafas). 2014-07-07 23:08:00 +02:00
Andreas Schildbach
92790d5cab Fix parsing of multiple infoLink tags (EFA). 2014-07-05 19:50:17 +02:00
Andreas Schildbach
0dc08c103a Consolidate XmlPullUtil API for pure value tags. 2014-07-05 19:50:17 +02:00
Andreas Schildbach
7f9755d896 Added 'Bf' to names that need places in their unique form. 2014-07-05 19:50:17 +02:00
Andreas Schildbach
599029b261 List products used by a trip. 2014-07-05 19:50:17 +02:00
Andreas Schildbach
82674cef74 Parse 'transfer' legs for mobile EFA. 2014-07-05 19:50:17 +02:00
Andreas Schildbach
133c8c5525 Fix parse error for a no-trips case (EFA). 2014-07-05 19:50:17 +02:00
Andreas Schildbach
f96c5df431 Work around broken XML for Leipzig. 2014-07-05 19:50:17 +02:00
Andreas Schildbach
dc6256df91 Fix products for Belgium. 2014-07-05 19:50:16 +02:00
Andreas Schildbach
3eed013c47 Fix products for Luxembourg. 2014-07-05 19:50:16 +02:00
Andreas Schildbach
e3108b8ea7 Fix products for Kiel, Lübeck & Schleswig-Holstein. 2014-07-05 19:50:16 +02:00
Andreas Schildbach
c26134b201 Fix products for Switzerland. 2014-07-05 19:50:16 +02:00
Andreas Schildbach
66a1afc79b Fix test cases for Switzerland. 2014-07-05 19:50:16 +02:00
Andreas Schildbach
f268772820 Move test for expired session into ParserUtils 2014-07-05 19:50:12 +02:00
Andreas Schildbach
cbf19ab96e When failing to parsing XML, always include the first part of the content into ParseException. 2014-07-05 19:50:12 +02:00
Andreas Schildbach
6c02caf0f4 Parse disruptions of binary trips result (Hafas). 2014-07-05 19:50:12 +02:00
Andreas Schildbach
a29fe3811e Parse bits for cancelled arrivals and departures. 2014-07-05 19:50:12 +02:00
Andreas Schildbach
12e08bbb40 When scraping, detect several alternative forms of redirects. 2014-07-01 22:05:48 +02:00
Andreas Schildbach
5e47d29312 Handle HTTP status '401 UNAUTHORIZED'. 2014-07-01 21:57:47 +02:00
Andreas Schildbach
27894dbf78 Make ParserUtil.scrape() use .scrapeInputStream(). It duplicated a lot of code. Add testcase for detecting redirect by http-equiv meta tag. 2014-07-01 21:57:47 +02:00
Andreas Schildbach
6438b71fad Append first few characters of departure monitor result (EFA) to exception, for debug purposes. 2014-07-01 21:57:47 +02:00
Andreas Schildbach
4591eede54 Append first few characters of binary trips result (Hafas) to exception, for debug purposes. 2014-07-01 21:57:47 +02:00
Andreas Schildbach
67db7d7b2d Fix usage of Java6 API. 2014-06-18 16:10:16 +02:00
Andreas Schildbach
84d47b6202 Use FileNotFoundException in favour of own NotFoundException on HTTP status "not found". 2014-06-18 13:54:13 +02:00
Andreas Schildbach
7fcaf904dd Make sure scraped input streams are always buffered, so they can be peeked into. 2014-06-18 13:54:13 +02:00
Andreas Schildbach
8bcdc7aa14 Default to binary trips query for Hafas based providers. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
6527c89c18 Migrate Denmark to binary trips query. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
e0c6a16753 Migrate Poland to binary trips query. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
99269c30aa Migrate Europe to binary trips query. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
742e1acda4 Migrate Belgium to binary trips query. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
ebd55a30c7 Migrate Zurich to binary trips query. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
6b67f317ad Migrate Luxembourg to binary trips query. 2014-06-18 12:44:36 +02:00