ropensci / osmextract

Download and import OpenStreetMap data from Geofabrik and other providers
https://docs.ropensci.org/osmextract
GNU General Public License v3.0
170 stars 12 forks source link

Add a "radius" parameter in oe_get #226

Open agila5 opened 3 years ago

agila5 commented 3 years ago

Idea: add a radius argument to one of the functions used by oe_get that can be used to filter all features intersecting a buffer with a given radius centred in a given point. Something like:

oe_get(c(9, 45), radius = 0.025)

or

oe_get("Leeds, UK", radius = 0.025)

The string is converted to a pair of lat/long coordinates via OSM Nominatim and then the given point is buffered according to the given radius.

Robinlovelace commented 3 years ago

This is a great feature request that I have needed. Great plan, you can get most parts of most cities with a 30 km radius:

image

Source: https://zonebuilders.github.io/zonebuilder/articles/paper.html