mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
Negentwee: Support querying for trips with coordinate locations.
This commit is contained in:
parent
7763182bec
commit
e10de06c13
2 changed files with 33 additions and 9 deletions
|
@ -30,6 +30,7 @@ import de.schildbach.pte.NetworkProvider;
|
|||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
import de.schildbach.pte.dto.NearbyLocationsResult;
|
||||
import de.schildbach.pte.dto.Point;
|
||||
import de.schildbach.pte.dto.QueryDeparturesResult;
|
||||
import de.schildbach.pte.dto.QueryTripsResult;
|
||||
import de.schildbach.pte.dto.SuggestLocationsResult;
|
||||
|
@ -167,4 +168,14 @@ public class NegentweeProviderLiveTest extends AbstractProviderLiveTest {
|
|||
print(result);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void coordinatesTrip() throws Exception {
|
||||
final QueryTripsResult result = queryTrips(new Location(LocationType.COORD, null, new Point(51677273, 4437548)),
|
||||
new Location(LocationType.COORD, null, new Point(52162772, 4583171)),
|
||||
new Location(LocationType.COORD, null, new Point(53347140, 6720583)), new Date(), true, null,
|
||||
NetworkProvider.WalkSpeed.FAST, NetworkProvider.Accessibility.NEUTRAL);
|
||||
print(result);
|
||||
assertEquals(QueryTripsResult.Status.OK, result.status);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue