Description Usage Arguments Details Value Examples
Geocode an address using offline shapefile from CAGIS.
1 2 | geocodeCAGIS(addr_string, return.score = FALSE, return.call = FALSE,
return.match = FALSE)
|
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 |
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.
data.frame with lat/lon coords and optionally method score, original call, or matched CAGIS record
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.