From 6da5a3fc3f73967e872f4d74ee39207f1fed8bc2 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 23 May 2024 15:22:29 -0700 Subject: [PATCH] continue to flesh out maneuvers --- services/travelmux/src/api/v6/osrm_api.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/services/travelmux/src/api/v6/osrm_api.rs b/services/travelmux/src/api/v6/osrm_api.rs index ca10d0cd3..22f09e9b7 100644 --- a/services/travelmux/src/api/v6/osrm_api.rs +++ b/services/travelmux/src/api/v6/osrm_api.rs @@ -241,8 +241,8 @@ impl BannerInstruction { */ ManeuverType::RoundaboutEnter => (RoundaboutEnter, None), // Enter/Exit? ManeuverType::RoundaboutExit => (RoundaboutExit, None), // Enter/Exit? + ManeuverType::FerryEnter => (Notification, None), /* - ManeuverType::FerryEnter => {} ManeuverType::FerryExit => {} ManeuverType::Transit => {} ManeuverType::TransitTransfer => {} @@ -321,6 +321,8 @@ pub struct BannerManeuver { #[serde(rename_all = "lowercase")] pub enum BannerManeuverType { Turn, + #[serde(rename = "new name")] + NewName, Merge, Depart, Arrive, @@ -329,10 +331,22 @@ pub enum BannerManeuverType { OnRamp, #[serde(rename = "off ramp")] OffRamp, + #[serde(rename = "end of road")] + EndOfRoad, + /// Continue on a street after a turn. + Continue, #[serde(rename = "roundabout")] RoundaboutEnter, #[serde(rename = "exit roundabout")] RoundaboutExit, + #[serde(rename = "rotary")] + RotaryEnter, + #[serde(rename = "exit rotary")] + RotaryExit, + #[serde(rename = "roundabout turn")] + RoundaboutTurn, + /// Indicates a change of driving conditions, for example changing the mode from driving to ferry. + Notification, } #[derive(Debug, Serialize, PartialEq, Clone)]