Convert ATOC CIF files from Network Rail to GTFS
nr2gtfs(
path_in,
silent = TRUE,
ncores = 1,
locations = "tiplocs",
agency = "atoc_agency",
shapes = FALSE,
working_timetable = FALSE,
public_only = TRUE
)
Character, path to Network Rail ATOC file e.g."C:/input/toc-full.CIF.gz"
Logical, should progress messages be surpressed (default TRUE)
Numeric, When parallel processing how many cores to use (default 1)
where to get tiploc locations (see details)
where to get agency.txt (see details)
Logical, should shapes.txt be generated (default FALSE)
Logical, should WTT times be used instead of public times (default FALSE)
Logical, only return calls/services that are for public passenger pickup/set down (default TRUE)
A gtfs list
Locations
The .msn file contains the physical locations of stations and other TIPLOC codes (e.g. junctions). However, the quality of the locations is often poor only accurate to about 1km and occasionally very wrong. Therefore, the UK2GTFS package contains an internal dataset of the TIPLOC locations with better location accuracy, which are used by default.
However you can also specify `locations = "file"` to use the TIPLOC locations in the ATOC data or provide an SF data frame of your own.
Agency
The ATOC files do not contain the necessary information to build the agency.txt file. Therefore this data is provided with the package. You can also pass your own data frame of agency information.
Other main:
atoc2gtfs()