Search notes:

R package: nominatim

The nominatim package is an interface to the Open Street Map API nominatim.

Installing

It seems that nominatim cannot be installed with the traditional install.packages(…). At least on my machine, it caused a package 'nominatim' is not available (for R version 3.3.3).
However, I was able to install it with
devtools::install_github("hrbrmstr/nominatim")

API Key

To access the OpenStreetMap API, a key is required. Without such a key, the error Please provide a openstreet API key is thrown.
The key available from developer.mapquest.com.

osm_geocode

library(nominatim)

mapQuestKey <- readline(prompt('Enter Mapquest key: '));

wagenburg     <- osm_geocode('Wagenburg, Switzerland', key = mapQuestKey);
oberwagenburg <- osm_geocode('Wagenburg, Switzerland', key = mapQuestKey);

wagenburg    [c('display_name', 'lat', 'lon')];
oberwagenburg[c('display_name', 'lat', 'lon')];
Github repository about-r, path: /packages/nominatim/osm_geocode.R

See also

The packages geonames, rdyn and ggmap.
R packages

Index