Trait transitfeed::TransitFeed
[−]
[src]
pub trait TransitFeed { fn id(&self) -> i64; fn name(&self) -> String; fn hashsum(&self) -> String; fn created(&self) -> DateTime<UTC>; fn agencies(&self) -> Iterator<Item=Agency>; fn stops(&self) -> Iterator<Item=Stop>; fn routes(&self) -> Iterator<Item=Route>; fn trips(&self) -> Iterator<Item=Trip>; fn stop_times(&self) -> Iterator<Item=StopTime>; fn shapes(&self) -> Iterator<Item=Shape>; }
TransitFeed provides functionality to access the raw transit data in a variety of ways. It may internally index the sets of data it has. This closely relates to the structure of GTFS. In essence we want to be able to serialize/deserialize transit to/from GTFS and Other sources with a uniform interface being provided by them for easier transformation.