mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 06:08:52 +00:00
use railnavigator api for Germany/Europe departures
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@216 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
63ae7c3507
commit
a10d69c944
2 changed files with 74 additions and 111 deletions
|
@ -24,6 +24,7 @@ import org.junit.Test;
|
|||
import de.schildbach.pte.BahnProvider;
|
||||
import de.schildbach.pte.Connection;
|
||||
import de.schildbach.pte.QueryConnectionsResult;
|
||||
import de.schildbach.pte.QueryDeparturesResult;
|
||||
import de.schildbach.pte.NetworkProvider.LocationType;
|
||||
import de.schildbach.pte.NetworkProvider.WalkSpeed;
|
||||
|
||||
|
@ -33,6 +34,13 @@ import de.schildbach.pte.NetworkProvider.WalkSpeed;
|
|||
public class BahnProviderLiveTest
|
||||
{
|
||||
private BahnProvider provider = new BahnProvider();
|
||||
|
||||
@Test
|
||||
public void departures() throws Exception
|
||||
{
|
||||
final QueryDeparturesResult queryDepartures = provider.queryDepartures(provider.departuresQueryUri("692991", 0));
|
||||
System.out.println(queryDepartures.departures);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shortConnection() throws Exception
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue