Skip to content

Commit

Permalink
Make general input for via and pass-through routing
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jul 12, 2024
1 parent ab2e8cb commit 2886a15
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ type QueryType {
"Preferences for vehicle parking"
parking: VehicleParkingInput,
"The list of points the journey is required to pass through."
passThroughPoints: [PassThroughPoint!],
viaPoints: [ViaPoint!],
"List of routes and agencies which are given higher preference when planning the itinerary"
preferred: InputPreferred,
"""
Expand Down Expand Up @@ -3896,9 +3896,16 @@ input ParkingFilterOperation {
}

"Defines one point which the journey must pass through."
input PassThroughPoint {
"Optional name of the pass-through point for debugging and logging. It is not used in routing."
input ViaPoint {
"Optional name of the via point for debugging and logging. It is not used in routing."
name: String
element: ViaElement!
}

input ViaElement {
# we want to keep a space here for adding a coordinate rather than a list of stop location ids
# once we do that the API has to detect this case and switch from the pass-through routing
# to the via routing, which uses a different, less efficient algorithm.
"""
The list of *stop location ids* which define the pass-through point. At least one id is required.
Stop and Station are supported location types.
Expand Down

0 comments on commit 2886a15

Please sign in to comment.