ohsome_contributions_count {ohsome} | R Documentation |
Count OSM contributions
Description
Creates an ohsome_query
object for OSM contributions count
Usage
ohsome_contributions_count(
boundary = NULL,
latest = FALSE,
return_value = c("absolute", "density"),
time = NULL,
...
)
Arguments
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. |
Details
ohsome_contributions_count()
creates an ohsome_query
object for
OSM element aggregation. Boundary objects are passed via set_boundary()
into ohsome_boundary()
.
Value
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 asformat
,filter
orbpolys
.
See Also
ohsome API Endpoints - Contributions Aggregation
Examples
# 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"
)