gw_geocode: Geocode Addresses

View source: R/geocode.R

gw_geocodeR Documentation

Geocode Addresses

Description

Apply a previously build geocoder to target data. This function will apply whatever unique variables exist in the geocoder. See gw_build_geocoder for options.

Usage

gw_geocode(.data, type, var, zip, class, local, local_short, local_place, threshold)

Arguments

.data

A target data set

type

Geocoder type; one of either "local", "local short", "city batch", "city candidate", "census", or "osm". Composite geocoders consisting of only local geocoders ("local", "local short", and "local placename") or both local and the remote geocoders are also available by using "composite, local" or "composite, full" respectively.

var

Address variable in the target data set, which should contain the house number, street directionals, name, and suffix.

zip

Name of zipcode variable in the taget data set (optional).

class

Output class; one of either "sf" or "tibble".

local

Name of object containing a local geocoder built with gw_build_geocoder

local_short

Name of object containing a local, short style geocoder built with gw_build_geocoder

local_place

Name of object containing a local, placename style geocoder built with gw_build_geocoder

threshold

For the city candidate geocoder, what score is the minimum acceptable?

Value

A copy of the target data with georeferenced data applied to it.

See Also

gw_build_geocoder


slu-openGIS/gateway documentation built on Jan. 31, 2024, 4:23 p.m.