Skip to content

Commit

Permalink
motis-proxy: Add max_transfers and bike_transfers to intermodal routi…
Browse files Browse the repository at this point in the history
…ng request
  • Loading branch information
jbruechert committed Jun 24, 2024
1 parent 00800e2 commit 481b959
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion motis-proxy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ struct IntermodalConnectionRequest {
search_dir: SearchDirection,
router: AllowedRouters,
#[serde(skip_serializing_if = "Option::is_none")]
allowed_claszes: Option<Vec<AllowedClasses>>
allowed_claszes: Option<Vec<AllowedClasses>>,
#[serde(skip_serializing_if = "Option::is_none")]
max_transfers: Option<i32>,
#[serde(skip_serializing_if = "Option::is_none")]
bike_transport: Option<bool>
}

#[derive(Deserialize, Serialize, JsonSchema)]
Expand Down

0 comments on commit 481b959

Please sign in to comment.