Get all streets available in OpenStreetMap located in given local administrative unit.
ll_osm_get_lau_streets.RdRelies on the output of ll_get_lau_eu() for the boundaries of local
administrative units.
Usage
ll_osm_get_lau_streets(
gisco_id,
country = NULL,
unnamed_streets = TRUE,
lau_boundary_sf = NULL,
streets_sf = NULL,
country_code_type = "eurostat",
year = 2021,
fallback = TRUE
)Arguments
- gisco_id
Gisco identifier.
- country
Name of country as included in Geofabrik's datasets, does not always match common country names or geography. For details on available country names see the dataset included in this package:
ll_osm_countries- unnamed_streets
Defaults to TRUE. If FALSE, it drops all streets with missing "name" or missing "fclass".
- lau_boundary_sf
Defaults to NULL. If given, used to speed up processing. Must be an
sfobject such as the ones output by byll_get_lau_eu().- streets_sf
Defaults to NULL. If given, used to speed up processing. Must be an
sfobject such as the ones output byll_osm_get_roads().- country_code_type
Defaults to "eurostat". An alternative common value is "iso2c". See
countrycode::codelistfor a list of available codes.- year
Year of LAU boundaries, defaults to most recent (2021), passed to
ll_get_lau_eu(). Available starting with 2011.- fallback
Logical, defaults to TRUE. If a
gisco_iddoes not match an entity inll_get_lau_eu(), try alternatives for the boundaries based on the country code, includingll_get_nuts_eu(),ll_get_gadm(), andll_get_adm_ocha().