rtry_geocoding {rtry}R Documentation

Perform geocoding

Description

This function uses Nominatim, a search engine for OpenStreetMap (OSM) data, to perform geocoding, i.e. converting an address into coordinates (latitudes, longitudes). 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_geocoding(address, email)

Arguments

address

String of an address.

email

String of an email address.

Value

A data frame that contains latitudes (lat) and longitudes (lon) in WGS84 projection.

See Also

rtry_revgeocoding

Examples

## Not run: 
# Convert the address of MPI-BGC ("Hans-Knoell-Strasse 10, 07745 Jena, Germany")
# into coordinates in latitudes and longitudes
# Note: Please change to your own email address when executing this function
rtry_geocoding("Hans-Knoell-Strasse 10, 07745 Jena, Germany",
   email = "john.doe@example.com")

# Expected message:
#        lat      lon
# 1 50.9101 11.56674

## End(Not run)

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

[Package rtry version 1.1.0 Index]