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

pub fn generates_transfers(
    model: Model,
    max_distance: f64,
    walking_speed: f64,
    waiting_time: u32
) -> 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

Example

from_stop_idto_stop_idtransfer_time
SP1SP2no time is specified, this transfer will be removed
SP3SP2120transfer added
UNKNOWNSP2180stop UNKNOWN is not found, transfer will be ignored
UNKNOWNSP2stop UNKNOWN is not found, transfer will be ignored