Skip to contents

Main functions

Functions that users will mainly use to operate boundr

bounds()
Return boundary data at a specified level and area from the ONS OG API
lookup()
Create a lookup table by querying the ONS OpenGeography API
add_geometry_to_table() add_geometry()
Use an existing tibble as the basis for a spatial query
boundr_options() opts()
Use this to set custom options for bounds() and centroids()

Other functions

res_codes()
A list of all available resolutions for boundary geometries in the current OpenGeography schema. Not all resolutions are available for all area types! The most common ones are listed first, with the "generalised" (20m resolution) BGC being the preferred option if you don't specify one.