Learn R Programming

tidygeocoder (version 1.0.1)

extract_results: Extract geocoder results

Description

Parses the output of the query_api function. Latitude and longitude are extracted into the first two columns of the returned dataframe. This function is not used for batch geocoded results. Refer to query_api for example usage.

Usage

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

Arguments

method

method name

response

content from the geocoder 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

Value

geocoder results in tibble format

See Also

get_api_query query_api geo