Skip to content

Commit 33092d5

Browse files
Merge pull request #114 from opentripplanner/fixes
Fix projections
2 parents 916e9bc + e20f334 commit 33092d5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

client/src/main/java/org/opentripplanner/client/OtpApiClient.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,15 @@ public class OtpApiClient {
5959
.longName()
6060
.shortName()
6161
.bikesAllowed()
62+
.mode()
6263
.agency(AGENCY_PROJECTION)
6364
.typename();
6465
private static final Logger LOG = LoggerFactory.getLogger(OtpApiClient.class);
6566
private static final String DEFAULT_GRAPHQL_PATH = "/otp/gtfs/v1";
67+
public static final StopResponseProjection STOP_PROJECTION =
68+
new StopResponseProjection().gtfsId().name().code();
6669
public static final PlaceResponseProjection PLACE_PROJECTION =
67-
new PlaceResponseProjection()
68-
.name()
69-
.departureTime()
70-
.arrivalTime()
71-
.stop(new StopResponseProjection().gtfsId().name());
70+
new PlaceResponseProjection().name().departureTime().arrivalTime().stop(STOP_PROJECTION);
7271

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

0 commit comments

Comments
 (0)