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>,
}
Expand description
Transit information
Fields§
§onestop_id: String
Global transit route identifier.
short_name: String
Short name describing the transit route
Example: “N”
long_name: String
Long name describing the transit route
Example: “Broadway Express”
headsign: String
The sign on a public transport vehicle that identifies the route destination to passengers.
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 transit route
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
Short name is used over long name.
Example: “BART”, “King County Marine Division”, and so on.
operator_url: String
Operator/agency URL
Example: http://web.mta.info/
.
transit_stops: Vec<TransitStop>
A list of the stops/stations associated with a specific transit route.
See TransitStop
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