Skip to content

Commit

Permalink
more maneuvers
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed May 18, 2024
1 parent 09395c3 commit 7120b33
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions services/travelmux/src/api/v5/osrm_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ impl BannerInstruction {
ManeuverType::StayLeft => (Fork, Some(Left)),
/*
ManeuverType::Merge => {}
ManeuverType::RoundaboutEnter => {}
ManeuverType::RoundaboutExit => {}
*/
ManeuverType::RoundaboutEnter => (RoundaboutEnter, None), // Enter/Exit?
ManeuverType::RoundaboutExit => (RoundaboutExit, None), // Enter/Exit?
/*
ManeuverType::FerryEnter => {}
ManeuverType::FerryExit => {}
ManeuverType::Transit => {}
Expand All @@ -257,7 +259,7 @@ impl BannerInstruction {
ManeuverType::BuildingEnter => {}
ManeuverType::BuildingExit => {}
*/
_ => todo!("implement manuever type: {:?}", maneuver.r#type),
other => todo!("implement maneuver type: {other:?}"),
};
Some(BannerManeuver {
r#type: banner_type,
Expand Down Expand Up @@ -327,7 +329,10 @@ pub enum BannerManeuverType {
OnRamp,
#[serde(rename = "off ramp")]
OffRamp,
RoundAbout,
#[serde(rename = "roundabout")]
RoundaboutEnter,
#[serde(rename = "exit roundabout")]
RoundaboutExit,
}

#[derive(Debug, Serialize, PartialEq, Clone)]
Expand Down

0 comments on commit 7120b33

Please sign in to comment.