mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
Navitia: queryNearbyLocations() with distance of 0 now means "unlimited" (50km).
This commit is contained in:
parent
abad1694bc
commit
4f9fb0cab2
3 changed files with 19 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue