osmextract icon indicating copy to clipboard operation
osmextract copied to clipboard

Add a "radius" parameter in oe_get

Open agila5 opened this issue 4 years ago • 1 comments
trafficstars

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.

agila5 avatar Sep 08 '21 07:09 agila5

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

Robinlovelace avatar Sep 08 '21 08:09 Robinlovelace