R/silnice.R

Defines functions silnice

Documented in silnice

#' Road Network
#'
#' Function returning data frame of roads of the Czech Republic as `sf` lines. It has no obligatory parameters.
#'
#' Due to package size constraints the data are stored externally (and a working internet connection is required to use the package).
#'
#' The data is current to December 2020. Downloaded size is 6 MB.
#'
#' @return `sf` data frame with 59.594 rows of 3 variables + geometry:
#'
#' \describe{
#'   \item{TRIDA}{Class of the road:}
#'   \itemize{
#'      \item highway = dálnice,
#'      \item speedway = rychlostní silnice,
#'      \item 1st class road = silnice I. třídy,
#'      \item 2nd class road = silnice II. třídy,
#'      \item 3rd class road = silnice III. třídy,
#'      \item other road = neevidovaná silnice
#'   }
#'   \item{CISLO_SILNICE}{Local road code}
#'   \item{MEZINARODNI_OZNACENI}{International road code}
#' }
#'
#' @source Mapový podklad – Data200, 2021 © Český úřad zeměměřický a katastrální. <https://www.cuzk.cz>
#'
#' @export
#' @md

silnice <- function() {
  result <- .downloader("Silnice-D200-2021-07.rds")
  result
}
jlacko/RCzechia documentation built on March 12, 2024, 5:48 p.m.