Search in sources :

Example 1 with TripMetadataType

use of org.opentripplanner.ext.transmodelapi.model.timetable.TripMetadataType in project OpenTripPlanner by opentripplanner.

the class TransmodelGraphQLSchema method createPlanType.

public GraphQLObjectType createPlanType(GraphQLOutputType bookingArrangementType, GraphQLOutputType interchangeType, GraphQLOutputType linkGeometryType, GraphQLOutputType systemNoticeType, GraphQLOutputType authorityType, GraphQLOutputType operatorType, GraphQLOutputType bikeRentalStationType, GraphQLOutputType quayType, GraphQLOutputType estimatedCallType, GraphQLOutputType lineType, GraphQLOutputType serviceJourneyType, GraphQLOutputType ptSituationElementType) {
    final GraphQLObjectType placeType = GraphQLObjectType.newObject().name("Place").description("Common super class for all places (stop places, quays, car parks, bike parks and bike rental stations )").field(GraphQLFieldDefinition.newFieldDefinition().name("name").description("For transit quays, the name of the quay. For points of interest, the name of the POI.").type(Scalars.GraphQLString).dataFetcher(environment -> ((Place) environment.getSource()).name).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("vertexType").description("Type of vertex. (Normal, Bike sharing station, Bike P+R, Transit quay) Mostly used for better localization of bike sharing and P+R station names").type(EnumTypes.VERTEX_TYPE).dataFetcher(environment -> ((Place) environment.getSource()).vertexType).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("latitude").description("The latitude of the place.").type(new GraphQLNonNull(Scalars.GraphQLFloat)).dataFetcher(environment -> ((Place) environment.getSource()).coordinate.latitude()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("longitude").description("The longitude of the place.").type(new GraphQLNonNull(Scalars.GraphQLFloat)).dataFetcher(environment -> ((Place) environment.getSource()).coordinate.longitude()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("quay").description("The quay related to the place.").type(quayType).dataFetcher(environment -> ((Place) environment.getSource()).vertexType.equals(VertexType.TRANSIT) ? GqlUtil.getRoutingService(environment).getStopForId(((Place) environment.getSource()).stopId) : null).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("bikeRentalStation").type(bikeRentalStationType).description("The bike rental station related to the place").dataFetcher(environment -> {
        return ((Place) environment.getSource()).vertexType.equals(VertexType.BIKESHARE) ? GqlUtil.getRoutingService(environment).getBikerentalStationService().getBikeRentalStations().stream().filter(bikeRentalStation -> bikeRentalStation.id.equals(((Place) environment.getSource()).bikeShareId)).findFirst().orElse(null) : null;
    }).build()).build();
    final GraphQLObjectType pathGuidanceType = GraphQLObjectType.newObject().name("PathGuidance").description("A series of turn by turn instructions used for walking, biking and driving.").field(GraphQLFieldDefinition.newFieldDefinition().name("distance").description("The distance in meters that this step takes.").type(Scalars.GraphQLFloat).dataFetcher(environment -> ((WalkStep) environment.getSource()).distance).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("relativeDirection").description("The relative direction of this step.").type(EnumTypes.RELATIVE_DIRECTION).dataFetcher(environment -> ((WalkStep) environment.getSource()).relativeDirection).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("streetName").description("The name of the street.").type(Scalars.GraphQLString).dataFetcher(environment -> ((WalkStep) environment.getSource()).streetName).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("heading").description("The absolute direction of this step.").type(EnumTypes.ABSOLUTE_DIRECTION).dataFetcher(environment -> ((WalkStep) environment.getSource()).absoluteDirection).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("exit").description("When exiting a highway or traffic circle, the exit name/number.").type(Scalars.GraphQLString).dataFetcher(environment -> ((WalkStep) environment.getSource()).exit).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("stayOn").description("Indicates whether or not a street changes direction at an intersection.").type(Scalars.GraphQLBoolean).dataFetcher(environment -> ((WalkStep) environment.getSource()).stayOn).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("area").description("This step is on an open area, such as a plaza or train platform, and thus the directions should say something like \"cross\"").type(Scalars.GraphQLBoolean).dataFetcher(environment -> ((WalkStep) environment.getSource()).area).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("bogusName").description("The name of this street was generated by the system, so we should only display it once, and generally just display right/left directions").type(Scalars.GraphQLBoolean).dataFetcher(environment -> ((WalkStep) environment.getSource()).bogusName).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("latitude").description("The latitude of the step.").type(Scalars.GraphQLFloat).dataFetcher(environment -> ((WalkStep) environment.getSource()).startLocation.latitude()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("longitude").description("The longitude of the step.").type(Scalars.GraphQLFloat).dataFetcher(environment -> ((WalkStep) environment.getSource()).startLocation.longitude()).build()).build();
    final GraphQLObjectType legType = GraphQLObjectType.newObject().name("Leg").description("Part of a trip pattern. Either a ride on a public transport vehicle or access or path link to/from/between places").field(GraphQLFieldDefinition.newFieldDefinition().name("aimedStartTime").description("The aimed date and time this leg starts.").type(gqlUtil.dateTimeScalar).dataFetcher(environment -> ((Leg) environment.getSource()).startTime.getTimeInMillis() - (1000 * ((Leg) environment.getSource()).departureDelay)).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("expectedStartTime").description("The expected, realtime adjusted date and time this leg starts.").type(gqlUtil.dateTimeScalar).dataFetcher(environment -> ((Leg) environment.getSource()).startTime.getTimeInMillis()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("aimedEndTime").description("The aimed date and time this leg ends.").type(gqlUtil.dateTimeScalar).dataFetcher(environment -> ((Leg) environment.getSource()).endTime.getTimeInMillis() - (1000 * ((Leg) environment.getSource()).arrivalDelay)).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("expectedEndTime").description("The expected, realtime adjusted date and time this leg ends.").type(gqlUtil.dateTimeScalar).dataFetcher(environment -> ((Leg) environment.getSource()).endTime.getTimeInMillis()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("mode").description("The mode of transport or access (e.g., foot) used when traversing this leg.").type(EnumTypes.MODE).dataFetcher(environment -> ((Leg) environment.getSource()).mode).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("transportSubmode").description("The transport sub mode (e.g., localBus or expressBus) used when traversing this leg. Null if leg is not a ride").type(EnumTypes.TRANSPORT_SUBMODE).dataFetcher(environment -> TransmodelTransportSubmode.UNDEFINED).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("duration").description("The legs's duration in seconds").type(Scalars.GraphQLLong).dataFetcher(environment -> ((Leg) environment.getSource()).getDuration()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("directDuration").type(Scalars.GraphQLLong).description("NOT IMPLEMENTED").dataFetcher(environment -> ((Leg) environment.getSource()).getDuration()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("pointsOnLink").description("The legs's geometry.").type(linkGeometryType).dataFetcher(environment -> ((Leg) environment.getSource()).legGeometry).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("authority").description("For ride legs, the service authority used for this legs. For non-ride legs, null.").type(authorityType).dataFetcher(environment -> ((Leg) environment.getSource()).getAgency()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("operator").description("For ride legs, the operator used for this legs. For non-ride legs, null.").type(operatorType).dataFetcher(environment -> ((Leg) environment.getSource()).getOperator()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("realtime").description("Whether there is real-time data about this leg").type(Scalars.GraphQLBoolean).dataFetcher(environment -> ((Leg) environment.getSource()).realTime).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("distance").description("The distance traveled while traversing the leg in meters.").type(Scalars.GraphQLFloat).dataFetcher(environment -> ((Leg) environment.getSource()).distanceMeters).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("ride").description("Whether this leg is a ride leg or not.").type(Scalars.GraphQLBoolean).dataFetcher(environment -> ((Leg) environment.getSource()).isTransitLeg()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("rentedBike").description("Whether this leg is with a rented bike.").type(Scalars.GraphQLBoolean).dataFetcher(environment -> ((Leg) environment.getSource()).rentedBike).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("fromPlace").description("The Place where the leg originates.").type(new GraphQLNonNull(placeType)).dataFetcher(environment -> ((Leg) environment.getSource()).from).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("toPlace").description("The Place where the leg ends.").type(new GraphQLNonNull(placeType)).dataFetcher(environment -> ((Leg) environment.getSource()).to).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("fromEstimatedCall").description("EstimatedCall for the quay where the leg originates.").type(estimatedCallType).dataFetcher(environment -> tripTimeShortHelper.getTripTimeShortForFromPlace(environment.getSource(), gqlUtil.getRoutingService(environment))).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("toEstimatedCall").description("EstimatedCall for the quay where the leg ends.").type(estimatedCallType).dataFetcher(environment -> tripTimeShortHelper.getTripTimeShortForToPlace(environment.getSource(), gqlUtil.getRoutingService(environment))).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("line").description("For ride legs, the line. For non-ride legs, null.").type(lineType).dataFetcher(environment -> ((Leg) environment.getSource()).getRoute()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("serviceJourney").description("For ride legs, the service journey. For non-ride legs, null.").type(serviceJourneyType).dataFetcher(environment -> ((Leg) environment.getSource()).getTrip()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("intermediateQuays").description("For ride legs, intermediate quays between the Place where the leg originates and the Place where the leg ends. For non-ride legs, empty list.").type(new GraphQLNonNull(new GraphQLList(quayType))).dataFetcher(environment -> {
        List<StopArrival> stops = ((Leg) environment.getSource()).intermediateStops;
        if (stops == null || stops.isEmpty()) {
            return List.of();
        } else {
            return (stops.stream().filter(stop -> stop.place.stopId != null).map(s -> {
                return GqlUtil.getRoutingService(environment).getStopForId(s.place.stopId);
            }).filter(Objects::nonNull).collect(Collectors.toList()));
        }
    }).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("intermediateEstimatedCalls").description("For ride legs, estimated calls for quays between the Place where the leg originates and the Place where the leg ends. For non-ride legs, empty list.").type(new GraphQLNonNull(new GraphQLList(estimatedCallType))).dataFetcher(environment -> tripTimeShortHelper.getIntermediateTripTimeShortsForLeg((environment.getSource()), GqlUtil.getRoutingService(environment))).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("serviceJourneyEstimatedCalls").description("For ride legs, all estimated calls for the service journey. For non-ride legs, empty list.").type(new GraphQLNonNull(new GraphQLList(estimatedCallType))).dataFetcher(environment -> {
        return tripTimeShortHelper.getAllTripTimeShortsForLegsTrip(environment.getSource(), GqlUtil.getRoutingService(environment));
    }).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("situations").description("All relevant situations for this leg").type(new GraphQLNonNull(new GraphQLList(ptSituationElementType))).dataFetcher(environment -> ((Leg) environment.getSource()).transitAlerts).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("steps").description("Do we continue from a specified via place").type(new GraphQLNonNull(new GraphQLList(pathGuidanceType))).dataFetcher(environment -> ((Leg) environment.getSource()).walkSteps).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("interchangeFrom").description("NOT IMPLEMENTED").type(interchangeType).dataFetcher(environment -> null).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("interchangeTo").description("NOT IMPLEMENTED").type(interchangeType).dataFetcher(environment -> null).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("bookingArrangements").type(bookingArrangementType).build()).build();
    final GraphQLObjectType tripPatternType = GraphQLObjectType.newObject().name("TripPattern").description("List of legs constituting a suggested sequence of rides and links for a specific trip.").field(GraphQLFieldDefinition.newFieldDefinition().name("startTime").description("Time that the trip departs.").type(gqlUtil.dateTimeScalar).dataFetcher(environment -> ((Itinerary) environment.getSource()).startTime().getTime().getTime()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("endTime").description("Time that the trip arrives.").type(gqlUtil.dateTimeScalar).dataFetcher(environment -> ((Itinerary) environment.getSource()).endTime().getTime().getTime()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("duration").description("Duration of the trip, in seconds.").type(Scalars.GraphQLLong).dataFetcher(environment -> ((Itinerary) environment.getSource()).durationSeconds).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("directDuration").description("NOT IMPLEMENTED.").type(Scalars.GraphQLLong).dataFetcher(environment -> ((Itinerary) environment.getSource()).durationSeconds).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("waitingTime").description("How much time is spent waiting for transit to arrive, in seconds.").type(Scalars.GraphQLLong).dataFetcher(environment -> ((Itinerary) environment.getSource()).waitingTimeSeconds).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("distance").description("Total distance for the trip, in meters. NOT IMPLEMENTED").type(Scalars.GraphQLFloat).dataFetcher(environment -> ((Itinerary) environment.getSource()).distanceMeters()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("walkTime").description("How much time is spent walking, in seconds.").type(Scalars.GraphQLLong).dataFetcher(environment -> ((Itinerary) environment.getSource()).nonTransitTimeSeconds).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("walkDistance").description("How far the user has to walk, in meters.").type(Scalars.GraphQLFloat).dataFetcher(environment -> ((Itinerary) environment.getSource()).nonTransitDistanceMeters).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("legs").description("A list of legs. Each leg is either a walking (cycling, car) portion of the trip, or a ride leg on a particular vehicle. So a trip where the use walks to the Q train, transfers to the 6, then walks to their destination, has four legs.").type(new GraphQLNonNull(new GraphQLList(legType))).dataFetcher(environment -> ((Itinerary) environment.getSource()).legs).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("systemNotices").description("Get all system notices.").type(new GraphQLNonNull(new GraphQLList(systemNoticeType))).dataFetcher(env -> ((Itinerary) env.getSource()).systemNotices).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("weight").description("Generalized cost or weight of the itinerary. Used for debugging.").type(Scalars.GraphQLFloat).dataFetcher(env -> ((Itinerary) env.getSource()).generalizedCost).build()).build();
    GraphQLObjectType tripMetadataType = TripMetadataType.create(gqlUtil);
    return GraphQLObjectType.newObject().name("Trip").description("Description of a travel between two places.").field(GraphQLFieldDefinition.newFieldDefinition().name("dateTime").description("The time and date of travel").type(gqlUtil.dateTimeScalar).dataFetcher(env -> ((PlanResponse) env.getSource()).plan.date.getTime()).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("metadata").description("The trip request metadata.").type(tripMetadataType).dataFetcher(env -> ((PlanResponse) env.getSource()).metadata).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("fromPlace").description("The origin").type(new GraphQLNonNull(placeType)).dataFetcher(env -> ((PlanResponse) env.getSource()).plan.from).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("toPlace").description("The destination").type(new GraphQLNonNull(placeType)).dataFetcher(env -> ((PlanResponse) env.getSource()).plan.to).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("tripPatterns").description("A list of possible trip patterns").type(new GraphQLNonNull(new GraphQLList(tripPatternType))).dataFetcher(env -> ((PlanResponse) env.getSource()).plan.itineraries).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("messageEnums").description("A list of possible error messages as enum").type(new GraphQLNonNull(new GraphQLList(Scalars.GraphQLString))).dataFetcher(env -> ((PlanResponse) env.getSource()).messages.stream().map(Enum::name).collect(Collectors.toList())).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("messageStrings").description("A list of possible error messages in cleartext").type(new GraphQLNonNull(new GraphQLList(Scalars.GraphQLString))).dataFetcher(env -> ((PlanResponse) env.getSource()).listErrorMessages(env.getArgument("locale"))).build()).field(GraphQLFieldDefinition.newFieldDefinition().name("debugOutput").description("Information about the timings for the trip generation").type(new GraphQLNonNull(GraphQLObjectType.newObject().name("debugOutput").field(GraphQLFieldDefinition.newFieldDefinition().name("totalTime").type(Scalars.GraphQLLong).build()).build())).dataFetcher(env -> ((PlanResponse) env.getSource()).debugOutput).build()).build();
}
Also used : TripMetadataType(org.opentripplanner.ext.transmodelapi.model.timetable.TripMetadataType) RoutingService(org.opentripplanner.routing.RoutingService) STREET_MODE(org.opentripplanner.ext.transmodelapi.model.EnumTypes.STREET_MODE) ServerInfoType(org.opentripplanner.ext.transmodelapi.model.framework.ServerInfoType) GraphQLInputObjectType(graphql.schema.GraphQLInputObjectType) GraphQLFieldDefinition(graphql.schema.GraphQLFieldDefinition) LoggerFactory(org.slf4j.LoggerFactory) GraphQLInterfaceType(graphql.schema.GraphQLInterfaceType) PresentationType(org.opentripplanner.ext.transmodelapi.model.network.PresentationType) ServiceJourneyType(org.opentripplanner.ext.transmodelapi.model.timetable.ServiceJourneyType) TransitIdMapper.mapIDsToDomain(org.opentripplanner.ext.transmodelapi.mapping.TransitIdMapper.mapIDsToDomain) GraphQLInputObjectField(graphql.schema.GraphQLInputObjectField) TransportModeSlack(org.opentripplanner.ext.transmodelapi.model.TransportModeSlack) QuayType(org.opentripplanner.ext.transmodelapi.model.stop.QuayType) StopPlaceType(org.opentripplanner.ext.transmodelapi.model.stop.StopPlaceType) BookingArrangementType(org.opentripplanner.ext.transmodelapi.model.timetable.BookingArrangementType) MultilingualStringType(org.opentripplanner.ext.transmodelapi.model.framework.MultilingualStringType) TraverseMode(org.opentripplanner.routing.core.TraverseMode) PlaceInterfaceType(org.opentripplanner.ext.transmodelapi.model.stop.PlaceInterfaceType) GraphQLObjectType(graphql.schema.GraphQLObjectType) FeedScopedId(org.opentripplanner.model.FeedScopedId) MavenVersion(org.opentripplanner.common.MavenVersion) EnumTypes(org.opentripplanner.ext.transmodelapi.model.EnumTypes) GraphQLNamedOutputType(graphql.schema.GraphQLNamedOutputType) Collections.emptyList(java.util.Collections.emptyList) GraphQLNonNull(graphql.schema.GraphQLNonNull) Collection(java.util.Collection) TransitIdMapper(org.opentripplanner.ext.transmodelapi.mapping.TransitIdMapper) Set(java.util.Set) GraphQLArgument(graphql.schema.GraphQLArgument) TransmodelTransportSubmode(org.opentripplanner.ext.transmodelapi.model.TransmodelTransportSubmode) InfoLinkType(org.opentripplanner.ext.transmodelapi.model.framework.InfoLinkType) TimetabledPassingTimeType(org.opentripplanner.ext.transmodelapi.model.timetable.TimetabledPassingTimeType) Collectors(java.util.stream.Collectors) Objects(java.util.Objects) TransitAlert(org.opentripplanner.routing.alertpatch.TransitAlert) List(java.util.List) Stream(java.util.stream.Stream) DefaultPageInfo(graphql.relay.DefaultPageInfo) BikeParkType(org.opentripplanner.ext.transmodelapi.model.stop.BikeParkType) BikeRentalStation(org.opentripplanner.routing.bike_rental.BikeRentalStation) PlanResponse(org.opentripplanner.ext.transmodelapi.model.PlanResponse) RequestFunctions(org.opentripplanner.routing.api.request.RequestFunctions) LocationInputType(org.opentripplanner.ext.transmodelapi.model.framework.LocationInputType) GraphQLEnumType(graphql.schema.GraphQLEnumType) JourneyWhiteListed(org.opentripplanner.ext.transmodelapi.model.route.JourneyWhiteListed) Relay(graphql.relay.Relay) JourneyPatternType(org.opentripplanner.ext.transmodelapi.model.network.JourneyPatternType) TRUE(java.lang.Boolean.TRUE) TripTimeShortHelper(org.opentripplanner.ext.transmodelapi.model.TripTimeShortHelper) Leg(org.opentripplanner.model.plan.Leg) StopAtDistance(org.opentripplanner.routing.graphfinder.StopAtDistance) DefaultRoutingRequestType(org.opentripplanner.ext.transmodelapi.model.DefaultRoutingRequestType) Itinerary(org.opentripplanner.model.plan.Itinerary) AuthorityType(org.opentripplanner.ext.transmodelapi.model.framework.AuthorityType) InterchangeType(org.opentripplanner.ext.transmodelapi.model.timetable.InterchangeType) StopArrival(org.opentripplanner.model.plan.StopArrival) WalkStep(org.opentripplanner.model.plan.WalkStep) GraphQLType(graphql.schema.GraphQLType) TRANSPORT_MODE(org.opentripplanner.ext.transmodelapi.model.EnumTypes.TRANSPORT_MODE) RoutingValidationException(org.opentripplanner.routing.error.RoutingValidationException) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet) Scalars(graphql.Scalars) DefaultConnection(graphql.relay.DefaultConnection) CollectionUtils(org.apache.commons.collections.CollectionUtils) NoticeType(org.opentripplanner.ext.transmodelapi.model.framework.NoticeType) GraphQLSchema(graphql.schema.GraphQLSchema) BikeRentalStationType(org.opentripplanner.ext.transmodelapi.model.stop.BikeRentalStationType) SystemNoticeType(org.opentripplanner.ext.transmodelapi.model.framework.SystemNoticeType) PointsOnLinkType(org.opentripplanner.ext.transmodelapi.model.framework.PointsOnLinkType) Place(org.opentripplanner.model.plan.Place) ValidityPeriodType(org.opentripplanner.ext.transmodelapi.model.framework.ValidityPeriodType) PtSituationElementType(org.opentripplanner.ext.transmodelapi.model.siri.sx.PtSituationElementType) DestinationDisplayType(org.opentripplanner.ext.transmodelapi.model.network.DestinationDisplayType) TariffZoneType(org.opentripplanner.ext.transmodelapi.model.stop.TariffZoneType) Logger(org.slf4j.Logger) OperatorType(org.opentripplanner.ext.transmodelapi.model.framework.OperatorType) GqlUtil(org.opentripplanner.ext.transmodelapi.support.GqlUtil) VertexType(org.opentripplanner.model.plan.VertexType) SimpleListConnection(graphql.relay.SimpleListConnection) GraphQLOutputType(graphql.schema.GraphQLOutputType) EstimatedCallType(org.opentripplanner.ext.transmodelapi.model.siri.et.EstimatedCallType) GraphQLList(graphql.schema.GraphQLList) LineType(org.opentripplanner.ext.transmodelapi.model.network.LineType) Route(org.opentripplanner.model.Route) GraphQLTypeReference(graphql.schema.GraphQLTypeReference) QuayAtDistanceType(org.opentripplanner.ext.transmodelapi.model.stop.QuayAtDistanceType) RoutingRequest(org.opentripplanner.routing.api.request.RoutingRequest) Comparator(java.util.Comparator) Collections(java.util.Collections) GraphQLList(graphql.schema.GraphQLList) StopArrival(org.opentripplanner.model.plan.StopArrival) PlanResponse(org.opentripplanner.ext.transmodelapi.model.PlanResponse) GraphQLObjectType(graphql.schema.GraphQLObjectType) GraphQLNonNull(graphql.schema.GraphQLNonNull) Objects(java.util.Objects) Itinerary(org.opentripplanner.model.plan.Itinerary) WalkStep(org.opentripplanner.model.plan.WalkStep) Place(org.opentripplanner.model.plan.Place) Leg(org.opentripplanner.model.plan.Leg)

Aggregations

Scalars (graphql.Scalars)1 DefaultConnection (graphql.relay.DefaultConnection)1 DefaultPageInfo (graphql.relay.DefaultPageInfo)1 Relay (graphql.relay.Relay)1 SimpleListConnection (graphql.relay.SimpleListConnection)1 GraphQLArgument (graphql.schema.GraphQLArgument)1 GraphQLEnumType (graphql.schema.GraphQLEnumType)1 GraphQLFieldDefinition (graphql.schema.GraphQLFieldDefinition)1 GraphQLInputObjectField (graphql.schema.GraphQLInputObjectField)1 GraphQLInputObjectType (graphql.schema.GraphQLInputObjectType)1 GraphQLInterfaceType (graphql.schema.GraphQLInterfaceType)1 GraphQLList (graphql.schema.GraphQLList)1 GraphQLNamedOutputType (graphql.schema.GraphQLNamedOutputType)1 GraphQLNonNull (graphql.schema.GraphQLNonNull)1 GraphQLObjectType (graphql.schema.GraphQLObjectType)1 GraphQLOutputType (graphql.schema.GraphQLOutputType)1 GraphQLSchema (graphql.schema.GraphQLSchema)1 GraphQLType (graphql.schema.GraphQLType)1 GraphQLTypeReference (graphql.schema.GraphQLTypeReference)1 TRUE (java.lang.Boolean.TRUE)1