opencage_reverse {opencage} | R Documentation |
Reverse geocoding
Description
Soft deprecated: use oc_reverse
or oc_reverse_df
for reverse geocoding.
Usage
opencage_reverse(
latitude,
longitude,
key = opencage_key(),
bounds = NULL,
countrycode = NULL,
language = NULL,
limit = 10,
min_confidence = NULL,
no_annotations = FALSE,
no_dedupe = FALSE,
no_record = FALSE,
abbrv = FALSE,
add_request = TRUE
)
Arguments
latitude |
Numeric vectors of latitude and longitude values. |
longitude |
Numeric vectors of latitude and longitude values. |
key |
Your OpenCage API key as a character vector of length one. By
default, |
bounds |
Bounding box, ignored for reverse geocoding. |
countrycode |
Country code, ignored for reverse geocoding. |
language |
An IETF BCP 47 language tag (such as "es" for
Spanish or "pt-BR" for Brazilian Portuguese). OpenCage will attempt to
return results in that language. Alternatively you can specify the "native"
tag, in which case OpenCage will attempt to return the response in the
"official" language(s). In case the |
limit |
How many results should be returned (1-100), ignored for reverse geocoding. |
min_confidence |
Numeric vector of integer values between 0 and 10
indicating the precision of the returned result as defined by its
geographical extent, (i.e. by the extent of the result's bounding box). See
the API documentation for
details. Only results with at least the requested confidence will be
returned. Default is |
no_annotations |
Logical vector indicating whether additional
information about the result location should be returned. |
no_dedupe |
Logical vector (default |
no_record |
Logical vector of length one (default |
abbrv |
Logical vector (default |
add_request |
Logical vector (default |
Value
A list with
results as a tibble with one line per result,
the number of results as an integer,
the timestamp as a POSIXct object,
rate_info tibble/data.frame with the maximal number of API calls per day for the used key, the number of remaining calls for the day and the time at which the number of remaining calls will be reset.
Examples
opencage_reverse(
latitude = 0, longitude = 0,
limit = 2
)