Commit graph

2347 commits

Author SHA1 Message Date
Andreas Schildbach
e3337c202d SH: Parse fares. 2016-04-07 20:12:31 +02:00
Andreas Schildbach
391fb06090 SH: Switch to JSON API. 2016-04-07 20:12:31 +02:00
Torsten Grote
47f31e99c2 Navitia: Properly create Locations with name and place.
Allow option to fix case of location names and simplify location parsing
code.
2016-04-07 20:12:31 +02:00
Chimo
a9d009e090 Add Quebec (Canada) provider. 2016-03-10 22:53:37 +01:00
Andreas Schildbach
ab4650586a Navitia: Handle empty or non-present color attributes, use the product default colors in these cases. 2016-03-09 13:40:13 +01:00
Torsten Grote
14f02607f1 Navitia: Less network requests and no NPE when querying for departures.
The AbstractNavitiaProvider was making one network request per departure
it found, just to find the `Product`. This information is mostly
available in the second request it makes, so this should be taken when
available.

Also, in rare cases no destination can be found for a line. It should
not crash in these cases. This was also fixed within this commit.
2016-03-09 13:18:50 +01:00
Andreas Schildbach
ead34426c6 Navitia: If query returns 'not found' and JSON from error page could not be parsed, link the original exception. 2016-03-09 13:14:19 +01:00
Torsten Grote
bb76498c87 Navitia: Take the location priority into account when suggesting locations. 2016-03-08 14:47:52 +01:00
Andreas Schildbach
e227e254f1 Add a README.md to the parent project. 2016-03-08 11:58:20 +01:00
Torsten Grote
258f127fa7 Add a README.md file to the enabler project. 2016-03-08 11:53:27 +01:00
Andreas Schildbach
b1e89921a6 Style: Preconditions and unit tests for parseColor(). 2016-02-29 10:38:30 +01:00
Andreas Schildbach
910b6705b8 BVG: Update API base. 2016-02-25 17:48:34 +01:00
Andreas Schildbach
7b92f6ed18 EFA: Ignore multiple <omcTaxi> tags when querying for trips. 2016-02-19 10:33:52 +01:00
Andreas Schildbach
7b38534d19 Europe: Fix umlauts in suggested locations. 2016-02-19 10:33:52 +01:00
Andreas Schildbach
8a99a256d7 Hafas: Fix crash when JSON trips query cannot scroll any more. 2016-02-19 10:33:52 +01:00
Mats Sjöberg
9410a4077a Add HSL provider, covering Helsinki. 2016-02-13 21:56:16 +01:00
Chimo
e78e6bdf73 Add Ontario (Canada) provider. 2016-02-13 20:54:12 +01:00
Andreas Schildbach
81ce7cdc3d Navitia: When querying for nearby locations, let the server choose the limit when maxLocations=0. 2016-02-10 19:21:00 +01:00
Torsten Grote
16c85476b1 Navitia: Fix departures query when using equiv=false
When querying departures from a stop_area with equiv=false
the query URI was wrong and returned no results.
This was especially problematic, because the suggestLocation query
returns only stop_areas at the moment.
2016-02-07 00:39:11 +01:00
Andreas Schildbach
bc7c0c8bcc Configure continuous integration using Travis CI.
Builds will be visible at https://travis-ci.org/schildbach/public-transport-enabler
2016-02-05 01:53:08 +01:00
Andreas Schildbach
f2797a4042 VBN: Update styles. 2016-02-03 10:35:32 +01:00
Nicolas Derive
0230a1af85 Paris, French South West: Add missing regional (TER) and long-distance (Intercités) trains support. 2016-02-03 10:33:24 +01:00
Andreas Schildbach
5704ebc42c Augsburg: Fix some tests. 2016-02-02 14:36:30 +01:00
Torsten Grote
13182d2fb7 Paris: Fix some tests. 2016-02-02 14:35:57 +01:00
Torsten Grote
4f9fb0cab2 Navitia: queryNearbyLocations() with distance of 0 now means "unlimited" (50km). 2016-01-31 19:39:42 +01:00
Torsten Grote
abad1694bc Navitia: Increase hard-coded time-span for departures to 86400 (24h) default.
This was previously set to 1 hour causing very few or none departures to
be returned for stations with little traffic.
2016-01-31 19:28:42 +01:00
Torsten Grote
ac3d55cc21 Navitia: Only set "Authorization" HTTP header when required. 2016-01-31 19:26:23 +01:00
Andreas Schildbach
57eb4364b5 Hafas: Detect an on demand line. 2016-01-31 19:22:42 +01:00
Andreas Schildbach
aa028228c0 Hafas: Log error codes to debug. 2016-01-21 18:39:50 +01:00
Andreas Schildbach
52207db349 Hafas: Handle h2g error 2. 2016-01-21 18:39:49 +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
d12b1abd03 AVV: Update API base. 2016-01-10 00:11:47 +01:00
Andreas Schildbach
58ba3f7852 VMS: Fix some product not showing up. 2015-12-22 15:27:46 +01:00
Torsten Grote
5be14b0134 Navitia: Allow custom API base.
This is especially useful if you want to run a Navitia instance on your
own server.
2015-12-22 15:25:17 +01:00
Andreas Schildbach
51d92a61e1 Bayern: Parse some value tags as optional. 2015-12-21 12:11:55 +01:00
Andreas Schildbach
9e3565b986 Bayern: Speculative fix for routing problem. 2015-12-21 12:11:55 +01:00
Nicolas Derive
d107a905b2 Navitia: Fix some API request URIs. 2015-12-21 12:11:43 +01:00
Nicolas Derive
2a1bda6c4b French South West: Add missing transportation system, as Tisseo network is also in fr-sw Navitia region. 2015-12-20 14:55:31 +01:00
Nicolas Derive
79159f854d Navitia: Add support for fr-sw region (which covers South-West of France). 2015-12-19 22:06:54 +01:00
Antonio El Khoury
deac74f4d9 Navitia: Add support for Italy. 2015-12-19 22:06:54 +01:00
Andreas Schildbach
7e172d2aaf Move secrets for live tests into a property file, so missing that file won't fail the build. 2015-12-19 15:28:34 +01:00
Andreas Schildbach
6c1ee94b91 Lines. 2015-12-05 19:29:16 +01:00
Andreas Schildbach
9d18f36fa9 Some tests for querying locations with an umlaut. 2015-12-05 19:29:16 +01:00
Andreas Schildbach
affb7ef0ba Adjust untravelable individual legs. 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
91396ace1f BVG: Fix two line styles. 2015-12-05 19:26:57 +01:00