repair_prefix: Try to repair the street prefix

View source: R/main.R

repair_prefixR Documentation

Try to repair the street prefix

Description

We will search in the given zipcode for street prefixes that are available for the given name, and if we only find one we are done. If there are more than one, then we will search for the exact address for each. On success, the Lat Long will be returned.

Usage

repair_prefix(Street_num, Prefix = "", Street_name, Street_type = "", Zipcode)

Arguments

Street_num

Number portion of address.

Prefix

Directional prefix (N, S, E, W) if exists.

Street_name

Name of the street.

Street_type

Designation like RD, ST, LN, etc.

Zipcode

The zip code for the address

Value

A tibble will be returned with the:

  • Longitude (Lon),

  • Latitude (Lat),

  • The new prefix (New_prefix),

  • a success flag (Success) (T/F),

  • and a Fail code describing why the repair attempt failed.

Examples

repair_prefix("1311", "", "Tulane", "", "77008")

alankjackson/GeocodeHou documentation built on May 20, 2022, 12:03 p.m.