Struct valhalla_client::Maneuver
source · pub struct Maneuver {Show 26 fields
pub type_: ManeuverType,
pub instruction: String,
pub verbal_transition_alert_instruction: Option<String>,
pub verbal_pre_transition_instruction: 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 bss_maneuver_type: Option<BssManeuverType>,
}
Fields§
§type_: ManeuverType
§instruction: String
§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. For example: “Turn right onto North Prince Street”.
verbal_pre_transition_instruction: String
Text suitable for use as a verbal message immediately prior to the maneuver transition. For 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. For 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: f64
Estimated time along the maneuver in seconds.
length: f64
Maneuver length in the units specified.
begin_shape_index: usize
Index into the list of shape points for the start of the maneuver.
end_shape_index: usize
Index 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 below 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 below for details.
verbal_multi_cue: Option<bool>
Contains the attributes that describe a specific transit stop. See below for details. True if the verbal_pre_transition_instruction has been appended with the verbal instruction of the next maneuver.
travel_mode: TravelMode
Travel mode.
bss_maneuver_type: Option<BssManeuverType>
Used when travel_mode is bikeshare. Describes bike share maneuver. The default value is NoneAction