[−][src]Struct gtfs_structures::Gtfs
Fields
read_duration: i64
calendar: HashMap<String, Calendar>
calendar_dates: HashMap<String, Vec<CalendarDate>>
stops: HashMap<String, Arc<Stop>>
routes: HashMap<String, Route>
trips: HashMap<String, Trip>
agencies: Vec<Agency>
shapes: HashMap<String, Vec<Shape>>
Methods
impl Gtfs
[src]
impl Gtfs
pub fn print_stats(&self) | [src] |
pub fn new(path: &str) -> Result<Gtfs, Error> | [src] |
pub fn from_zip(file: &str) -> Result<Gtfs, Error> | [src] |
pub fn from_url(url: &str) -> Result<Gtfs, Error> | [src] |
pub fn from_reader<T: Read + Seek>(reader: T) -> Result<Gtfs, Error> | [src] |
pub fn trip_days(&self, service_id: &str, start_date: NaiveDate) -> Vec<u16> | [src] |
pub fn get_stop<'a>(&'a self, id: &str) -> Result<&'a Stop, ReferenceError> | [src] |
pub fn get_trip<'a>(&'a self, id: &str) -> Result<&'a Trip, ReferenceError> | [src] |
pub fn get_route<'a>(&'a self, id: &str) -> Result<&'a Route, ReferenceError> | [src] |
pub fn get_calendar<'a>( | [src] |
pub fn get_calendar_date<'a>( | [src] |
pub fn get_shape<'a>( | [src] |
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |