valid_usps_address: Validate address with U.S. Postal Service (USPS) Web Tools

View source: R/valid_usps_address.R

valid_usps_addressR Documentation

Validate address with U.S. Postal Service (USPS) Web Tools

Description

Validate address with U.S. Postal Service (USPS) Web Tools

Usage

valid_usps_address(
  address_1 = "",
  address_2 = "1100 Wilson Blvd",
  city = "Arlington",
  state = "VA",
  zip5 = "",
  zip4 = "",
  full_info = TRUE,
  usps_userid = Sys.getenv("USPS_WEBAPI_USERNAME")
)

Arguments

address_1

Optional. Secondary Delivery Address. May contain secondary unit designator, such as APT or SUITE.

address_2

Optional. Primary Delivery Address.

city

Optional. City name of the destination address. Maximum characters allowed: 15.

state

Optional. Two-character state code of the destination address. Maximum characters allowed: 2.

zip5

Optional. Destination 5-digit ZIP Code.StringMust be 5-digits. Numeric values (0-9) only.

zip4

Optional. Destination 4-digit +ZIP Code. Numeric values (0-9) only.

full_info

Required. Logical value used to flag return of all response fields.

Value

list


uva-bi-sdad/dc.utils documentation built on Aug. 1, 2022, 1:45 a.m.