Commit graph

180 commits

Author SHA1 Message Date
Andreas Schildbach
84dbc788ab Clear warnings about unused variables and methods. 2015-02-06 11:07:41 +01:00
Andreas Schildbach
0210b4b219 EFA: Fix coordinates in <itdCoordinateBaseElemList> parsed too big by factor 1E6. 2015-02-05 23:44:44 +01:00
Andreas Schildbach
bb5314f7ec EFA: Fix parsing of unset planned/predicted times in mobile trips query. 2015-02-05 23:44:34 +01:00
Andreas Schildbach
fd3a932957 EFA: Fix parsing of empty <nu> in mobile trips query. 2015-02-05 23:44:34 +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
589cf69063 Fix rounding errors when parsing coordinates. Add location constructors that take a Point rather than lat and lon. 2015-01-28 23:52:50 +01:00
Andreas Schildbach
3c5dc7c328 Introduce AbstractNetworkProvider.parsePosition() for custom parsable positions. 2015-01-27 14:44:54 +01:00
Andreas Schildbach
e386dac23e EFA: Fix network attribute parsing in <itdServingLine>. 2015-01-27 14:42:21 +01:00
Andreas Schildbach
0b42b39fd7 EFA: Check for empty document. 2015-01-27 14:37:47 +01:00
Andreas Schildbach
70c1037bc4 EFA: Set language in all requests. 2015-01-27 14:35:18 +01:00
Andreas Schildbach
864783fed0 EFA: Fix exception when JSON stopfinder doesn't find anything. 2015-01-27 14:32:52 +01:00
Andreas Schildbach
5fc143196e EFA: <paramList> in <infoLink> is now optional. 2015-01-27 14:31:01 +01:00
Andreas Schildbach
bb03f45f53 EFA: Fix parsing of itdOdv and handling of location IDs. 2015-01-27 14:21:36 +01:00
Andreas Schildbach
a5f59319aa Lines. 2015-01-25 10:21:15 +01:00
Andreas Schildbach
d69506b7c1 Configure session cookies for scraping. 2015-01-09 18:42:32 +01:00
Andreas Schildbach
55a30f56de Clean up scrape methods. 2015-01-09 18:42:17 +01:00
Andreas Schildbach
06a0d12b0f Update year of copyright. 2015-01-01 01:52:27 +01:00
Andreas Schildbach
11f12a0386 Lines. 2014-11-24 10:57:07 +01:00
Andreas Schildbach
05b5a56cd5 In mobile trips query (EFA), skip parsing of <seqroutes> and make <tcs> optional. 2014-10-19 09:22:02 +02:00
Andreas Schildbach
7a467473b9 Disable useProxFootSearch generally for VRR. 2014-09-18 10:43:01 +02:00
Andreas Schildbach
cac53970f7 Skip places without name in xmlCoordRequest and nearbyStationsRequest (EFA). 2014-09-18 10:40:59 +02:00
Andreas Schildbach
6e2aa29eca Allow specifying time when querying for departures. 2014-09-05 20:06:35 +02:00
Andreas Schildbach
4d46299fb1 Fix NetworkProvider.hasCapabilities(). 2014-08-29 10:03:20 +02:00
Andreas Schildbach
36e52ae4ee Work around VRR cannot deal with useProxFootSearch=1 on large departure monitor requests. 2014-08-27 16:15:31 +02:00
Andreas Schildbach
c11a23ba08 Fix exception when parsing type 'buildingname' in JSON stopfinder (EFA). 2014-08-26 16:43:56 +02:00
Andreas Schildbach
9b1ece6cdf Lines. 2014-08-26 16:43:56 +02:00
Andreas Schildbach
0b5ee4ffb7 Rename XmlPullUtil.exit() to skipExit(). 2014-08-14 23:58:46 +02:00
Andreas Schildbach
4c17bf10eb Fix NPE when parsing messages (EFA). 2014-08-14 23:53:57 +02:00
Andreas Schildbach
c0c033cfcd Fix timezone for time in departures query (EFA). Thanks to Simon Woker for catching this. 2014-07-30 00:29:01 +02:00
Andreas Schildbach
a63f7d727d Make sure nearby stations are not taken into account when querying for departures (EFA). 2014-07-30 00:29:01 +02:00
Andreas Schildbach
68989ec451 Sort suggested locations by hit quality. 2014-07-24 11:59:11 +02:00
Andreas Schildbach
e691e7c2fb Migrate time zone from abstract method to simple property. 2014-07-24 11:59:11 +02:00
Andreas Schildbach
bff85b9f6c Use our own exception type for HTTP_NOT_FOUND, rather than reusing FileNotFoundException. 2014-07-24 11:59:11 +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
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
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
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
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
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
751338cbe1 Normalize station ids when passing them to Hafas or EFA APIs. 2014-06-18 12:36:55 +02:00