Skip to content

Commit f580998

Browse files
committed
Change gtfs graphql schema and generated files.
1 parent c8fbf02 commit f580998

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

application/src/main/java/org/opentripplanner/apis/gtfs/generated/GraphQLDataFetchers.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
//THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
22
package org.opentripplanner.apis.gtfs.generated;
33

4+
import graphql.relay.Connection;
5+
import graphql.relay.Connection;
46
import graphql.relay.Connection;
57
import graphql.relay.DefaultEdge;
68
import graphql.relay.Edge;
9+
import graphql.relay.Edge;
10+
import graphql.relay.Edge;
711
import graphql.schema.DataFetcher;
812
import graphql.schema.TypeResolver;
913
import java.util.Currency;
@@ -28,13 +32,18 @@
2832
import org.opentripplanner.apis.gtfs.model.FeedPublisher;
2933
import org.opentripplanner.apis.gtfs.model.PlanPageInfo;
3034
import org.opentripplanner.apis.gtfs.model.RideHailingProvider;
35+
import org.opentripplanner.apis.gtfs.model.RouteTypeModel;
36+
import org.opentripplanner.apis.gtfs.model.StopOnRouteModel;
37+
import org.opentripplanner.apis.gtfs.model.StopOnTripModel;
3138
import org.opentripplanner.apis.gtfs.model.StopPosition;
3239
import org.opentripplanner.apis.gtfs.model.TripOccupancy;
40+
import org.opentripplanner.apis.gtfs.model.UnknownModel;
3341
import org.opentripplanner.ext.fares.model.FareRuleSet;
3442
import org.opentripplanner.ext.ridehailing.model.RideEstimate;
3543
import org.opentripplanner.model.StopTimesInPattern;
3644
import org.opentripplanner.model.SystemNotice;
3745
import org.opentripplanner.model.TripTimeOnDate;
46+
import org.opentripplanner.model.TripTimeOnDate;
3847
import org.opentripplanner.model.calendar.openinghours.OHCalendar;
3948
import org.opentripplanner.model.fare.FareMedium;
4049
import org.opentripplanner.model.fare.FareProduct;
@@ -55,15 +64,19 @@
5564
import org.opentripplanner.service.realtimevehicles.model.RealtimeVehicle;
5665
import org.opentripplanner.service.realtimevehicles.model.RealtimeVehicle.StopRelationship;
5766
import org.opentripplanner.service.vehicleparking.model.VehicleParking;
67+
import org.opentripplanner.service.vehicleparking.model.VehicleParking;
68+
import org.opentripplanner.service.vehicleparking.model.VehicleParking;
5869
import org.opentripplanner.service.vehicleparking.model.VehicleParkingSpaces;
5970
import org.opentripplanner.service.vehicleparking.model.VehicleParkingState;
6071
import org.opentripplanner.service.vehiclerental.model.RentalVehicleEntityCounts;
6172
import org.opentripplanner.service.vehiclerental.model.RentalVehicleFuel;
6273
import org.opentripplanner.service.vehiclerental.model.RentalVehicleType;
6374
import org.opentripplanner.service.vehiclerental.model.RentalVehicleTypeCount;
6475
import org.opentripplanner.service.vehiclerental.model.VehicleRentalPlace;
76+
import org.opentripplanner.service.vehiclerental.model.VehicleRentalPlace;
6577
import org.opentripplanner.service.vehiclerental.model.VehicleRentalStation;
6678
import org.opentripplanner.service.vehiclerental.model.VehicleRentalStationUris;
79+
import org.opentripplanner.service.vehiclerental.model.VehicleRentalStationUris;
6780
import org.opentripplanner.service.vehiclerental.model.VehicleRentalSystem;
6881
import org.opentripplanner.service.vehiclerental.model.VehicleRentalVehicle;
6982
import org.opentripplanner.transit.model.basic.Money;

application/src/main/java/org/opentripplanner/apis/gtfs/generated/GraphQLTypes.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
22
package org.opentripplanner.apis.gtfs.generated;
33

4+
import java.util.HashMap;
45
import java.util.List;
56
import java.util.Map;
67
import java.util.stream.Collectors;
@@ -555,12 +556,14 @@ public void setGraphQLUnpreferredCost(
555556

556557
public static class GraphQLCarPreferencesInput {
557558

559+
private org.opentripplanner.framework.model.Cost boardCost;
558560
private GraphQLCarParkingPreferencesInput parking;
559561
private Double reluctance;
560562
private GraphQLCarRentalPreferencesInput rental;
561563

562564
public GraphQLCarPreferencesInput(Map<String, Object> args) {
563565
if (args != null) {
566+
this.boardCost = (org.opentripplanner.framework.model.Cost) args.get("boardCost");
564567
this.parking =
565568
new GraphQLCarParkingPreferencesInput((Map<String, Object>) args.get("parking"));
566569
this.reluctance = (Double) args.get("reluctance");
@@ -569,6 +572,10 @@ public GraphQLCarPreferencesInput(Map<String, Object> args) {
569572
}
570573
}
571574

575+
public org.opentripplanner.framework.model.Cost getGraphQLBoardCost() {
576+
return this.boardCost;
577+
}
578+
572579
public GraphQLCarParkingPreferencesInput getGraphQLParking() {
573580
return this.parking;
574581
}
@@ -581,6 +588,10 @@ public GraphQLCarRentalPreferencesInput getGraphQLRental() {
581588
return this.rental;
582589
}
583590

591+
public void setGraphQLBoardCost(org.opentripplanner.framework.model.Cost boardCost) {
592+
this.boardCost = boardCost;
593+
}
594+
584595
public void setGraphQLParking(GraphQLCarParkingPreferencesInput parking) {
585596
this.parking = parking;
586597
}

application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3994,6 +3994,8 @@ input CarParkingPreferencesInput {
39943994

39953995
"Preferences related to traveling on a car (excluding car travel on transit services such as taxi)."
39963996
input CarPreferencesInput {
3997+
"Cost of boarding a vehicle with a car."
3998+
boardCost: Cost
39973999
"Car parking related preferences."
39984000
parking: CarParkingPreferencesInput
39994001
"A multiplier for how bad travelling on car is compared to being in transit for equal lengths of time."

0 commit comments

Comments
 (0)