
Extract Municipality, Province, and Country using Latitude and Longitude (OSM)
extract_location_info.RdThis function takes latitude and longitude values and returns the corresponding municipality, province, and full country name (Darwin Core standard) using OpenStreetMap (OSM) for reverse geocoding.
Value
A data frame with additional columns for municipality, province, and country, preserving the original rows.
Examples
if (FALSE) { # \dontrun{
points <- data.frame(
decimalLatitude = c(48.2082, 44.7866, 48.2082),
decimalLongitude = c(16.3738, 20.4489, 16.3738)
)
results <- extract_location_info(points, latitude = "decimalLatitude", longitude = "decimalLongitude")
print(results)
} # }