Skip to content

Commit

Permalink
Merge pull request #3 from mbta/cbj/trip-headsigns
Browse files Browse the repository at this point in the history
feat: fetch trip headsign and short name
  • Loading branch information
thecristen authored Dec 10, 2024
2 parents 1a0dd18 + 1541a1e commit 61d562b
Show file tree
Hide file tree
Showing 4 changed files with 609 additions and 545 deletions.
2 changes: 2 additions & 0 deletions lib/open_trip_planner_client/schema/trip.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ defmodule OpenTripPlannerClient.Schema.Trip do
@derive Nestru.Decoder
schema do
field(:gtfs_id, gtfs_id(), @nonnull_field)
field(:trip_headsign, String.t())
field(:trip_short_name, String.t())
end
end
6 changes: 5 additions & 1 deletion priv/plan.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ query TripPlan(
}
to { ...PlaceInfo }
transitLeg
trip { gtfsId }
trip {
gtfsId
tripHeadsign
tripShortName
}
}
numberOfTransfers
start
Expand Down
Loading

0 comments on commit 61d562b

Please sign in to comment.