use of org.opentripplanner.routing.graphfinder.PatternAtStop in project OpenTripPlanner by opentripplanner.
the class LegacyGraphQLPlaceInterfaceTypeResolver method getType.
@Override
public GraphQLObjectType getType(TypeResolutionEnvironment environment) {
Object o = environment.getObject();
GraphQLSchema schema = environment.getSchema();
if (o instanceof BikePark)
return schema.getObjectType("BikePark");
if (o instanceof BikeRentalStation)
return schema.getObjectType("BikeRentalStation");
// if (o instanceof CarPark) return schema.getObjectType("CarPark");
if (o instanceof PatternAtStop)
return schema.getObjectType("DepartureRow");
if (o instanceof Stop)
return schema.getObjectType("Stop");
return null;
}
use of org.opentripplanner.routing.graphfinder.PatternAtStop in project OpenTripPlanner by opentripplanner.
the class LegacyGraphQLNodeTypeResolver method getType.
@Override
public GraphQLObjectType getType(TypeResolutionEnvironment environment) {
Object o = environment.getObject();
GraphQLSchema schema = environment.getSchema();
if (o instanceof Agency)
return schema.getObjectType("Agency");
if (o instanceof TransitAlert)
return schema.getObjectType("Alert");
if (o instanceof BikePark)
return schema.getObjectType("BikePark");
if (o instanceof BikeRentalStation)
return schema.getObjectType("BikeRentalStation");
// if (o instanceof Cluster) return schema.getObjectType("Cluster");
if (o instanceof PatternAtStop)
return schema.getObjectType("DepartureRow");
if (o instanceof TripPattern)
return schema.getObjectType("Pattern");
if (o instanceof PlaceAtDistance)
return schema.getObjectType("placeAtDistance");
if (o instanceof Route)
return schema.getObjectType("Route");
if (o instanceof Stop)
return schema.getObjectType("Stop");
if (o instanceof Station)
return schema.getObjectType("Stop");
if (o instanceof TripTimeShort)
return schema.getObjectType("Stoptime");
if (o instanceof StopAtDistance)
return schema.getObjectType("stopAtDistance");
if (o instanceof FareRuleSet)
return schema.getObjectType("TicketType");
if (o instanceof Trip)
return schema.getObjectType("Trip");
return null;
}
Aggregations