From 7120b3301aadc14fb24458dc2f412c73e65caa6c Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 17 May 2024 15:59:08 -0700 Subject: [PATCH] more maneuvers --- services/travelmux/src/api/v5/osrm_api.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/services/travelmux/src/api/v5/osrm_api.rs b/services/travelmux/src/api/v5/osrm_api.rs index 9c545a89f..96e1e0b5b 100644 --- a/services/travelmux/src/api/v5/osrm_api.rs +++ b/services/travelmux/src/api/v5/osrm_api.rs @@ -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 => {} @@ -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, @@ -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)]