geocodeCAGIS: Geocode Cincinnati, OH area address using offline exact...

Description Usage Arguments Details Value Examples

View source: R/geocodeCAGIS.R

Description

Geocode an address using offline shapefile from CAGIS.

Usage

1
2
geocodeCAGIS(addr_string, return.score = FALSE, return.call = FALSE,
  return.match = FALSE)

Arguments

return.score

logical, return method and matching score?

return.call

logical, return the original address string?

return.match

logical, return the best address text match from CAGIS?

address_string

a single string that will be geocoded

Details

This function parses a given address string into address components and attempts to match the address to CAGIS data. The best match is returned and the score represents how many insertions/deletions/rearrangements were needed to match the input string to the address data.

The sysdata.rda file comes bundled with the package. Alternatively, build the system data file on your own, using updated CAGIS files. See the vignette for details on this operation.

This function will return NA if the zip code of the address string does not begin with 450, 451, or 452.

Requires a sufficient python binary and the usaddress module. See addr_parse for more details.

Value

data.frame with lat/lon coords and optionally method score, original call, or matched CAGIS record

Examples

1
2
3
# geocodeCAGIS('3333 Burnet Ave, Cincinnati, OH 45229')
# geocodeCAGIS('3333 Burnet Ave, Cincinnati, OH 45229',return.score=TRUE,return.call=TRUE,return.match=TRUE)
#geocodeCAGIS('1456 Main St. 23566')

cole-brokamp/geocodeCAGIS documentation built on May 13, 2019, 8:50 p.m.