
org.opentripplanner.client.model.TripPlan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp-client Show documentation
Show all versions of otp-client Show documentation
Java client for the OpenTripPlanner GraphQL API
package org.opentripplanner.client.model;
import java.util.List;
public record TripPlan(List itineraries) {
/** Returns a list of all itineraries that contain public transport. */
public List transitItineraries() {
return itineraries.stream().filter(Itinerary::hasTransit).toList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy