Commit graph

1875 commits

Author SHA1 Message Date
Andreas Schildbach
eb47808fef VRS: Handle some errors when querying trips. 2017-01-21 01:24:30 +01:00
Andreas Schildbach
14262153d9 HttpClient: Relax timeouts a bit. 2017-01-21 01:24:30 +01:00
Patrick Kanzler
a9e254c3ae AbstractNavitiaProvider: Fix NullPointerException.
4f7bd832e6 introduced a
NullPointerException in AbstractNavitiaProvider.
The call to Context() in line 970 calls prevQueryUrl.toString() and
nextQueryUrl.toString().
The variables are however null in the case that the search returned
only one result. The easiest way to reproduce this is searching
for two very near locations. The result will then be one walk-route.
This commit fixes the NPE by restoring the old behavior and has been
tested in Transportr.
2017-01-18 14:44:01 +01:00
Andreas Schildbach
0f77095d65 VRS: Fix product filter when querying trips. 2017-01-13 17:32:11 +01:00
Andreas Schildbach
dee663ea54 Remove Melbourne. PTV has shut or locked down their EFA. 2017-01-13 12:30:38 +01:00
Clayton Craft
e965593be9 Navitia: Add support for us-or region (Oregon). 2017-01-06 11:08:58 +01:00
full-duplex
ddd26c3799 MERSEY, MVV, NASA, NS, NVBW, SNCB, VRR: Update API base to HTTPS. 2017-01-03 11:07:38 +01:00
Andreas Schildbach
4f7bd832e6 Use HttpUrl and HttpUrl.Builder where possible. 2017-01-03 10:59:30 +01:00
Andreas Schildbach
e50098f092 HttpClient: Remove unused request encoding parameter. 2017-01-02 19:41:37 +01:00
Andreas Schildbach
349aee9aac Make setters concatenable. 2016-12-25 09:52:25 +01:00
Andreas Schildbach
86b2d5a2f3 Support for network proxies. 2016-12-25 01:34:30 +01:00
Andreas Schildbach
1e6f55d6ba EFA, Hafas: 'Locomore' line. 2016-12-20 19:54:32 +01:00
Andreas Schildbach
e2f39f2d8f Mersey: Line. 2016-12-20 18:34:23 +01:00
Andreas Schildbach
96b10d4314 VVT: Update API base to HTTPS. 2016-12-15 17:40:10 +01:00
Andreas Schildbach
67827d23ed VMOBIL: Update API base to HTTPS. 2016-12-15 17:39:54 +01:00
Andreas Schildbach
140e645268 OOEVV: Update API base to HTTPS. 2016-12-15 17:39:24 +01:00
Andreas Schildbach
97fb0f55c9 BSVAG: Update API base to HTTPS. 2016-12-12 21:00:04 +01:00
Andreas Schildbach
eee680dc31 BVG: Update line styles. 2016-12-12 18:00:42 +01:00
Andreas Schildbach
a0a5db7a02 AbstractNavitiaProvider: Fix some exception messages. 2016-12-12 12:48:34 +01:00
Torsten Grote
976e5567d7 AbstractNavitiaProvider: Handle section type 'on_demand_transport'. 2016-12-12 12:48:17 +01:00
Andreas Schildbach
ff085d1245 LineDestination.equals(): Compare only uniqueShortName() of destination location. This works around a rare case of Hafas destinations having IDs of other locations. Also, there are sometimes different IDs for almost the same locations. 2016-12-12 12:20:11 +01:00
Andreas Schildbach
2da1a0290c KVV: Styles for new S-Bahns. 2016-12-12 12:12:38 +01:00
Andreas Schildbach
35265f58cc Update OkHttp to 3.5.0. 2016-12-04 01:06:57 +01:00
Andreas Schildbach
6a195c9b1d GVH: Fix suggest locations coverage. 2016-11-27 16:41:24 +01:00
Andreas Schildbach
c70529e4d9 Lines. 2016-11-27 16:41:12 +01:00
Andreas Schildbach
2de9f14e4d LineDestination.equals(): Compare all fields of destination location. This works around a rare case of Hafas destinations having IDs of other locations. 2016-11-24 13:22:29 +01:00
Andreas Schildbach
1c250f367a SVV: Trust all certificates. The Comodo CA certificate isn't trusted by older devices. 2016-11-23 23:54:46 +01:00
Andreas Schildbach
12a67df357 HttpClient: Allow trusting all certificates. 2016-11-23 23:54:46 +01:00
Andreas Schildbach
d9fe9374df HttpClient: Allow certificate pinning. 2016-11-23 23:54:46 +01:00
Patrick Kanzler
07af91b997 VGN: Fix queries only for stations when suggesting locations. 2016-11-23 23:54:46 +01:00
Andreas Schildbach
6df550ea80 EFA: Parse multiple <itdMessage> after <itdDepartureMonitorRequest> and <itdTripRequest>. 2016-11-21 11:24:44 +01:00
Andreas Schildbach
1587f7fa9f Add XmlPullUtil.optSkipMultiple() and use it where possible. 2016-11-21 11:24:44 +01:00
Andreas Schildbach
30cc003038 Use XmlPullUtil.optSkip() where possible. 2016-11-21 11:24:44 +01:00
Andreas Schildbach
45cc8de41c Hafas: Handle JSON API error FAIL 'HCI Service: request failed'. 2016-11-21 11:24:44 +01:00
Andreas Schildbach
1f087f1b99 Lines. 2016-11-21 11:24:44 +01:00
Andreas Schildbach
3317396dbc EFA: Handle missing destination in <m> elements in mobile locations query. 2016-11-21 11:24:44 +01:00
Andreas Schildbach
77a69bc9c0 Remove JET (Jerusalem). 2016-11-21 11:24:44 +01:00
Andreas Schildbach
707727c68a Remove San Francisco. 2016-11-21 11:12:33 +01:00
Andreas Schildbach
b39cbe0d19 Update Guava to 20.0. 2016-11-09 13:22:10 +01:00
Andreas Schildbach
9782a42f3b Update JUnit to 4.12. 2016-11-09 13:20:46 +01:00
Andreas Schildbach
688a256f78 Update slf4j to 1.7.21. 2016-11-09 13:19:58 +01:00
Andreas Schildbach
7d4770ea8c Update OkHttp to 3.4.2. 2016-11-09 13:17:48 +01:00
Andreas Schildbach
7d131a57f2 VRS: Use patterns for parsing positions from departures. 2016-11-08 10:43:31 +01:00
Andreas Schildbach
a844c5bc56 EFA: Parse serverID from <itdRequest>. 2016-11-07 23:08:44 +01:00
Andreas Schildbach
a932f98099 HttpClient: Get rid of useless pre-allocation of buffer. 2016-11-04 16:49:38 +01:00
Andreas Schildbach
f05eb5079f HttpClient: Double peek size. 2016-11-04 16:49:10 +01:00
Andreas Schildbach
6136ec7fb0 Lines. 2016-11-04 10:10:04 +01:00
Andreas Schildbach
e48a68a240 EFA: Silently ignore coordinates on other systems than WGS84. 2016-10-28 16:46:55 +02:00
Andreas Schildbach
40763ef6f6 EFA: If there is no <itdServingLine>, we assume the station ID is invalid. 2016-10-28 14:36:07 +02:00
Andreas Schildbach
63be2aeb10 Hafas: Parse JSON locations without coordinates. 2016-10-26 15:41:12 +02:00