cxy_oneline: Geocode Single One Line Address

View source: R/single.R

cxy_onelineR Documentation

Geocode Single One Line Address

Description

Provides access to the oneline single address geocoding API from the US Census Bureau. This can be used with an address that is not parsed.

Usage

cxy_oneline(
  address,
  return = "locations",
  benchmark = "Public_AR_Current",
  vintage = NULL
)

Arguments

address

String containing a single line address

return

One of 'locations' or 'geographies' See Details.

benchmark

Optional ID or Name of Census Benchmark. See Details.

vintage

Optional ID or Name of Census Vintage. See Details.

Details

To obtain current valid benchmarks, use the cxy_benchmarks() function.

If you want to append census geographies, you must specify a valid vintage for your benchmark. You may use the cxy_vintages() function to obtain valid Vintages. See vignette('censusxy') for a full walkthrough.

Value

A data.frame containing matched address or NULL if not matches

Examples


cxy_oneline(address = "20 N Grand Blvd, St Louis, MO 63108", return = "locations")



censusxy documentation built on May 30, 2022, 9:11 a.m.