View source: R/geo_get_bounds.R
geo_get_bounds | R Documentation |
Return boundary geometries for supplied list of area codes
geo_get_bounds( bounds_query_level, area_codes, return_centroids = FALSE, centroid_fields = FALSE, shape_fields = FALSE, spatial_ref = 4326, quiet_read = TRUE )
bounds_query_level |
area level to query for, e.g. "lsoa11cd". Needs to be the full code not an abbreviation such as "lsoa" |
area_codes |
a vector of codes that match the level of bounds_query_level. Probably to be supplied from a column pulled from a lookup df or similar. |
return_centroids |
whether to retrieve area centroids instead of
boundaries. Default |
centroid_fields |
Boolean, default FALSE. Whether to include BNG eastings, northings, lat and long fields in the return. NB this doesn't apply to direct (population-weighted) centroid queries. |
shape_fields |
Boolean, default FALSE. Whether to include Shape__Area and Shape__Length fields in the return when returning boundaries. |
spatial_ref |
The (EPSG) spatial reference of any returned geometry. Default value: 4326 ("WGS 84"). This parameter is ignored peacefully if no geometry is returned/returnable, eg lookup queries |
quiet_read |
Controls quiet parameter to sf::st_read |
an sf object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.