[−][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_id | to_stop_id | transfer_time | |
---|---|---|---|
SP1 | SP2 | no time is specified, this transfer will be removed | |
SP3 | SP2 | 120 | transfer added |
UNKNOWN | SP2 | 180 | stop UNKNOWN is not found, transfer will be ignored |
UNKNOWN | SP2 | stop UNKNOWN is not found, transfer will be ignored |