[][src]Function transit_model::gtfs::read_from_url

pub fn read_from_url<P: AsRef<Path>>(
    url: &str,
    config_path: Option<P>,
    prefix: Option<String>
) -> Result<Model>

Imports a Model from a url hosting a zip file containing the GTFS.

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.