Query nearby stations by coordinate for Leipzig

This commit is contained in:
Andreas Schildbach 2013-10-13 10:09:20 +02:00
parent 75be137e40
commit 89219d7d19
2 changed files with 30 additions and 1 deletions

View file

@ -17,6 +17,9 @@
package de.schildbach.pte.live;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.Date;
import java.util.List;
@ -50,6 +53,16 @@ public class NasaProviderLiveTest extends AbstractProviderLiveTest
print(result);
}
@Test
public void nearbyStationsByCoordinate() throws Exception
{
final NearbyStationsResult result = provider.queryNearbyStations(new Location(LocationType.ADDRESS, 51346546, 12383333), 0, 0);
print(result);
assertEquals(NearbyStationsResult.Status.OK, result.status);
assertTrue(result.stations.size() > 0);
}
@Test
public void queryDepartures() throws Exception
{