pub struct Maneuver {Show 27 fields
pub type_: ManeuverType,
pub instruction: String,
pub verbal_transition_alert_instruction: Option<String>,
pub verbal_pre_transition_instruction: Option<String>,
pub verbal_post_transition_instruction: Option<String>,
pub street_names: Option<Vec<String>>,
pub begin_street_names: Option<Vec<String>>,
pub time: f64,
pub length: f64,
pub begin_shape_index: usize,
pub end_shape_index: usize,
pub toll: Option<bool>,
pub highway: Option<bool>,
pub rough: Option<bool>,
pub gate: Option<bool>,
pub ferry: Option<bool>,
pub sign: Option<Sign>,
pub roundabout_exit_count: Option<i64>,
pub depart_instruction: Option<String>,
pub verbal_depart_instruction: Option<String>,
pub arrive_instruction: Option<String>,
pub verbal_arrive_instruction: Option<String>,
pub transit_info: Option<TransitInfo>,
pub verbal_multi_cue: Option<bool>,
pub travel_mode: TravelMode,
pub travel_type: TravelType,
pub bss_maneuver_type: Option<BssManeuverType>,
}Expand description
A maneuver is a single instruction to the user.
Fields§
§type_: ManeuverTypeType of maneuver
instruction: StringWritten maneuver instruction, describing the maneuver.
Example: “Turn right onto Main Street”.
verbal_transition_alert_instruction: Option<String>Text suitable for use as a verbal alert in a navigation application.
The transition alert instruction will prepare the user for the forthcoming transition.
Example: “Turn right onto North Prince Street”
verbal_pre_transition_instruction: Option<String>Text suitable for use as a verbal message immediately prior to the maneuver transition.
Example: “Turn right onto North Prince Street, U.S. 2 22”
verbal_post_transition_instruction: Option<String>Text suitable for use as a verbal message immediately after the maneuver transition.
Example: “Continue on U.S. 2 22 for 3.9 miles”
street_names: Option<Vec<String>>List of street names that are consistent along the entire nonobvious maneuver
begin_street_names: Option<Vec<String>>When present, these are the street names at the beginning (transition point) of the nonobvious maneuver (if they are different than the names that are consistent along the entire nonobvious maneuver).
time: f64Estimated time along the maneuver in seconds.
length: f64Maneuver length in the super::Units specified via Manifest::units
begin_shape_index: usizeIndex into the list of shape points for the start of the maneuver.
end_shape_index: usizeIndex into the list of shape points for the end of the maneuver.
toll: Option<bool>true if a toll booth is encountered on this maneuver.
highway: Option<bool>true if a highway is encountered on this maneuver.
rough: Option<bool>true if the maneuver is unpaved or rough pavement, or has any portions that have rough
pavement.
gate: Option<bool>true if a gate is encountered on this maneuver.
ferry: Option<bool>true if a ferry is encountered on this maneuver.
sign: Option<Sign>Contains the interchange guide information at a road junction associated with this maneuver.
See Sign for details.
roundabout_exit_count: Option<i64>The spoke to exit roundabout after entering.
depart_instruction: Option<String>Written depart time instruction.
Typically used with a transit maneuver, such as “Depart: 8:04 AM from 8 St - NYU”.
verbal_depart_instruction: Option<String>Text suitable for use as a verbal depart time instruction.
Typically used with a transit maneuver, such as “Depart at 8:04 AM from 8 St - NYU”.
arrive_instruction: Option<String>Written arrive time instruction.
Typically used with a transit maneuver, such as “Arrive: 8:10 AM at 34 St - Herald Sq”.
verbal_arrive_instruction: Option<String>Text suitable for use as a verbal arrive time instruction.
Typically used with a transit maneuver, such as “Arrive at 8:10 AM at 34 St - Herald Sq”.
transit_info: Option<TransitInfo>Contains the attributes that describe a specific transit route.
See TransitInfo for details.
verbal_multi_cue: Option<bool>true if Self::verbal_pre_transition_instruction has been appended with
the verbal instruction of the next maneuver and thus contains more than one instruction.
travel_mode: TravelModeTravel mode
travel_type: TravelTypeTravel type
bss_maneuver_type: Option<BssManeuverType>Describes bike share maneuver.
Used when travel_mode is TravelMode::Bicycle.
Default: BssManeuverType::NoneAction