get_boundaries: Get Boundaries Using Geospatial Filter
Description
Retrieve boundaries from the Office for National Statistics (ONS) 'ONS Geography Portal'
given a valid boundary name and layer name.
If the submitted geometry is outwith the ONS Boundary,
e.g. the geometry is in France, the function will return
an empty shape file.
Usage
get_boundaries(boundary, geometry_filter = NULL)
Value
An sf object for all constituencies in the geospatial area submitted through
the geometry_filter, at the chosen ONS Boundary.
Arguments
boundary
A valid ONS boundary name given as a string.
geometry_filter
geospatial shape or point (using latitude and longitude).
Currently limited to a rectangular box or dropped pin.