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")
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')];