Struct gtfs_structures::Gtfs[][src]

pub struct Gtfs {
    pub read_duration: i64,
    pub calendar: HashMap<String, Calendar>,
    pub calendar_dates: HashMap<String, Vec<CalendarDate>>,
    pub stops: HashMap<String, Arc<Stop>>,
    pub routes: HashMap<String, Route>,
    pub trips: HashMap<String, Trip>,
    pub agencies: Vec<Agency>,
    pub shapes: HashMap<String, Vec<Shape>>,
    pub fare_attributes: HashMap<String, FareAttribute>,
    pub feed_info: Vec<FeedInfo>,
}
Expand description

Data structure with all the GTFS objects

This structure is easier to use than the RawGtfs structure.

Fields

read_duration: i64calendar: 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>>fare_attributes: HashMap<String, FareAttribute>feed_info: Vec<FeedInfo>

Implementations

Reads from an url (if starts with http), or a local path (either a directory or zipped file) To read from an url, build with read-url feature See also Gtfs::from_url and Gtfs::from_path if you don’t want the library to guess

 Reads the GTFS from a local zip archive or local directory

Reads the GTFS from a remote url The library must be built with the read-url feature

Asynchronously reads the GTFS from a remote url The library must be built with the read-url feature

Trait Implementations

Returns the “default value” for a type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.