This function gets data generated for the Propensity to Cycle Tool
project and returns objects in the modern sf
class.
get_pct(
base_url = "https://github.com/npct/pct-outputs-regional-notR/raw/master",
purpose = "commute",
geography = "lsoa",
region = NULL,
layer = NULL,
extension = ".geojson",
national = FALSE
)
Where the data is stored.
Trip purpose (typically school
or commute
)
Geographic resolution of outputs, msoa
or lsoa
(the default)
The PCT region or local authority to download data from (e.g. west-yorkshire
or Leeds
).
See View(pct_regions_lookup)
for a full list of possible region names.
The PCT layer of interest, z
, c
, l
, rf
, rq
or rnet
for zones, centroids, desire lines, routes (fast or quiet) and route networks, respectively
The type of file to download (only .geojson
supported at present)
Download nationwide data? FALSE
by default