gw_geocode: Geocode Addresses

Description Usage Arguments Value See Also

View source: R/geocode.R

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

1
gw_geocode(.data, type, address, class, side = "right", geocoder, include_source = TRUE)

Arguments

.data

A target data set

type

Geocoder type; one of either "local", "city api", "census", "osm".

address

Address variable in the target data set, which should contain the house number, street directionals, name, and suffix, and optionally unit types and numbers as well. Unit names should be replaced with # to match how gw_build_geocoder creates units.

class

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

side

One of either "right" or "left" indicating where the identifier variable should be placed in the

geocoder

Name of object containing a geocoder built with gw_build_geocoder

include_source

Logical scalar; if TRUE (default), a column describing how each observation was geocoded is included in the output.

Value

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

See Also

gw_build_geocoder


slu-openGIS/gateway documentation built on March 22, 2019, 5:49 p.m.