mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
AbstractHafasMobileProvider: If address is passed to jsonTripSearch() without id, always use first identified address.
This commit is contained in:
parent
82f09b16d8
commit
43abca08f5
2 changed files with 34 additions and 24 deletions
|
@ -229,4 +229,14 @@ public class BvgProviderLiveTest extends AbstractProviderLiveTest {
|
|||
final QueryTripsResult laterResult = queryMoreTrips(result.context, true);
|
||||
print(laterResult);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void tripAddressWithoutId() throws Exception {
|
||||
final QueryTripsResult result = queryTrips(
|
||||
new Location(LocationType.ADDRESS, null, 52481922, 13388383, null,
|
||||
"Bayernring, 12101 Berlin, Deutschland"),
|
||||
null, new Location(LocationType.STATION, "9064301", 52429099, 13328081, null, "S Lichterfelde Ost Bhf"),
|
||||
new Date(), true, Product.ALL, WalkSpeed.NORMAL, Accessibility.NEUTRAL);
|
||||
print(result);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue