converter

Converts data to a certain format.

Convert mileage data

fix_mileage(mileage)

Fixes mileage data (associated with an ELR).

yard_to_mileage(yard[, as_str])

Converts yards to mileages.

mileage_to_yard(mileage)

Converts mileages to yards.

mile_chain_to_mileage(mile_chain)

Converts <miles>.<chains> to <miles>.<yards>.

mileage_to_mile_chain(mileage)

Converts <miles>.<yards> to <miles>.<chains>.

mile_yard_to_mileage(mile, yard[, as_numeric])

Converts mile and yard to mileage.

mileage_str_to_num(mileage)

Converts string-type mileage to its corresponding numerical value.

mileage_num_to_str(mileage)

Converts numerical-type Network Rail mileage to string-type one.

shift_mileage_by_yard(mileage, shift_yards)

Shifts the given mileage by a specified number of yards.

Convert other data

fix_stanox(stanox)

Standardises the format of a given STANOX (station number).

kilometer_to_yard(km)

Converts a distance from kilometres to yards.