repair_type: Try to repair the street type

View source: R/main.R

repair_typeR Documentation

Try to repair the street type

Description

We will search in the given zipcode for street types 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. We will ignore street types likely to fail badly:

  • CT

  • CIR

Usage

repair_type(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 type (New_type),

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

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

Examples

repair_type("1311", "", "Tulane", "", "77008")

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