Load a Toronto neighbourhood polygon layer
Source:R/toronto_neighbourhoods.R
morie_to_neighbourhoods.RdReturns a data.frame with the canonical City of Toronto Open Data
schema (_id, AREA_ID, AREA_ATTR_ID, PARENT_AREA_ID,
AREA_SHORT_CODE, AREA_LONG_CODE, AREA_NAME, AREA_DESC,
CLASSIFICATION, CLASSIFICATION_CODE, OBJECTID, geometry)
for the requested version.
Usage
morie_to_neighbourhoods(
version = c("158", "140", "nia"),
offline = TRUE,
resource_id = NULL
)Arguments
- version
One of
"158"(current City scheme),"140"(historical 2014–2021 scheme), or"nia"(Neighbourhood Improvement Areas).- offline
If
TRUE(default), read the small bundled synthetic fixture frominst/extdata/. IfFALSE, hit the live City of Toronto CKANdatastore_searchendpoint via httr2.- resource_id
Optional CKAN resource id override. Used only when
offline = FALSE.
References
City of Toronto Open Data, "Neighbourhoods" dataset (https://open.toronto.ca/dataset/neighbourhoods/); "Neighbourhood Improvement Areas" (https://open.toronto.ca/dataset/neighbourhood-improvement-areas/); licensed under the Open Government Licence – Toronto.