Skip to content

Commit

Permalink
Rename 'code' to 'publicCode'
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jan 7, 2025
1 parent 74106b5 commit 628bf95
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class EntranceImpl implements GraphQLDataFetchers.GraphQLEntrance {

@Override
public DataFetcher<String> code() {
public DataFetcher<String> publicCode() {
return environment -> {
Entrance entrance = environment.getSource();
return entrance.getCode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,12 @@ public interface GraphQLEmissions {

/** Station entrance or exit, originating from OSM or GTFS data. */
public interface GraphQLEntrance {
public DataFetcher<String> code();

public DataFetcher<String> entranceId();

public DataFetcher<String> name();

public DataFetcher<String> publicCode();

public DataFetcher<org.opentripplanner.apis.gtfs.generated.GraphQLTypes.GraphQLWheelchairBoarding> wheelchairAccessible();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4327,7 +4327,11 @@ public enum GraphQLRealtimeState {
UPDATED,
}

/** Actions to take relative to the current position when engaging a walking/driving step. */
/**
* A direction that is not absolute but rather fuzzy and context-dependent.
* It provides the passenger with information what they should do in this step depending on where they
* were in the previous one.
*/
public enum GraphQLRelativeDirection {
CIRCLE_CLOCKWISE,
CIRCLE_COUNTERCLOCKWISE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -493,12 +493,12 @@ type Emissions {

"Station entrance or exit, originating from OSM or GTFS data."
type Entrance {
"Short text or a number that identifies the entrance or exit for passengers. For example, `A` or `B`."
code: String
"ID of the entrance in the format of `FeedId:EntranceId`. If the `FeedId` is `osm`, the entrance originates from OSM data."
entranceId: String!
"Name of the entrance or exit."
name: String
"Short text or a number that identifies the entrance or exit for passengers. For example, `A` or `B`."
publicCode: String
"Whether the entrance or exit is accessible by wheelchair"
wheelchairAccessible: WheelchairBoarding
}
Expand Down Expand Up @@ -3557,14 +3557,14 @@ enum RelativeDirection {
"""
Entering a public transport station. If it's not known if the passenger is entering or exiting
then `CONTINUE` is used.
More information about the entrance is in the `step.feature` field.
"""
ENTER_STATION
"""
Exiting a public transport station. If it's not known if the passenger is entering or exiting
then `CONTINUE` is used.
More information about the entrance is in the `step.feature` field.
"""
EXIT_STATION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
import org.opentripplanner.routing.alertpatch.TimePeriod;
import org.opentripplanner.routing.alertpatch.TransitAlert;
import org.opentripplanner.routing.api.request.RouteRequest;
import org.opentripplanner.routing.graph.Graph;
import org.opentripplanner.routing.graphfinder.GraphFinder;
import org.opentripplanner.routing.graphfinder.NearbyStop;
import org.opentripplanner.routing.graphfinder.PlaceAtDistance;
Expand Down Expand Up @@ -139,8 +138,6 @@ class GraphQLIntegrationTest {
.withSystem("Network-1", "https://foo.bar")
.build();

static final Graph GRAPH = new Graph();

static final Instant ALERT_START_TIME = OffsetDateTime
.parse("2023-02-15T12:03:28+01:00")
.toInstant();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"absoluteDirection": null,
"feature": {
"__typename": "Entrance",
"code": "A",
"publicCode": "A",
"entranceId": "osm:123",
"wheelchairAccessible": "POSSIBLE"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
feature {
__typename
... on Entrance {
code
publicCode
entranceId
wheelchairAccessible
}
Expand Down

0 comments on commit 628bf95

Please sign in to comment.