rtry_revgeocoding {rtry}R Documentation

Perform reverse geocoding

Description

This function uses Nominatim, a search engine for OpenStreetMap data, to perform reverse geocoding, i.e. converting coordinates (latitudes, longitudes) into an address. The data provided by OSM is free to use for any purpose, including commercial use, and is governed by the distribution license ODbL.

Usage

rtry_revgeocoding(lat_lon, email)

Arguments

lat_lon

A data frame containing latitude and longitude in WGS84 projection.

email

String of an email address.

Value

A data frame that contains address.

See Also

rtry_geocoding

Examples

## Not run: 
# Convert the coordinates of MPI-BGC (50.9101, 11.56674) into an address
# Note: Please change to your own email address when executing this function
rtry_revgeocoding(data.frame(50.9101, 11.56674),
  email = "john.doe@example.com")

# Expected message:
#               full_address town city country country_code
# 1 Jena, Thuringia, Germany   NA Jena Germany           de

## End(Not run)

# Learn to perform reverse geocoding to a list of coordinates via the vignette
# (Workflow for geocoding using rtry): vignette("rtry-workflow-geocoding").

[Package rtry version 1.1.0 Index]