# These examples might require interaction to query the local keyring, or
# might fail due to network issues, so they are not run by default
if (FALSE) {
# POI categories list
ors_pois('list')
# POIs around a buffered point
geometry <- list(geojson = list(type = "Point",
coordinates = c(8.8034, 53.0756)),
buffer = 100)
ors_pois(geometry = geometry)
# alternative specification via bounding box
ors_pois(geometry = list(bbox = list(c(8.8034, 53.0756), c(8.8034, 53.0756)),
buffer = 100))
# POIs of given categories
ors_pois(geometry = geometry,
limit = 200,
sortby = "distance",
filters = list(
category_ids = c(180, 245)
))
# POIs of given category groups
ors_pois(geometry = geometry,
limit = 200,
sortby = "distance",
filters = list(
category_group_ids = 160
))
# POI Statistics
ors_pois("stats", geometry = geometry)
}
Run the code above in your browser using DataLab