extract_results: Extract forward geocoding results

Description Usage Arguments Value See Also

View source: R/results_processing.R

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

1
2
3
4
5
6
7
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


tidygeocoder documentation built on Nov. 3, 2021, 1:08 a.m.