Skip to contents

These functions efficiently geocode addresses and return either matched Census geographies (gc_code_block()) or actual shapefile information (gc_code_pt()) with points for each address.

Usage

gc_code_block(addresses, street_db = gc_download_path())

gc_code_pt(addresses, street_db = gc_download_path())

Arguments

addresses

A data frame with parsed addresses, from gc_address().

street_db

Path to the street database prepared by gc_prep_street_db().

Value

A data frame with a row for each input address. For gc_code_block(), the columns will report matched Census geographies at different levels. For gc_code_block(), there will be one column, geometry, with POINT geometries for each address.

Examples

data(nc_addr)
nc_addr |>
    gc_address(address, city, zip, state = "NC", county = county) |>
    gc_code_block()
#> NULL