Skip to content

Commit

Permalink
continue to flesh out maneuvers
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed May 23, 2024
1 parent 6afb115 commit 6da5a3f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion services/travelmux/src/api/v6/osrm_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {}
Expand Down Expand Up @@ -321,6 +321,8 @@ pub struct BannerManeuver {
#[serde(rename_all = "lowercase")]
pub enum BannerManeuverType {
Turn,
#[serde(rename = "new name")]
NewName,
Merge,
Depart,
Arrive,
Expand All @@ -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)]
Expand Down

0 comments on commit 6da5a3f

Please sign in to comment.