Skip to contents

Download State Register of Geographical Names

Usage

geonames_download(type, format = "SHP", outdir = ".", unzip = TRUE, ...)

Arguments

type

names of places ("place") and/or physiographic objects ("object")

format

data format ("GML", "SHP" (default) and/or "XLSX")

outdir

(optional) name of the output directory; by default, files are saved in the working directory

unzip

TRUE (default) or FALSE, when TRUE the downloaded archive will be extracted and removed

...

additional argument for utils::download.file()

Value

a selected data type in the specified format

Examples

if (FALSE) { # \dontrun{
geonames_download(type = "place", format = "SHP") # 18.2 MB
} # }