pub fn convert_to_geojson(gtfs_data: &Gtfs) -> FeatureCollection {
    let mut features = extract_stops(gtfs_data);
    let shape_features = extract_trips_shapes(gtfs_data);
    features.extend(shape_features);
    FeatureCollection {
        bbox: None,
        features,
        foreign_members: None,
    }
}
/// This function will take a GTFS data format and ouput a FeatureCollection, which can in turn, be printed by the utility module.
/// # Examples
/// ```
/// let gtfs_data = Gtfs::new("tests/gtfs/gtfs_46.zip");
/// convert_to_geojson(gtfs_data, true);
/// ```
This function will take a GTFS data format and ouput a FeatureCollection, which can in turn, be printed by the utility module.
This function will take a GTFS data format and ouput a FeatureCollection which can in turn be printed by the utility module .
pub fn convert_to_geojson(gtfs_data: &Gtfs) -> FeatureCollection {
    let mut features = extract_stops(gtfs_data);
    let shape_features = extract_trips_shapes(gtfs_data);
    features.extend(shape_features);
    FeatureCollection {
        bbox: None,
        features,
        foreign_members: None,
    }
}
pub fn convert_to_geojson ( gtfs_data : & Gtfs ) -> FeatureCollection { let mut features = extract_stops ( gtfs_data ) ; let shape_features = extract_trips_shapes ( gtfs_data ) ; features . extend ( shape_features ) ; FeatureCollection { bbox : None , features , foreign_members : None , } }
This function will take a GTFS data format and ouput a FeatureCollection, which can in turn, be printed by the utility module.
This function will take a GTFS data format and ouput a FeatureCollection which can in turn be printed by the utility module .
gtfs_data
&Gtfs
examples
```
let gtfs_data = Gtfs::new("tests/gtfs/gtfs_46.zip");
convert_to_geojson(gtfs_data, true);
```
` ` ` let gtfs_data = Gtfs :: new ( " tests / gtfs / gtfs_46 . zip " ) ; convert_to_geojson ( gtfs_data true ) ; ` ` `