View source: R/ohsome_contributions_count.R
ohsome_contributions_count | R Documentation |
Creates an ohsome_query
object for OSM contributions count
ohsome_contributions_count(
boundary = NULL,
latest = FALSE,
return_value = c("absolute", "density"),
time = NULL,
...
)
boundary |
Bounding geometries specified by WGS84 coordinates in the
order
|
latest |
logical; if |
return_value |
character; the value to be returned by the ohsome API:
|
time |
character; |
... |
Parameters of the request to the ohsome API endpoint. |
ohsome_contributions_count()
creates an ohsome_query
object for
OSM element aggregation. Boundary objects are passed via set_boundary()
into ohsome_boundary()
.
An ohsome_query
object. The object can be sent to the ohsome API
with ohsome_post()
. It consists of the following elements:
url
: The URL of the endpoint.
encode
: The way the information is encoded and then posted to the
ohsome API. Set as "form"
.
body
: The parameters of the query such as format
, filter
or
bpolys
.
ohsome API Endpoints - Contributions Aggregation
# Monthly counts of contributions to man-made objects around "Null Island"
ohsome_contributions_count("0,0,10", filter = "man_made=*", time = "2010/2020/P1Y")
# Monthly counts of latest contributions to man-made objects around "Null Island"
ohsome_contributions_count(
"0,0,10",
latest = TRUE,
filter = "man_made=*",
time = "2010/2020/P1Y"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.