Skip to content

Commit

Permalink
fix(core-utils): add walk speed to query
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-heppner-ibigroup committed Aug 16, 2023
1 parent 27ef271 commit 2d55c1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/core-utils/src/planQuery.graphql
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
query Plan(
$fromPlace: String!
$toPlace: String!
$modes: [TransportMode]
$time: String
$date: String
$wheelchair: Boolean
$arriveBy: Boolean
$banned: InputBanned
$bikeReluctance: Float
$carReluctance: Float
$walkReluctance: Float
$arriveBy: Boolean
$date: String
$fromPlace: String!
$modes: [TransportMode]
$numItineraries: Int
$preferred: InputPreferred
$time: String
$toPlace: String!
$unpreferred: InputUnpreferred
$banned: InputBanned
$numItineraries: Int
$walkReluctance: Float
$walkSpeed: Float
$wheelchair: Boolean
) {
plan(
arriveBy: $arriveBy
Expand All @@ -30,6 +31,7 @@ query Plan(
transportModes: $modes
unpreferred: $unpreferred
walkReluctance: $walkReluctance
walkSpeed: $walkSpeed
wheelchair: $wheelchair
) {
itineraries {
Expand Down
2 changes: 2 additions & 0 deletions packages/core-utils/src/query-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export function generateOtp2Query(
const {
bikeReluctance,
carReluctance,
walkSpeed,
walkReluctance,
wheelchair
} = modeSettingValues;
Expand All @@ -258,6 +259,7 @@ export function generateOtp2Query(
time,
toPlace: `${to.name}::${to.lat},${to.lon}}`,
walkReluctance,
walkSpeed,
wheelchair
}
};
Expand Down

0 comments on commit 2d55c1b

Please sign in to comment.