mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
nearbyStations() gets its own result object
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@237 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
ae3cc77277
commit
94d99f7e53
18 changed files with 115 additions and 70 deletions
|
@ -26,8 +26,8 @@ import de.schildbach.pte.SbbProvider;
|
|||
import de.schildbach.pte.NetworkProvider.LocationType;
|
||||
import de.schildbach.pte.NetworkProvider.WalkSpeed;
|
||||
import de.schildbach.pte.dto.Autocomplete;
|
||||
import de.schildbach.pte.dto.NearbyStationsResult;
|
||||
import de.schildbach.pte.dto.QueryConnectionsResult;
|
||||
import de.schildbach.pte.dto.Station;
|
||||
|
||||
/**
|
||||
* @author Andreas Schildbach
|
||||
|
@ -39,11 +39,11 @@ public class SbbProviderLiveTest
|
|||
@Test
|
||||
public void nearbyStation() throws Exception
|
||||
{
|
||||
final List<Station> results = provider.nearbyStations("8500010", 0, 0, 0, 0);
|
||||
final NearbyStationsResult result = provider.nearbyStations("8500010", 0, 0, 0, 0);
|
||||
|
||||
System.out.println(results.size() + " " + results);
|
||||
System.out.println(result.stations.size() + " " + result.stations);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void shortConnection() throws Exception
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue