View source: R/resource-census-geocoder.R
census_geocoder_api_call | R Documentation |
Function for doing a single API call for a single target
census_geocoder_api_call(
target,
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")
)
target |
list with components for a valid call. |
endpoint |
service endpoint |
returntype |
either "locations" for basic API call or "geographies" if the call should also return which geographic entities the address exists within. |
benchmark |
as returned by census_geocoder_api_benchmarks |
vintage |
as returned by census_geocoder_api_vintage |
a list gently re-formatted from the API call return, including status, any error messages, and the outcome of geocoding.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.