# NOT RUN {
# Times Square, NY, USA
bbox <- c(
-73.9894467311, 40.75573629,
-73.9830630737, 40.75789245
)
geo_amenity(
bbox = bbox,
amenity = "restaurant"
)
# Several amenities
geo_amenity(
bbox = bbox,
amenity = c("restaurant", "pub")
)
# Increase limit and use with strict
geo_amenity(
bbox = bbox,
amenity = c("restaurant", "pub"),
limit = 10,
strict = TRUE
)
# }
Run the code above in your browser using DataLab