Commit graph

1587 commits

Author SHA1 Message Date
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
Andreas Schildbach
1be4366acb Migrate Switzerland to binary trips query. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
f7acf1f14f Migrate Kiel, Lübeck & Schleswig-Holstein to binary trips query. 2014-06-18 12:44:36 +02:00
Andreas Schildbach
46a281a2ee Helper method to find the right StationDepartures in QueryDeparturesResult. 2014-06-18 12:40:01 +02:00
Andreas Schildbach
fbaf03969c Strip leading zeros from station IDs when autocompleting (Hafas). 2014-06-18 12:36:55 +02:00
Andreas Schildbach
751338cbe1 Normalize station ids when passing them to Hafas or EFA APIs. 2014-06-18 12:36:55 +02:00
Andreas Schildbach
c4ebd7fbc7 Skip itdMessage in departure monitor result (EFA). 2014-06-18 12:36:55 +02:00
Andreas Schildbach
f1c9c7dab0 Get rid of SOAP dependency, remove Südtiroler Nahverkehr. 2014-06-18 12:34:19 +02:00
Andreas Schildbach
7e0d3d3c18 Update user agent. 2014-06-18 12:32:20 +02:00
Andreas Schildbach
de5ae9d850 Add testcase. 2014-06-18 12:32:20 +02:00
Andreas Schildbach
f60ed08767 ZOB (Zentraler Omnibusbahnhof) is a non-unique name. 2014-06-12 11:15:37 +02:00
Andreas Schildbach
25d25fd839 Lines. 2014-06-12 11:15:37 +02:00
Andreas Schildbach
710d074c47 Detect several on demand lines. 2014-06-04 13:13:37 +02:00
Andreas Schildbach
99ec2eb268 Fix products for Netherlands. 2014-05-15 15:25:41 +02:00
Andreas Schildbach
f5a9e8bb97 Tests for querying the departures of an invalid station ID from Hafas based providers. 2014-05-15 15:25:41 +02:00
Andreas Schildbach
1b987a6b72 Remove Location.toDebugString(), use toString() instead. 2014-05-15 15:25:41 +02:00
Andreas Schildbach
f2b0467f6b Parse requested station name for Hafas station boards. 2014-05-06 12:56:03 +02:00
Andreas Schildbach
5910c13c75 Remove Location.assertId() as IDs are now strings. 2014-05-06 12:56:03 +02:00
Andreas Schildbach
d6c5d98d8a Fix bad line labels for PACA. 2014-05-05 08:48:52 +02:00
Andreas Schildbach
7f5a8d6011 Remove Bremen. 2014-04-30 23:25:07 +02:00
Andreas Schildbach
d8f3dcaf6c Migrate location IDs from int to String. 2014-04-23 13:59:52 +02:00
Kjell Braden
069686c746 Provence-Alpes-Côte d’Azur. 2014-04-17 10:34:00 +02:00
Andreas Schildbach
172e0590d6 Introduce exception for internal server errors. 2014-03-23 13:51:34 +01:00
Andreas Schildbach
d6fbe6669a Fix place parsing of intermediate stops for recent EFA based providers. 2014-03-23 13:51:34 +01:00
Andreas Schildbach
0643bf8de6 Remove Maribor. 2014-02-10 11:31:21 +01:00
Andreas Schildbach
ac941b608b Fix autocomplete coverage for Dresden. 2014-02-10 11:31:21 +01:00
Andreas Schildbach
adca912cc4 Fix autocomplete coverage for Salzburg. 2014-02-10 11:31:21 +01:00
Andreas Schildbach
467299ec99 Fix autocomplete coverage for Lüdenscheid. 2014-02-10 11:31:21 +01:00
Andreas Schildbach
a6d8ce3d7f Fix autocomplete coverage for Graz. 2014-02-10 11:31:21 +01:00
Andreas Schildbach
9e0f79d063 Update API base for Bologna. 2014-02-10 11:03:01 +01:00
Andreas Schildbach
2dd83ef12e Fix autocomplete coverage for Braunschweig. 2014-02-10 11:03:01 +01:00
Andreas Schildbach
9539b74cd6 Fix autocomplete coverage for Freiburg. 2014-02-10 11:03:01 +01:00
Andreas Schildbach
ae00988db7 Fix false positives in Location.equals(). 2014-02-10 11:03:01 +01:00
Andreas Schildbach
b4ac8f72cb Add some autocomplete coverage for Vienna. 2014-02-10 11:03:01 +01:00