Calls GET /collections/{collection_id}/radius.
Usage
edr_radius(
client,
collection_id,
coords,
within,
within_units = "km",
datetime = NULL,
parameter_name = NULL,
z = NULL,
crs = NULL,
format = c("covjson", "json"),
...,
instance_id = NULL,
f = NULL
)Arguments
- client
An
edr_client.- collection_id
Collection identifier.
- coords
Either a length-2 numeric vector
c(lon, lat), a length-3 vectorc(lon, lat, z), or a WKT POINT/MULTIPOINT string.- within
Radius value.
- within_units
Units of
within(e.g."km","mi").- datetime
ISO-8601 instant or interval, e.g.
"2024-01-01/2024-12-31"or"2024-01-01/..".- parameter_name
Character vector of parameter names to filter on. Sent as a comma-separated
parameter-name=query.- z
Vertical level filter.
- crs
Optional CRS URI for the response.
- format
"covjson"(default) or"json".- ...
Additional query parameters passed through verbatim.
- instance_id
Optional instance identifier. When supplied, the request is sent beneath
/collections/{collection_id}/instances/{instance_id}. This keyword-only argument leaves existing positional calls unchanged.- f
Optional server-advertised output-format token sent as the EDR
fquery parameter. This is separate fromformat, which selects the client-side parser. For example, a strict coverage endpoint can useedr_position(..., format = "covjson", f = "CoverageJSON").
Value
An edr_response containing the server's CoverageJSON response.
Convert it with covjson_to_tibble().