AbstractHafasClientInterfaceProvider: support fare references of type FS (fare set)

This commit is contained in:
Andreas Schildbach 2024-08-30 19:22:20 +02:00
parent f2617c20a6
commit 11b3908135
2 changed files with 40 additions and 15 deletions

View file

@ -149,6 +149,18 @@ public class VbbProviderLiveTest extends AbstractProviderLiveTest {
print(earlierResult);
}
@Test
public void tripBeelitzPotsdam() throws Exception {
final Location from = new Location(LocationType.STATION, "900220005", "Beelitz", "Bahnhof");
final Location to = new Location(LocationType.STATION, "900220010", "Potsdam", "Golm");
final QueryTripsResult result = queryTrips(from, null, to, new Date(), true, null);
print(result);
final QueryTripsResult laterResult = queryMoreTrips(result.context, true);
print(laterResult);
final QueryTripsResult earlierResult = queryMoreTrips(laterResult.context, false);
print(earlierResult);
}
@Test
public void shortFootwayTrip() throws Exception {
final Location from = new Location(LocationType.ADDRESS, null, Point.from1E6(52435193, 13473409),