Title: | Extract place-based information from addresses in Hamilton County, Ohio, USA |
---|---|
Description: | This package uses open data available from the Hamilton County Auditor and Cincinnati Area GIS to geocode and return information based on a given address. |
Authors: | Cole Brokamp |
Maintainer: | Cole Brokamp <[email protected]> |
License: | GPL-3 + file LICENSE |
Version: | 0.2.1 |
Built: | 2024-11-16 04:04:14 UTC |
Source: | https://github.com/geomarker-io/hamilton |
Geocode an address using offline shapefile from CAGIS.
geocodeCAGIS(addr_string)
geocodeCAGIS(addr_string)
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 parse_address for more details.
data.frame with lat/lon coords, CAGIS parcel id, matching score, and matched CAGIS record (note that the 'match' field returns only address components from the CAGIS database that were used to match the supplied address)
geocodeCAGIS('224 Woolper Ave, Cincinnati, OH 45220') geocodeCAGIS('3333 Burnet Ave, Cincinnati, OH 45229') geocodeCAGIS('1456 Main St. 23566') geocodeCAGIS('3131 Mary Jane Dr 45211')
geocodeCAGIS('224 Woolper Ave, Cincinnati, OH 45220') geocodeCAGIS('3333 Burnet Ave, Cincinnati, OH 45229') geocodeCAGIS('1456 Main St. 23566') geocodeCAGIS('3131 Mary Jane Dr 45211')
Note that this relies on python usaddress library. See the README for more details
parse_address(address)
parse_address(address)
X |
an address as a character string |
data.frame of address parsing results
parse_address('3333 Burnet Ave, Cincinnati, OH 45229')
parse_address('3333 Burnet Ave, Cincinnati, OH 45229')