extract_results: Extract forward geocoding results

View source: R/results_processing.R

extract_resultsR Documentation

Extract forward geocoding results

Description

Parses the output of the query_api function for single address geocoding (ie. not batch geocoding). Latitude and longitude are extracted into the first two columns of the returned dataframe. Refer to query_api for example usage.

Usage

extract_results(
  method,
  response,
  full_results = TRUE,
  flatten = TRUE,
  limit = 1
)

Arguments

method

method name

response

content from the geocoding service (returned by the query_api function)

full_results

if TRUE then the full results (not just latitude and longitude) will be returned.

flatten

if TRUE then flatten any nested dataframe content

limit

only used for "census" and "google" methods. Limits number of results per address.

Value

geocoding results in tibble format

See Also

get_api_query query_api geo


jessecambon/tidygeocoder documentation built on Jan. 26, 2023, 4:03 p.m.