Learn R Programming

geonames

R package for accessing the geonames.org 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 geonames.org username at http://www.geonames.org/login/ and then enable access to the geonames free webservices by clicking http://www.geonames.org/enablefreewebservice 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: http://www.geonames.org/export/ws-overview.html

Copy Link

Version

Install

install.packages('geonames')

Monthly Downloads

790

Version

0.999

License

GPL-3

Last Published

February 19th, 2019

Functions in geonames (0.999)

GNfindNearbyStreets

nearby street finding
GNfindNearby

nearby search
GNpostalCodeSearch

postal code search
GNcountrySubdivision

country code and subdivision
GNfindNearestIntersection

nearest intersection
GNgtopo30

topo30 height
GNfindNearbyPlaceName

populated place search
GNsearch

search geonames
GNcities

find cities
GNsrtm3

srtm3 height
hierarchy

Admin area hierarchy
GNtimezone

timezone for location
GNweather

weather stations in box
GNcountryCode

country code for location
GNfindNearbyWikipedia

nearby wikipedia entries
GNneighbourhood

neighbourhood
GNwikipediaBoundingBox

wikipedia articles in a box
GNweatherIcao

ICAO weather station data
GNfindNearestAddress

nearest address
GNpostalCodeCountryInfo

postal code info
geonames

Query the geonames web API for geographic data
GNwikipediaSearch

search wikipedia
GNcountryInfo

country info
GNpostalCodeLookup

postal code lookup
GNearthquakes

recent earthquakes
GNfindNearByWeather

weather at location
GNfindNearbyPostalCodes

find postal code