AbstractHafasMobileProvider: If address is passed to jsonTripSearch() without id, always use first identified address.

This commit is contained in:
Andreas Schildbach 2017-02-16 16:42:20 +01:00
parent 82f09b16d8
commit 43abca08f5
2 changed files with 34 additions and 24 deletions

View file

@ -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);
}
}