Skip to content

Commit

Permalink
Merge pull request #6101 from Jnction/gql-mode-weight
Browse files Browse the repository at this point in the history
Add missing transit modes in GTFS GraphQL InputModeWeight
  • Loading branch information
optionsome authored Oct 22, 2024
2 parents 1b56f26 + 0660e75 commit 559fac5
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -972,24 +972,34 @@ public static class GraphQLInputModeWeightInput {
private Double AIRPLANE;
private Double BUS;
private Double CABLE_CAR;
private Double CARPOOL;
private Double COACH;
private Double FERRY;
private Double FUNICULAR;
private Double GONDOLA;
private Double MONORAIL;
private Double RAIL;
private Double SUBWAY;
private Double TAXI;
private Double TRAM;
private Double TROLLEYBUS;

public GraphQLInputModeWeightInput(Map<String, Object> args) {
if (args != null) {
this.AIRPLANE = (Double) args.get("AIRPLANE");
this.BUS = (Double) args.get("BUS");
this.CABLE_CAR = (Double) args.get("CABLE_CAR");
this.CARPOOL = (Double) args.get("CARPOOL");
this.COACH = (Double) args.get("COACH");
this.FERRY = (Double) args.get("FERRY");
this.FUNICULAR = (Double) args.get("FUNICULAR");
this.GONDOLA = (Double) args.get("GONDOLA");
this.MONORAIL = (Double) args.get("MONORAIL");
this.RAIL = (Double) args.get("RAIL");
this.SUBWAY = (Double) args.get("SUBWAY");
this.TAXI = (Double) args.get("TAXI");
this.TRAM = (Double) args.get("TRAM");
this.TROLLEYBUS = (Double) args.get("TROLLEYBUS");
}
}

Expand All @@ -1005,6 +1015,14 @@ public Double getGraphQLCable_Car() {
return this.CABLE_CAR;
}

public Double getGraphQLCarpool() {
return this.CARPOOL;
}

public Double getGraphQLCoach() {
return this.COACH;
}

public Double getGraphQLFerry() {
return this.FERRY;
}
Expand All @@ -1017,6 +1035,10 @@ public Double getGraphQLGondola() {
return this.GONDOLA;
}

public Double getGraphQLMonorail() {
return this.MONORAIL;
}

public Double getGraphQLRail() {
return this.RAIL;
}
Expand All @@ -1025,10 +1047,18 @@ public Double getGraphQLSubway() {
return this.SUBWAY;
}

public Double getGraphQLTaxi() {
return this.TAXI;
}

public Double getGraphQLTram() {
return this.TRAM;
}

public Double getGraphQLTrolleybus() {
return this.TROLLEYBUS;
}

public void setGraphQLAirplane(Double AIRPLANE) {
this.AIRPLANE = AIRPLANE;
}
Expand All @@ -1041,6 +1071,14 @@ public void setGraphQLCable_Car(Double CABLE_CAR) {
this.CABLE_CAR = CABLE_CAR;
}

public void setGraphQLCarpool(Double CARPOOL) {
this.CARPOOL = CARPOOL;
}

public void setGraphQLCoach(Double COACH) {
this.COACH = COACH;
}

public void setGraphQLFerry(Double FERRY) {
this.FERRY = FERRY;
}
Expand All @@ -1053,6 +1091,10 @@ public void setGraphQLGondola(Double GONDOLA) {
this.GONDOLA = GONDOLA;
}

public void setGraphQLMonorail(Double MONORAIL) {
this.MONORAIL = MONORAIL;
}

public void setGraphQLRail(Double RAIL) {
this.RAIL = RAIL;
}
Expand All @@ -1061,9 +1103,17 @@ public void setGraphQLSubway(Double SUBWAY) {
this.SUBWAY = SUBWAY;
}

public void setGraphQLTaxi(Double TAXI) {
this.TAXI = TAXI;
}

public void setGraphQLTram(Double TRAM) {
this.TRAM = TRAM;
}

public void setGraphQLTrolleybus(Double TROLLEYBUS) {
this.TROLLEYBUS = TROLLEYBUS;
}
}

public static class GraphQLInputPreferredInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3838,18 +3838,28 @@ input InputModeWeight {
BUS: Float
"The weight of CABLE_CAR traverse mode. Values over 1 add cost to cable car travel and values under 1 decrease cost"
CABLE_CAR: Float
"The weight of CARPOOL traverse mode. Values over 1 add cost to carpool travel and values under 1 decrease cost"
CARPOOL: Float
"The weight of COACH traverse mode. Values over 1 add cost to coach travel and values under 1 decrease cost"
COACH: Float
"The weight of FERRY traverse mode. Values over 1 add cost to ferry travel and values under 1 decrease cost"
FERRY: Float
"The weight of FUNICULAR traverse mode. Values over 1 add cost to funicular travel and values under 1 decrease cost"
FUNICULAR: Float
"The weight of GONDOLA traverse mode. Values over 1 add cost to gondola travel and values under 1 decrease cost"
GONDOLA: Float
"The weight of MONORAIL traverse mode. Values over 1 add cost to monorail travel and values under 1 decrease cost"
MONORAIL: Float
"The weight of RAIL traverse mode. Values over 1 add cost to rail travel and values under 1 decrease cost"
RAIL: Float
"The weight of SUBWAY traverse mode. Values over 1 add cost to subway travel and values under 1 decrease cost"
SUBWAY: Float
"The weight of TAXI traverse mode. Values over 1 add cost to taxi travel and values under 1 decrease cost"
TAXI: Float
"The weight of TRAM traverse mode. Values over 1 add cost to tram travel and values under 1 decrease cost"
TRAM: Float
"The weight of TROLLEYBUS traverse mode. Values over 1 add cost to trolleybus travel and values under 1 decrease cost"
TROLLEYBUS: Float
}

input InputPreferred {
Expand Down

0 comments on commit 559fac5

Please sign in to comment.