mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +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),
|
||||
|
|
|
@ -64,6 +64,12 @@ public class ParisProviderLiveTest extends AbstractNavitiaProviderLiveTest
|
|||
nearbyStationsAny(48877523, 2378353);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsDistance() throws Exception
|
||||
{
|
||||
nearbyStationsStationDistance("stop_point:OIF:SP:80:137");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nearbyStationsInvalidStation() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue