Skip to content

Commit

Permalink
Add interlineWithPreviousLeg to leg in GraphQL API
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Jun 29, 2020
1 parent af729bf commit 565cde3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3785,6 +3785,12 @@ private void createPlanType(GraphIndex index) {
.type(Scalars.GraphQLString)
.dataFetcher(environment -> ((Leg) environment.getSource()).serviceDate)
.build())
.field(GraphQLFieldDefinition.newFieldDefinition()
.name("interlineWithPreviousLeg")
.description("Interlines with previous leg. This is true when the same vehicle is used for the previous leg as for this leg and passenger can stay inside the vehicle.")
.type(Scalars.GraphQLBoolean)
.dataFetcher(environment -> ((Leg) environment.getSource()).interlineWithPreviousLeg)
.build())
.field(GraphQLFieldDefinition.newFieldDefinition()
.name("intermediateStops")
.description("For transit legs, intermediate stops between the Place where the leg originates and the Place where the leg ends. For non-transit legs, null.")
Expand Down

0 comments on commit 565cde3

Please sign in to comment.