diff --git a/packages/core-utils/src/planQuery.graphql b/packages/core-utils/src/planQuery.graphql index 3ca777063..3aa7d4372 100644 --- a/packages/core-utils/src/planQuery.graphql +++ b/packages/core-utils/src/planQuery.graphql @@ -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 @@ -30,6 +31,7 @@ query Plan( transportModes: $modes unpreferred: $unpreferred walkReluctance: $walkReluctance + walkSpeed: $walkSpeed wheelchair: $wheelchair ) { itineraries { diff --git a/packages/core-utils/src/query-gen.ts b/packages/core-utils/src/query-gen.ts index 308c476c4..9261ad28b 100644 --- a/packages/core-utils/src/query-gen.ts +++ b/packages/core-utils/src/query-gen.ts @@ -239,6 +239,7 @@ export function generateOtp2Query( const { bikeReluctance, carReluctance, + walkSpeed, walkReluctance, wheelchair } = modeSettingValues; @@ -258,6 +259,7 @@ export function generateOtp2Query( time, toPlace: `${to.name}::${to.lat},${to.lon}}`, walkReluctance, + walkSpeed, wheelchair } };