Learn R Programming

⚠️There's a newer version (0.999) of this package.Take me there.

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("geonames","barryrowlingson")

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

574

Version

0.998

License

GPL-3

Maintainer

Barry Rowlingson

Last Published

December 19th, 2014

Functions in geonames (0.998)

GNcountrySubdivision

country code and subdivision
GNfindNearByWeather

weather at location
GNearthquakes

recent earthquakes
GNcountryInfo

country info
GNfindNearbyPlaceName

populated place search
GNcities

find cities
GNfindNearbyPostalCodes

find postal code
GNwikipediaBoundingBox

wikipedia articles in a box
GNweather

weather stations in box
GNfindNearbyWikipedia

nearby wikipedia entries
GNcountryCode

country code for location
GNweatherIcao

ICAO weather station data
GNpostalCodeCountryInfo

postal code info
geonames

Query the geonames web API for geographic data
GNfindNearby

nearby search
GNwikipediaSearch

search wikipedia
GNfindNearbyStreets

nearby street finding
GNpostalCodeSearch

postal code search
GNsrtm3

srtm3 height
GNneighbourhood

neighbourhood
GNpostalCodeLookup

postal code lookup
GNgtopo30

topo30 height
GNsearch

search geonames
GNfindNearestIntersection

nearest intersection
GNfindNearestAddress

nearest address
GNtimezone

timezone for location
hierarchy

Admin area hierarchy