osm.R 400 Bytes
Newer Older
Jean-Marie Lepioufle's avatar
first  
Jean-Marie Lepioufle committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#' get_osmdata_sf

#' get_osmdata_sf
#' @param place name of the place
#' @param key name of the key
#' @param value name of the value
#' @keywords osmosm
#' @export
#' @examples
#' \dontrun{
#' get_osmdata_sf()
#' }
get_osmdata_sf <- function(place,key,value){
  res <- osmdata::osmdata_sf(osmdata::add_osm_feature(osmdata::opq(bbox = place), key = key,value=value))
  return(res)
}