Commit graph

86 commits

Author SHA1 Message Date
Andreas Schildbach
a7f6abc4b9 AbstractHafasClientInterfaceProvider: Parse product numbers. 2018-11-15 19:05:24 +01:00
Andreas Schildbach
96477de706 AbstractHafasClientInterfaceProvider: Support maxLocations when querying for nearby locations.
Also advance all API versions to 1.14, as required by the maxLoc option to LocGeoPos.
2018-10-29 21:52:03 +01:00
Andreas Schildbach
5ad5d1b1b7 BVG, CMTA, NASA, SH, VBN, VMT: Provide API client type. 2018-10-27 21:25:27 +02:00
Andreas Schildbach
fe86c0498c Rename AbstractHafasMobileProvider to AbstractHafasClientInterfaceProvider. 2018-10-27 17:46:28 +02:00
Andreas Schildbach
d5e8c3c422 AbstractHafasMobileProvider: Require API version 1.11 or higher, and advance all API versions to 1.13. 2018-07-26 16:33:36 +02:00
Andreas Schildbach
b2875ddd31 Update links in license to use HTTPS. 2018-07-15 16:47:49 +02:00
Andreas Schildbach
6a4792e879 BVG: Update API base to HTTPS. 2017-08-31 11:36:00 +02:00
Andreas Schildbach
9957626f8d BVG: Fix IllegalArgumentException when suggesting locations. 2017-01-28 14:59:03 +01:00
Andreas Schildbach
bf510b516d If possible, use generic type inference for constructing objects. 2017-01-28 14:59:03 +01:00
Andreas Schildbach
37a7f60329 BVG: Switch to mobile API. 2017-01-27 00:04:58 +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
eee680dc31 BVG: Update line styles. 2016-12-12 18:00:42 +01: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
910b6705b8 BVG: Update API base. 2016-02-25 17:48:34 +01:00
Andreas Schildbach
91396ace1f BVG: Fix two line styles. 2015-12-05 19:26:57 +01:00
Andreas Schildbach
be258fda6b Replace shape of Berlin by simple bounding box. 2015-10-19 13:02:33 +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
6e1189f3ab BVG: Update API base. 2015-06-30 17:45:57 +02:00
Andreas Schildbach
8bbeb6ad75 Two-colored backgrounds for line styles. 2015-06-06 00:37:35 +02:00
Andreas Schildbach
cf651676d2 Migrate network IDs to constant field. 2015-02-25 09:05:01 +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
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
0122de4bb5 Hafas: Improve handling of station name suffixes. 2015-01-12 18:34:49 +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
11f12a0386 Lines. 2014-11-24 10:57:07 +01:00
Andreas Schildbach
fce1066a59 Migrate BVG station board to separate base URL. 2014-10-12 19:48:40 +02:00
Andreas Schildbach
4893474968 Remove support for additional query parameter for BVG. 2014-09-18 10:43:01 +02:00
Andreas Schildbach
b7b5b2a29b New API base for BVG. 2014-09-18 10:43:00 +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
8adf98b98e Optionally disable sort by weight in JSON getstops (Hafas). 2014-08-26 16:43:56 +02:00
Andreas Schildbach
a8efe538c1 Fix umlauts in suggested locations for BVG. 2014-08-15 00:18:14 +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
f25ab9658c Remove redirect detection from BvgProvider because redirects are now detected by ParserUtils.scrape() already. 2014-07-13 13:38:55 +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
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
8f201d4b1f Raise default number of requested trips to 6 2014-01-20 17:28:29 +01:00