Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,15 @@ public class OtpApiClient {
.longName()
.shortName()
.bikesAllowed()
.mode()
.agency(AGENCY_PROJECTION)
.typename();
private static final Logger LOG = LoggerFactory.getLogger(OtpApiClient.class);
private static final String DEFAULT_GRAPHQL_PATH = "/otp/gtfs/v1";
public static final StopResponseProjection STOP_PROJECTION =
new StopResponseProjection().gtfsId().name().code();
public static final PlaceResponseProjection PLACE_PROJECTION =
new PlaceResponseProjection()
.name()
.departureTime()
.arrivalTime()
.stop(new StopResponseProjection().gtfsId().name());
new PlaceResponseProjection().name().departureTime().arrivalTime().stop(STOP_PROJECTION);

private final CloseableHttpClient httpClient = HttpClientBuilder.create().build();

Expand Down