Parses the output of the query_api function for reverse geoocoding. The address is extracted into the first column of the returned dataframe. This function is not used for batch geocoded results. Refer to query_api for example usage.

extract_reverse_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 an address column) will be returned.

flatten

if TRUE then flatten any nested dataframe content

limit

only used for the "google" method(s). Limits number of results per coordinate.

Value

geocoding results in tibble format