pub struct GTFSRoute {Show 13 fields
pub route_id: String,
pub agency_id: Option<String>,
pub route_short_name: Option<String>,
pub route_long_name: Option<String>,
pub route_desc: Option<String>,
pub route_type: i8,
pub route_url: Option<String>,
pub route_color: Option<String>,
pub route_text_color: Option<String>,
pub route_sort_order: Option<i8>,
pub continuous_pickup: Option<i8>,
pub continuous_drop_off: Option<i8>,
pub network_id: Option<String>,
}Expand description
Fields§
§route_id: StringRequired Identifies a route.
agency_id: Option<String>Conditionally Required Agency for the specified route. Required if multiple agencies are defined in agency.txt.
route_short_name: Option<String>Conditionally Required
Short name of a route, e.g. “32”, “100X”, “Green”.
Required if route_long_name is empty. Recommended otherwise.
route_long_name: Option<String>Conditionally Required
Full name of a route, generally more descriptive than shortName.
Required if route_short_name is empty. Optional otherwise.
route_desc: Option<String>Optional Description of a route providing useful info, not a duplicate of short/long name.
route_type: i8Required Indicates the type of transportation used on a route. Valid options include: 0 - Tram, 1 - Subway, 2 - Rail, 3 - Bus, 4 - Ferry, 5 - Cable tram, 6 - Aerial lift, 7 - Funicular, 11 - Trolleybus, 12 - Monorail.
route_url: Option<String>Optional
URL of a web page about the route. Should differ from agency.agency_url.
route_color: Option<String>Optional
Route color (hex) matching public-facing material. Defaults to FFFFFF if empty.
route_text_color: Option<String>Optional
Text color (hex) used against the route_color. Defaults to 000000 if empty.
route_sort_order: Option<i8>Optional Orders routes for ideal presentation (smaller values displayed first).
continuous_pickup: Option<i8>Conditionally Forbidden Continuous pickup setting for the entire route. 0 - Continuous stopping pickup, 1/empty - No continuous stopping pickup, 2 - Must phone agency, 3 - Must coordinate with driver.
Forbidden if stop_times.start_pickup_drop_off_window
or stop_times.end_pickup_drop_off_window are used.
continuous_drop_off: Option<i8>Conditionally Forbidden Continuous drop-off setting for the entire route. 0 - Continuous stopping drop off, 1/empty - No continuous stopping drop off, 2 - Must phone agency, 3 - Must coordinate with driver.
Forbidden if stop_times.start_pickup_drop_off_window
or stop_times.end_pickup_drop_off_window are used.
network_id: Option<String>Conditionally Forbidden
Identifies a group of routes. Multiple rows may share the same network_id.
Forbidden if route_networks.txt is used.
Implementations§
Source§impl GTFSRoute
impl GTFSRoute
Sourcepub fn route_type(&self) -> GTFSRouteType
pub fn route_type(&self) -> GTFSRouteType
Get route type
Sourcepub fn continuous_pickup(&self) -> Option<GTFSRoutePickupType>
pub fn continuous_pickup(&self) -> Option<GTFSRoutePickupType>
Get the continuous_pickup
Sourcepub fn continuous_drop_off(&self) -> Option<GTFSRoutePickupType>
pub fn continuous_drop_off(&self) -> Option<GTFSRoutePickupType>
Get the continuous_drop_off
Sourcepub fn route_color(&self) -> Option<RGBA>
pub fn route_color(&self) -> Option<RGBA>
Get the route color
Sourcepub fn route_text_color(&self) -> Option<RGBA>
pub fn route_text_color(&self) -> Option<RGBA>
Get the route text color
Trait Implementations§
Source§impl From<&Map<String, ValueType>> for GTFSRoute
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSRoute
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSRoute
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSRoute
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSRoute> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSRoute> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§impl From<ValueType> for GTFSRoute
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSRoute
If this struct is nested into another struct, pull out the MValue and let
From
impl MValueCompatible for GTFSRoute
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSRoute
Auto Trait Implementations§
impl Freeze for GTFSRoute
impl RefUnwindSafe for GTFSRoute
impl Send for GTFSRoute
impl Sync for GTFSRoute
impl Unpin for GTFSRoute
impl UnwindSafe for GTFSRoute
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().