Commit graph

56 commits

Author SHA1 Message Date
Andreas Schildbach
b2875ddd31 Update links in license to use HTTPS. 2018-07-15 16:47:49 +02:00
Andreas Schildbach
cbdacd5be5 INVG: Update API base to HTTPS. 2017-08-31 11:36:00 +02:00
Andreas Schildbach
bf510b516d If possible, use generic type inference for constructing objects. 2017-01-28 14:59:03 +01:00
Andreas Schildbach
a0bec90f9a AbstractHafasProvider: Extract AbstractHafasMobileProvider and AbstractHafasLegacyProvider for the two Hafas APIs. 2017-01-26 23:21:53 +01:00
Andreas Schildbach
4f7bd832e6 Use HttpUrl and HttpUrl.Builder where possible. 2017-01-03 10:59:30 +01:00
Andreas Schildbach
74d552d187 Migrate all HTTP calls to use OkHttp rather than URLConnection. 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
8b93e6135a Hafas: Set up default API endpoints in the constructor. 2015-09-13 16:08:00 +02:00
Andreas Schildbach
10d04bcb39 Hafas: Use setters for non-standard character encodings, rather than the constructor parameter. 2015-09-13 16:08:00 +02:00
Andreas Schildbach
fb6e71ee2b Hafas: Declare individual product map for each provider, rather than implementing intToProduct() and setProductBits(). 2015-09-13 16:08:00 +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
9bef580434 Hafas: Fix handling of lines with unknown product. 2015-07-01 18:42:16 +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
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
2038a740e2 Include network with Line. 2015-03-02 11:22:52 +01:00
Andreas Schildbach
322e7cf8cb Include network ID in result header. 2015-02-25 09:09:37 +01:00
Andreas Schildbach
cf651676d2 Migrate network IDs to constant field. 2015-02-25 09:05:01 +01:00
Andreas Schildbach
5b3ceed733 Apply @Nullable annotation to NetworkProvider methods and DTOs. 2015-02-17 17:52:28 +01:00
Andreas Schildbach
883015177e Migrate from using char as a product type to Product enum. Line labels are really just the label and can be null. 2015-02-10 13:56:21 +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
806100c868 Guava: Use Charsets constants. 2015-01-29 00:33:39 +01:00
Andreas Schildbach
7ff06cc2d4 Hafas: More improvements to splitting place and name, mostly for POIs. 2015-01-28 23:57:30 +01:00
Andreas Schildbach
3c5dc7c328 Introduce AbstractNetworkProvider.parsePosition() for custom parsable positions. 2015-01-27 14:44:54 +01:00
Andreas Schildbach
540535b7d5 Hafas: Improve on splitting place and name for lots of networks. 2015-01-11 20:20:37 +01:00
Andreas Schildbach
06a0d12b0f Update year of copyright. 2015-01-01 01:52:27 +01:00
Andreas Schildbach
6a71482d15 Hafas xmlStationBoard to support equivs. 2014-09-18 10:43:01 +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
bc66f03326 Split place and name in all HTML departure queries (Hafas). 2014-08-26 16:43:56 +02:00
Andreas Schildbach
ae29ae3469 Make it easier to override the various query parameter building methods. 2014-08-15 00:12:57 +02:00
Andreas Schildbach
e61480cb44 Raise default number of departures to 100 (Hafas). 2014-08-06 23:08:13 +02:00
Andreas Schildbach
31b89f7ef8 Use common method for querying for nearby stations (Hafas). 2014-08-06 23:08:12 +02:00
Andreas Schildbach
fc91b8c7cb Use common method for querying departures (Hafas). 2014-08-06 23:08:12 +02:00
Andreas Schildbach
e691e7c2fb Migrate time zone from abstract method to simple property. 2014-07-24 11:59:11 +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
b265dd03cb Make auto-complete via getstops endpoint default (Hafas). 2014-07-07 23:08:00 +02:00
Andreas Schildbach
8bcdc7aa14 Default to binary trips query for Hafas based providers. 2014-06-18 12:44:36 +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
1b987a6b72 Remove Location.toDebugString(), use toString() instead. 2014-05-15 15:25:41 +02:00
Andreas Schildbach
d8f3dcaf6c Migrate location IDs from int to String. 2014-04-23 13:59:52 +02:00
Andreas Schildbach
23489327b1 Update year of copyright 2014-01-12 00:44:10 +01:00
Andreas Schildbach
229e88eaf4 Fix extxml handling 2013-11-19 10:57:53 +01:00
Andreas Schildbach
29dc8482f6 Remove accessId from AbstractHafasProvider constructor 2013-11-19 10:57:53 +01:00
Andreas Schildbach
c375502229 Introduce class for positions 2013-10-11 16:47:46 +02:00
Andreas Schildbach
929fe43823 Disambiguate line styles for Bonn 2013-10-10 17:06:46 +02:00
Andreas Schildbach
4a5e8094bd Move most lineStyle() implementations up to AbstractNetworkProvider 2013-10-10 17:05:49 +02:00
Andreas Schildbach
4a7743d094 Hafas endpoints 2013-08-18 20:22:01 +02:00