Retrieves Ontario municipal boundaries from the LIO Open Data REST
service, either the upper/district tier (LIO_Open03/13) or the
lower/single tier (LIO_Open03/14).
Usage
retrieve_municipal(
tier = c("upper", "lower"),
simplify = TRUE,
refresh = FALSE,
max_age = NULL
)Arguments
- tier
Character. Either
"upper"(upper-tier and district municipalities) or"lower"(lower-tier and single-tier municipalities). Defaults to"upper".- simplify
Logical. If
TRUE(the default), requests generalized geometry from the service.- refresh
Logical. If
TRUE, bypasses any cached copy and re-fetches from the live API. Defaults toFALSE.- max_age
Numeric or
NULL. Maximum acceptable cache age in days; older entries are re-fetched. Defaults toNULL.