R/source.R

Defines functions osmsource get_osm_data

#' @include osm-descriptors.R
{}



osmsource <- function(obj, subclass) {
  structure(obj, class = c(subclass, "osmsource"))
}



get_osm_data <- function(source, ...) {
  UseMethod("get_osm_data")
}



setOldClass("api")
setOldClass("osmosis")
setOldClass("bbox")
setOldClass("element")
setOldClass(c("node", "element"))
setOldClass(c("way", "element"))
setOldClass(c("relation", "element"))



setGeneric("osm_request",
function(source, what, ...) {
  standardGeneric("osm_request")
})

Try the osmar package in your browser

Any scripts or data that you put into this service are public.

osmar documentation built on May 1, 2019, 7:33 p.m.