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: 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>>
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
Auto Trait Implementations
impl RefUnwindSafe for Gtfs
impl UnwindSafe for Gtfs