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

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

need_transfer Additional condition that determines whether a transfer must be created between 2 stop points. By default transfers that do not already exist and where the distance is less than max_distance will be created. If you need an additional condition, you can use this parameter. For instance you could create transfers between 2 stop points of different contributors only.

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