[][src]Function transit_model::gtfs::read_from_path

pub fn read_from_path<P: AsRef<Path>>(
    p: P,
    configuration: Configuration
) -> Result<Model>

Imports a Model from the GTFS files in the path directory.

The config_path argument allows you to give a path to a file containing a json representing the contributor and dataset used for this GTFS. If not given, default values will be created.

The prefix argument is a string that will be prepended to every identifiers, allowing to namespace the dataset. By default, no prefix will be added to the identifiers.