Skip to contents

R package for accessing the API

Install from here using devtools:

  • install.packages("devtools") – if you don’t have devtools yet
  • require(devtools)
  • install.packages("rjson") – gets this dependency from CRAN
  • install_github("ropensci/geonames")

A version of this will be pushed to CRAN.

To enable all of the functions of this package, register for a username at and then enable access to the geonames free webservices by clicking Once that’s done, in your R session, run options(geonamesUsername="myusername") to authenticate with the webservice. More information about the parameters for many of the functions in this package can be found here: