powered by
search geonames
GNsearch(...)
search parameters
matched records
general search call
API doc for GNsearch is at http://www.geonames.org/export/geonames-search.html
# 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