Package 'hamilton'

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

Help Index


Geocode Cincinnati, OH area address using an offline and parcel-based method

Description

Geocode an address using offline shapefile from CAGIS.

Usage

geocodeCAGIS(addr_string)

Arguments

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 parse_address for more details.

Value

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)

Examples

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')

parse an address into components

Description

Note that this relies on python usaddress library. See the README for more details

Usage

parse_address(address)

Arguments

X

an address as a character string

Value

data.frame of address parsing results

Examples

parse_address('3333 Burnet Ave, Cincinnati, OH 45229')