Learn R Programming

geonames (version 0.999)

GNsearch: search geonames

Description

search geonames

Usage

GNsearch(...)

Arguments

...

search parameters

Value

matched records

Details

general search call

API doc for GNsearch is at http://www.geonames.org/export/geonames-search.html

Examples

Run this code
# NOT RUN {
# Find places called Lancaster and 'geocode' the result
(lanc_df <- GNsearch(name = "Lancaster", country = "UK"))
lanc_coords <- lanc_df[1, c("lng", "lat")]
# }

Run the code above in your browser using DataLab