repair_number: Try to repair the street number

View source: R/main.R

repair_numberR Documentation

Try to repair the street number

Description

We will search in the given zipcode for street numbers that are available for the given name, and then try to interpolate. We will honor odd/even to stay on one side of the street and look no further than 3 blocks total. On success, the Lat Long will be returned.

Usage

repair_number(
  Street_num,
  Prefix = "",
  Street_name,
  Street_type = "",
  Zipcode,
  Distance = 250
)

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

Distance

The max distance in feet to interpolate, 250 default

Value

A tibble will be returned with the:

  • Longitude (Lon),

  • Latitude (Lat),

  • A description of the result - how far the interpolation was (Result),

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

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

Examples

repair_number("1313", "", "Tulane", "ST", "77008")

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