View source: R/resource-census-geocoder.R
census_geocoder_multi_batch | R Documentation |
The data here must still be able to fit in memory easily, data duplication does occur.
census_geocoder_multi_batch(
data,
street = street,
city = city,
state = state,
zip = zip,
endpoint = census_geocoder_api_endpoint(),
returntype = "locations",
benchmark = purrr::flatten(purrr::keep(census_geocoder_api_benchmarks(),
~.x$isDefault)),
vintage = purrr::flatten(purrr::keep(census_geocoder_api_vintage()$vintages,
~.x$isDefault)),
cache_dir = workflow::build_dir("census-geocoder-cache"),
batch_size = 100,
lib_paths = .libPaths()
)
street |
bare symbol for street column |
city |
bare symbol for city column |
state |
bare symbol for state column |
zip |
bare symbol for zip code column |
cache_dir |
optional path to file to use to cache results to avoid submitting them multiple times. Can be shared between calls or it will be based on a hash of the batch input data. |
batch_size |
how many records should be sent to a worker at one time |
batch |
data frame containing columns with parts of the address |
... |
other arguments to the batch geocoder |
list of geocoded components and resulting tables with some simplified output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.