Commit graph

35 commits

Author SHA1 Message Date
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
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
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
Nicolas Derive
d107a905b2 Navitia: Fix some API request URIs. 2015-12-21 12:11:43 +01:00
Andreas Schildbach
9b16fc6353 HttpClient: Use setHeader() rather than authorization parameter. 2015-09-26 10:04:08 +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
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
Antonio El Khoury
34cbe3a705 Navitia: Stop checking for inactive stations. 2015-04-02 10:21:20 +02:00
Andreas Schildbach
4b65f0145c Introduce location type for plain coordinates. 2015-04-01 17:27:59 +02:00
Antonio El Khoury
9f2b3b57e1 Navitia: Use normalized physical modes instead of commercial modes. 2015-04-01 16:48:40 +02:00
Antonio El Khoury
92705c3ab1 Navitia: Add missing enum values to SectionType. 2015-04-01 16:28:16 +02:00
Andreas Schildbach
95d0a31675 Suppress warnings about missing serialVersionUIDs for the whole project. 2015-03-12 13:18:46 +01:00
Andreas Schildbach
2038a740e2 Include network with Line. 2015-03-02 11:22:52 +01:00
Antonio El Khoury
82e367a08b Navitia: Fix location type handling in queryNearbyLocations. 2015-03-01 15:40:18 +01:00
Antonio El Khoury
3e92246ff8 Navitia: Fix queryDepartures() for stop_area when equivs is set to true. 2015-02-25 10:38:51 +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
Antonio El Khoury
8dce62c1ab Navitia: Fix query context builder. 2015-02-02 10:58:14 +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
Antonio El Khoury
574dd9c9a8 Navitia: Use numTripsRequested for trip count attribute. 2015-02-01 22:52:50 +01:00
Antonio El Khoury
335651ce5c Navitia: Do not add leg if its duration is 0. 2015-02-01 17:15:50 +01:00
Andreas Schildbach
589cf69063 Fix rounding errors when parsing coordinates. Add location constructors that take a Point rather than lat and lon. 2015-01-28 23:52:50 +01:00
Andreas Schildbach
06a0d12b0f Update year of copyright. 2015-01-01 01:52:27 +01:00
Antonio El Khoury
11ccd099ec Navitia: Add new commercial modes. 2014-12-21 23:18:41 +01:00
Antonio El Khoury
6255bd1d76 Navitia: Add support for products in queryTrips. 2014-12-21 23:18:41 +01:00
Antonio El Khoury
54ea75fefc Navitia: Add support for walking speed in queryTrips. 2014-12-21 23:18:34 +01:00
Antonio El Khoury
a136e7911b Paris provider based on abstract Navitia provider. 2014-11-30 15:59:20 +01:00