org.opentripplanner.ext.legacygraphqlapi.datafetchers.LegacyGraphQLDepartureRowImpl Maven / Gradle / Ivy
package org.opentripplanner.ext.legacygraphqlapi.datafetchers;
import graphql.relay.Relay;
import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
import java.time.Duration;
import java.time.Instant;
import org.opentripplanner.ext.legacygraphqlapi.LegacyGraphQLRequestContext;
import org.opentripplanner.ext.legacygraphqlapi.LegacyGraphQLUtils;
import org.opentripplanner.ext.legacygraphqlapi.generated.LegacyGraphQLDataFetchers;
import org.opentripplanner.ext.legacygraphqlapi.generated.LegacyGraphQLTypes;
import org.opentripplanner.model.TripTimeOnDate;
import org.opentripplanner.routing.graphfinder.PatternAtStop;
import org.opentripplanner.routing.stoptimes.ArrivalDeparture;
import org.opentripplanner.transit.model.network.TripPattern;
import org.opentripplanner.transit.service.TransitService;
public class LegacyGraphQLDepartureRowImpl
implements LegacyGraphQLDataFetchers.LegacyGraphQLDepartureRow {
@Override
public DataFetcher id() {
return environment -> new Relay.ResolvedGlobalId("DepartureRow", getSource(environment).id);
}
@Override
public DataFetcher lat() {
return environment -> getSource(environment).stop.getLat();
}
@Override
public DataFetcher lon() {
return environment -> getSource(environment).stop.getLon();
}
@Override
public DataFetcher pattern() {
return environment -> getSource(environment).pattern;
}
@Override
public DataFetcher
© 2015 - 2025 Weber Informatics LLC | Privacy Policy