Converts any point, line, or polygon sf layer to WGS84 and returns a named
latitude/longitude bounding box suitable for geocode_records(),
geocode_arcgis(), geocode_by_name(), and validate_geocodes(). This is
the safest way to keep multi-state geocoding and local geography joins aligned:
build or load the geography layer first, then derive the bbox from it.
Examples
if (interactive()) {
areas <- build_local_geography("PA")
bbox <- bbox_from_sf(areas)
}
