R/poi.osm.R

Defines functions poi.osm

Documented in poi.osm

poi.osm <-
function(city, tag = "highway", value = "bus_stop"){
  q <- getbb(place_name = city, base_url = "https://nominatim.openstreetmap.org") %>%
    opq() %>%
    add_osm_feature(tag, value)
  x <- osmdata_sp(q)
  return(x)
}
MagicBusApp/magicwrap documentation built on March 21, 2020, 12:15 a.m.