pub struct GTFSStop {Show 15 fields
pub stop_id: String,
pub stop_code: String,
pub stop_name: String,
pub tts_stop_name: String,
pub stop_desc: String,
pub stop_lat: Option<f64>,
pub stop_lon: Option<f64>,
pub zone_id: String,
pub stop_url: String,
pub location_type: Option<i8>,
pub parent_station: String,
pub stop_timezone: String,
pub wheelchair_boarding: Option<i8>,
pub level_id: String,
pub platform_code: String,
}Expand description
Fields§
§stop_id: StringRequired Identifies a location: stop/platform, station, entrance/exit, generic node, or boarding area. Must be unique across:
- stops.stop_id
- locations.geojson id
- location_groups.location_group_id
Multiple routes may use the same stop_id.
stop_code: StringOptional Short text or a number that identifies the location for riders.
stop_name: StringConditionally Required
Name of the location. Required if location_type is 0, 1, or 2. Optional otherwise.
tts_stop_name: StringOptional Readable version of the stop_name for text-to-speech systems.
stop_desc: StringOptional
Description providing useful information about the location.
Should not be a duplicate of name.
stop_lat: Option<f64>Conditionally Required
Latitude of the location. Required if location_type is 0, 1, or 2. Optional otherwise.
stop_lon: Option<f64>Conditionally Required
Longitude of the location. Required if location_type is 0, 1, or 2. Optional otherwise.
zone_id: StringOptional Identifies the fare zone for a stop.
stop_url: StringOptional URL of a web page about this location.
location_type: Option<i8>Optional Location type. Valid options: 0 or empty = Stop/Platform, 1 = Station, 2 = Entrance/Exit, 3 = Generic Node, 4 = Boarding Area.
parent_station: StringConditionally Required
Defines hierarchy between different locations. Required if location_type is 2, 3, or 4.
stop_timezone: StringOptional Timezone of the location. Inherits from parent station if not specified.
wheelchair_boarding: Option<i8>Optional Indicates whether wheelchair boardings are possible at this location. For parentless stops: 0 = no info, 1 = possible, 2 = not possible. For child stops, entrance/exits: inherits or overrides parent station accessibility.
level_id: StringOptional Level of the location. References levels.level_id.
platform_code: StringOptional Platform identifier for a platform stop.
Implementations§
Source§impl GTFSStop
impl GTFSStop
Sourcepub fn get_location_type(&self) -> Option<GTFSStopLocationType>
pub fn get_location_type(&self) -> Option<GTFSStopLocationType>
Get the location_type
Sourcepub fn to_feature(&self) -> Option<VectorFeature>
pub fn to_feature(&self) -> Option<VectorFeature>
Convert to a feature
Trait Implementations§
Source§impl From<>FSStop> for GTFSStopProperties
impl From<>FSStop> for GTFSStopProperties
Source§impl From<&Map<String, ValueType>> for GTFSStop
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GTFSStop
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GTFSStop
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GTFSStop
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GTFSStop> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GTFSStop> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§impl From<ValueType> for GTFSStop
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GTFSStop
If this struct is nested into another struct, pull out the MValue and let
From
impl MValueCompatible for GTFSStop
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GTFSStop
Auto Trait Implementations§
impl Freeze for GTFSStop
impl RefUnwindSafe for GTFSStop
impl Send for GTFSStop
impl Sync for GTFSStop
impl Unpin for GTFSStop
impl UnwindSafe for GTFSStop
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().