| ox_features_from_bbox | R Documentation |
Queries OpenStreetMap (via Overpass) for elements matching tags — points of
interest, amenities, buildings, transit stops, and so on — returning them as
an sf of points (ways and relations are represented by their centroid).
ox_features_from_bbox(bbox, tags)
bbox |
Numeric |
tags |
Named list of OSM tag filters. Each element is either |
An sf of POINT features with osm_type, osm_id and one column
per tag encountered.
bbox <- c(-34.91, -8.07, -34.87, -8.04)
ox_features_from_bbox(bbox, tags = list(amenity = "school"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.