geocen: Geocoding function for Census API

Description Usage Arguments Examples

View source: R/geocen.R

Description

This function allows you geocode an address and return extra layers using the Census Bureau's geocoding API

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
geocen(
  oneline = NULL,
  street = NULL,
  city = NULL,
  state = NULL,
  zip = NULL,
  separate = FALSE,
  vintage = "4",
  layers = "8",
  benchmark = "Public_AR_Current",
  format = "json"
)

Arguments

oneline

One or single line address combining street, city, state, and zip for geocoding.

street

Street text for address provided. Defaults to NULL for "oneline" preference.

city

City text for address provided. Defaults to NULL for "oneline" preference.

state

State text for address provided. Defaults to NULL for "oneline" preference.

zip

Zip text for address provided. Defaults to NULL for "oneline" preference.

separate

If TRUE, geocoder automatically uses separate address field arguments in request. Defaults to FALSE.

vintage

Defaults to "4".

layers

Returns BASENAME info from layers listed in the Census WMS. Default is only "8" for addition Census Tract info.

benchmark

Defaults to "Public_AR_Current".

format

Defaults to "json".

Examples

1

jossammil/GeoCensuR documentation built on March 9, 2020, 12:15 a.m.