Navitia: queryNearbyLocations() with distance of 0 now means "unlimited" (50km).

This commit is contained in:
Torsten Grote 2016-01-31 19:39:42 +01:00 committed by Andreas Schildbach
parent abad1694bc
commit 4f9fb0cab2
3 changed files with 19 additions and 1 deletions

View file

@ -79,6 +79,15 @@ public abstract class AbstractNavitiaProviderLiveTest extends AbstractProviderLi
print(result);
}
protected final void nearbyStationsStationDistance(final String stationId) throws IOException
{
final NearbyLocationsResult result = queryNearbyLocations(EnumSet.of(LocationType.STATION), new Location(LocationType.STATION, stationId), 0,
10);
assertEquals(NearbyLocationsResult.Status.OK, result.status);
assertTrue(result.locations.size() > 1);
print(result);
}
protected final void nearbyStationsInvalidStation(final String stationId) throws IOException
{
final NearbyLocationsResult result = queryNearbyLocations(EnumSet.of(LocationType.STATION), new Location(LocationType.STATION, stationId),