
Get all sites within a given distance of a point location
Source:R/get_sites_within_radius.R
get_sites_within_radius.Rd
retrieve all sites within a given distance from
the center point (in coordinates lat, lon), and in
the (optionally) specified elevation range.
Usage
get_sites_within_radius(
lat = 39.1386,
lon = -8.33305,
distance = 1,
elevation_range = c(NULL, NULL),
show_map = TRUE
)Examples
# example code
get_sites_within_radius(lat=39.1386, lon=-8.33305, distance=900)
#> Warning: URL 'https://deims.org/geoserver/deims/ows?service=WFS&version=2.0.0&request=GetFeature&TypeName=deims:deims_all_sites&outputFormat=application/json&CQL_FILTER=DWITHIN(geom,Point(39.1386%20-8.33305),900,kilometers)': Timeout of 300 seconds was reached
#> Error in value[[3L]](cond): There was an error downloading the geojson