# NOT RUN {
# Reverse geocode a single location
oc_reverse(latitude = -36.85007, longitude = 174.7706)
# Reverse geocode multiple locations
lat <- c(47.21864, 53.55034, 34.05369)
lng <- c(-1.554136, 10.000654, -118.242767)
oc_reverse(latitude = lat, longitude = lng)
# Return results in a preferred language if possible
oc_reverse(latitude = lat, longitude = lng,
language = "fr")
# Return results as a json list
oc_reverse(latitude = lat, longitude = lng,
return = "json_list")
# }
Run the code above in your browser using DataLab