sn_download_osm: Download OSM data for whole countries from Geofabrik.

View source: R/sn_download_osm.R

sn_download_osmR Documentation

Download OSM data for whole countries from Geofabrik.

Description

N.B. Names do not always correspond to official name of countries and may include different geographic entities. For a full list of available "countries" as made available by Geofabrik, see the internal dataset 'sn_osm_countries'. Be considered in downloading file.

Usage

sn_download_osm(countries, overwrite = FALSE)

Arguments

countries

One or more country names. For details on available country names see the dataset included in this package: 'sn_osm_countries'

overwrite

Logical, defaults to FALSE. If true, downloads new files even if already present.

Value

Used only for its side effects (downloads osm data).

Examples

## Not run: 
sn_download_osm(countries = "Romania")
sn_download_osm(countries = c("chile", "colombia"))

## End(Not run)

giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.