
ArcGIS address fallback pass (Google-like fuzzy matching)
Source:R/geocode-arcgis.R
geocode_arcgis.RdFor rows the Census pass could not place inside the configured region,
re-geocodes with a composite geocoder (ArcGIS by default: free, no API key,
fuzzy matching close to Google) using the single-line full_address_clean.
ArcGIS requests are constrained to the region bbox when possible, and results
are still guarded against the bounding box so out-of-region false matches are
discarded before coordinates are coalesced back into latitude/longitude.
Usage
geocode_arcgis(
data,
method = "arcgis",
bbox = region_bbox("NJ"),
...,
cache = NULL,
refresh = FALSE
)Arguments
- data
A data frame from
geocode_census()(or aftervalidate_geocodes()).- method
tidygeocoder method for this pass (default
"arcgis")."google"also works ifGOOGLEGEOCODE_API_KEYis set.- bbox
Bounding box used to reject out-of-region matches; see
region_bbox().- ...
Passed through to
tidygeocoder::geocode().- cache
Optional
locatr_cache(). When supplied, the ArcGIS lookup for a givenfull_address_clean(under the same region extent) is served from the cache instead of re-querying.- refresh
If
TRUE, ignore cached entries and re-query, overwriting them. Defaults toFALSE.