Struct valhalla_client::TransitInfo
source · pub struct TransitInfo {
pub onestop_id: String,
pub short_name: String,
pub long_name: String,
pub headsign: String,
pub color: i32,
pub text_color: String,
pub description: String,
pub operator_onestop_id: String,
pub operator_name: String,
pub operator_url: String,
pub transit_stops: Vec<TransitStop>,
}
Fields§
§onestop_id: String
Global transit route identifier.
short_name: String
Short name describing the transit route. For example “N”.
long_name: String
Long name describing the transit route. For example “Broadway Express”.
headsign: String
The sign on a public transport vehicle that identifies the route destination to passengers. For example “ASTORIA - DITMARS BLVD”.
color: i32
The numeric color value associated with a transit route. The value for yellow would be “16567306”.
text_color: String
The numeric text color value associated with a transit route. The value for black would be “0”.
description: String
The description of the the transit route. For example “Trains operate from Ditmars Boulevard, Queens, to Stillwell Avenue, Brooklyn, at all times. N trains in Manhattan operate along Broadway and across the Manhattan Bridge to and from Brooklyn. Trains in Brooklyn operate along 4th Avenue, then through Borough Park to Gravesend. Trains typically operate local in Queens, and either express or local in Manhattan and Brooklyn, depending on the time. Late night trains operate via Whitehall Street, Manhattan. Late night service is local”.
operator_onestop_id: String
Global operator/agency identifier.
operator_name: String
Operator/agency name. For example, “BART”, “King County Marine Division”, and so on. Short name is used over long name.
operator_url: String
Operator/agency URL. For example, “http://web.mta.info/”.
transit_stops: Vec<TransitStop>
A list of the stops/stations associated with a specific transit route. See below for details.
Trait Implementations§
source§impl Clone for TransitInfo
impl Clone for TransitInfo
source§fn clone(&self) -> TransitInfo
fn clone(&self) -> TransitInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more