Commit graph

245 commits

Author SHA1 Message Date
Andreas Schildbach
7dd43f90c5 AbstractEfaProvider: Line. 2017-01-25 00:20:50 +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
1e6f55d6ba EFA, Hafas: 'Locomore' line. 2016-12-20 19:54:32 +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
3317396dbc EFA: Handle missing destination in <m> elements in mobile locations query. 2016-11-21 11:24:44 +01:00
Andreas Schildbach
a844c5bc56 EFA: Parse serverID from <itdRequest>. 2016-11-07 23:08:44 +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
7c30711dcf Lines. 2016-10-23 15:07:29 +02:00
Andreas Schildbach
580f0569e8 EFA: Fix detection of barrier free leg for KVV. 2016-10-23 13:13:32 +02:00
Andreas Schildbach
a60f8b049f AbstractEfaProvider: Simplify instantiation of destination locations. 2016-10-22 14:52:44 +02:00
Andreas Schildbach
74d552d187 Migrate all HTTP calls to use OkHttp rather than URLConnection. 2016-09-25 19:53:31 +02:00
Andreas Schildbach
4c64746e75 Switch to Java 7.
Notes regarding Android compatibility:
- The 'try-with-resources' language feature needs API level 19, so don't use it.
  All other language features can be used back to API level 8.
- The JDK 1.7 API still isn't fully implemented, so better stick with 1.6 for now.
2016-09-25 19:53:31 +02:00
Andreas Schildbach
931dafb628 Switch to modern code format. Organize imports. No functional changes.
Java sources use Eclipse 4.5 'Java Conventions' with indentation changed to 4 spaces only per level.
2016-09-08 18:26:01 +02:00
Andreas Schildbach
7c79f55682 Lines. 2016-08-30 09:02:47 +02:00
Andreas Schildbach
ab2f62a0db EFA: Handle empty <de> element in mobile locations query. 2016-07-31 14:20:21 +02:00
Andreas Schildbach
b2a1f94e55 EFA: Ignore new <optval>, <gix> and <prid> elements in mobile XML API. 2016-07-31 14:20:16 +02:00
Andreas Schildbach
958fdc724a EFA: Ignore <genAttrList /> element in itdStopSeq/itdPoint. 2016-07-18 17:14:44 +02:00
Andreas Schildbach
1cd17a1814 EFA: Handle missing destinations in departure monitor, again. 2016-07-03 10:59:50 +02:00
Andreas Schildbach
da0580b64f EFA: Ignore <itdAddOdvSeq /> element. 2016-07-03 10:59:50 +02:00
Andreas Schildbach
d6d3371de2 Lines. 2016-05-23 15:55:44 +02:00
Andreas Schildbach
57f12818da EFA: Parse new <stateless>, <tco> and <alt> tags in mobile XML API. 2016-04-07 20:13:07 +02:00
Andreas Schildbach
cb61798228 EFA: Fix server detected as down sometimes when querying for suggested locations. 2016-04-07 20:13:07 +02:00
Andreas Schildbach
f4caea8dfd EFA: Handle missing destinations in departure monitor. 2016-04-07 20:12:32 +02:00
Andreas Schildbach
7b92f6ed18 EFA: Ignore multiple <omcTaxi> tags when querying for trips. 2016-02-19 10:33:52 +01:00
Andreas Schildbach
f4a360615f EFA: Fix parsing of <motDivaParams />. 2016-01-10 00:12:48 +01:00
Andreas Schildbach
35c82481b5 EFA: Handle missing message code when querying for locations via JSON. 2016-01-10 00:12:48 +01:00
Andreas Schildbach
51d92a61e1 Bayern: Parse some value tags as optional. 2015-12-21 12:11:55 +01:00
Andreas Schildbach
6c1ee94b91 Lines. 2015-12-05 19:29:16 +01:00
Andreas Schildbach
e60eabaa92 EFA: Parse message code when querying for locations via JSON. 2015-12-05 19:26:57 +01:00
Andreas Schildbach
94adb91a25 EFA: Ignore <omcTaxi> tag when querying for trips. 2015-12-05 19:26:57 +01:00
Andreas Schildbach
8113f8b775 EFA: Make parsing of server time ('now' attribute) optional. 2015-12-05 19:26:57 +01:00
Andreas Schildbach
f0b33c97e2 EFA: Correctly parse positions when using mobile XML API. 2015-12-05 19:26:57 +01:00
Andreas Schildbach
7af27c855b VVO: Use realtime data for Dresden again. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
8b22bdb117 Bavaria: Fix parsing of empty delay. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
42021b2498 Lines. 2015-10-31 14:49:37 +01:00
Andreas Schildbach
d6e03d7bc0 HttpClient: Support for custom request content types. 2015-09-26 10:04:08 +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
f4974bc8f2 EFA: Trip optimization for least duration, least changes or least walking. 2015-06-06 00:36:27 +02:00
Andreas Schildbach
62d84eaf33 Lines. 2015-05-21 00:31:21 +02:00
Andreas Schildbach
3c24af6d74 EFA: Fix ordering of itdMessageList and clientHeaderLines tags. 2015-05-04 08:10:13 +02:00
Andreas Schildbach
e43c676a34 EFA: More explicit handling of inclMOT_11 parameter. 2015-05-04 08:09:57 +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
009c31ed12 EFA: Uppercase Fare.network. 2015-04-01 17:27:59 +02:00