Commit graph

2020 commits

Author SHA1 Message Date
Andreas Schildbach
26621e5874 Migrate Stockholm to use SE. 2016-06-04 12:50:26 +02:00
Andreas Schildbach
2b2bb3a7cc Disable SSL certificate validation for live tests. 2016-06-01 10:00:03 +02:00
Torsten Grote
6d99e63db8 Navitia: More efficient product parsing
According to CanalTP/navitia#1386, Navitia has finally added the
product to departure query results, so all information we need can now
be retrieved by one network query only.

The AbstractNavitiaProvider was adapted accordingly and all legacy code
including the Product Cache was removed.
2016-06-01 09:57:43 +02:00
Andreas Schildbach
62a5a54d73 Hafas: Fix crash when JSON trips query doesn't return a distance. 2016-05-25 10:54:29 +02:00
karottenbaum
577d619a17 VRR: Fix line shapes 2016-05-24 23:14:56 +02:00
Andreas Schildbach
389ec22b6a Navitia: Use default style for unknown products in getLineStyle(). 2016-05-24 09:51:55 +02:00
karottenbaum
40cff03e47 VRR: Update line styles. 2016-05-23 16:21:58 +02:00
sbn
e6eb264225 VAGFR: Update line styles. 2016-05-23 16:16:02 +02:00
Torsten Grote
b741c0b34f Paris: Support cablecar 2016-05-23 16:02:54 +02:00
Torsten Grote
4566bf3cfb Navitia: Find products for nearby stations 2016-05-23 15:57:51 +02:00
Andreas Schildbach
d6d3371de2 Lines. 2016-05-23 15:55:44 +02:00
Torsten Grote
17e54c4d62
Navitia: Support Ambiguous QueryTripsResult 2016-05-15 20:05:17 -03:00
Andreas Schildbach
d245c294e3 VRS: Trim error string. 2016-05-08 16:30:20 +02:00
Torsten Grote
bc5cf15893 Line: Add a name to Line and use it with Navitia providers
Also add network to Navitia providers and take text color into account.

Due to a bug uncovered by adding the network to the line,
the code to retrieve departures had to be simplified.
It now does not do an extra network request to get the line destination.
2016-04-14 10:11:13 +02:00
Torsten Grote
2adf627e51 Navitia: Also suggest POI and administrative locations
The administrative areas are extremely useful when people search for a
suburb, but no stops have the suburbs name. They are currently mapped
to a POI location.
2016-04-13 16:37:19 +02:00
Andreas Schildbach
889a85b745 QueryTripsResult: Don't print status twice in toString(). 2016-04-07 20:13:24 +02:00
Andreas Schildbach
04b0c2ea2c Migrate Salzburg to use VAO. 2016-04-07 20:13:24 +02:00
Andreas Schildbach
907fc38dc4 Hafas: Handle JSON API error H9380 'Departure/Arrival/Intermediate or equivalent stations def'd more than once'. 2016-04-07 20:13:24 +02:00
Andreas Schildbach
b3965275fb Hafas: ON_DEMAND and BUS means just ON_DEMAND. 2016-04-07 20:13:24 +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
6d7d967ef4 KVV: One more test. 2016-04-07 20:12:32 +02:00
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