pub struct Trip {
pub status: i32,
pub status_message: String,
pub units: Units,
pub language: String,
pub locations: Vec<Location>,
pub warnings: Option<Vec<String>>,
pub id: Option<String>,
pub legs: Vec<Leg>,
pub summary: Summary,
}Expand description
Description of a trip
Fields§
§status: i32Status code
status_message: StringStatus message
units: UnitsThe via Manifest::units specified units of length are returned.
Either super::Units::Metric or super::Units::Imperial.
language: StringThe language of the narration instructions.
If the user specified a language via Manifest::language in the directions options and the specified language was supported.
This returned value will be equal to the specified value.
Otherwise, this value will be the default (en-US) language.
locations: Vec<Location>Location information is returned in the same form as it is entered.
Additional fields are added to indicate the side of the street.
Output can be changed via via Manifest::locations.
warnings: Option<Vec<String>>This array may contain warning objects informing about deprecated request parameters, clamped values etc.
id: Option<String>Name of your route request.
If an id is specified via Manifest::id, the naming will be sent thru to the response.
legs: Vec<Leg>§summary: SummaryBasic information about the entire Trip