Skip to content

Commit

Permalink
Make own destination policies for each rental type
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Dec 14, 2023
1 parent da7b8f4 commit bb8f166
Showing 1 changed file with 46 additions and 8 deletions.
54 changes: 46 additions & 8 deletions src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -355,20 +355,58 @@ type BikePark implements Node & PlaceInterface {
}

"""
Is it possible to arrive to the destination with a rented vehicle and does it
Is it possible to arrive to the destination with a rented bicycle and does it
come with an extra cost.
"""
input DestinationVehiclePolicyInput {
input DestinationBicyclePolicyInput {
"""
Is it possible to arrive to the destination without dropping off the rental
vehicle first.
bicycle first.
"""
allowKeeping: Boolean

"""
Cost associated with arriving to the destination with a rented vehicle.
Cost associated with arriving to the destination with a rented bicycle.
No cost is applied if arriving to the destination after dropping off the rented
vehicle.
bicycle.
"""
keepingCost: Cost
}

"""
Is it possible to arrive to the destination with a rented car and does it
come with an extra cost.
"""
input DestinationCarPolicyInput {
"""
Is it possible to arrive to the destination without dropping off the rental
car first.
"""
allowKeeping: Boolean

"""
Cost associated with arriving to the destination with a rented car.
No cost is applied if arriving to the destination after dropping off the rented
car.
"""
keepingCost: Cost
}

"""
Is it possible to arrive to the destination with a rented scooter and does it
come with an extra cost.
"""
input DestinationScooterPolicyInput {
"""
Is it possible to arrive to the destination without dropping off the rental
scooter first.
"""
allowKeeping: Boolean

"""
Cost associated with arriving to the destination with a rented scooter.
No cost is applied if arriving to the destination after dropping off the rented
scooter.
"""
keepingCost: Cost
}
Expand Down Expand Up @@ -4306,7 +4344,7 @@ input ScooterRentalPreferencesInput {
Is it possible to arrive to the destination with a rented scooter and does it
come with an extra cost.
"""
destinationScooterPolicy: DestinationVehiclePolicyInput
destinationScooterPolicy: DestinationScooterPolicyInput

"""
Rental networks which can be potentially used as part of an itinerary.
Expand All @@ -4327,7 +4365,7 @@ input CarRentalPreferencesInput {
Is it possible to arrive to the destination with a rented car and does it
come with an extra cost.
"""
destinationCarPolicy: DestinationVehiclePolicyInput
destinationCarPolicy: DestinationCarPolicyInput

"""
Rental networks which can be potentially used as part of an itinerary.
Expand All @@ -4348,7 +4386,7 @@ input BicycleRentalPreferencesInput {
Is it possible to arrive to the destination with a rented bicycle and does it
come with an extra cost.
"""
destinationBicyclePolicy: DestinationVehiclePolicyInput
destinationBicyclePolicy: DestinationBicyclePolicyInput

"""
Rental networks which can be potentially used as part of an itinerary.
Expand Down

0 comments on commit bb8f166

Please sign in to comment.