rtry_geocoding | R Documentation |
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.
rtry_geocoding(address, email)
address |
String of an address. |
email |
String of an email address. |
A data frame that contains latitudes (lat) and longitudes (lon) in WGS84 projection.
rtry_revgeocoding
## 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").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.