[][src]Function transit_model::transfers::generates_transfers

pub fn generates_transfers<P: AsRef<Path>>(
    model: Model,
    max_distance: f64,
    walking_speed: f64,
    waiting_time: u32,
    rule_files: Vec<P>,
    transfers_mode: &TransfersMode,
    report_path: Option<PathBuf>
) -> Result<Model>

Generates missing transfers

The max_distance argument allows you to specify the max distance in meters to compute the tranfer.

The walking_speed argument is the walking speed in meters per second.

The waiting_time argument is the waiting transfer_time in seconds at stop.

rule_files are paths to csv files that contains rules for modifying

transfers_mode is the type of transfers to generate tranfers

Example

from_stop_idto_stop_idtransfer_time
SP1SP2 no time is specified, this transfer will be removed
SP3SP2120 transfer added
UNKNOWNSP2180 stop UNKNOWN is not found, transfer will be ignored
UNKNOWNSP2 stop UNKNOWN is not found, transfer will be ignored