Read a fare structure object from a file
Arguments
- file_path
A path pointing to a fare structure with a
.zipextension.- encoding
A string. Passed to
data.table::fread(), defaults to"UTF-8". Other possible options are"unknown"and"Latin-1". Please note that this is not used to re-encode the input, but to enable handling encoded strings in their native encoding.
See also
Other fare structure:
setup_fare_structure(),
write_fare_structure()
Examples
path <- system.file("extdata/poa/fares/fares_poa.zip", package = "r5r")
fare_structure <- read_fare_structure(path)
