| ohsome_users_count {ohsome} | R Documentation |
Count OSM users
Description
Create an ohsome_query object for OSM users count
Usage
ohsome_users_count(
boundary = NULL,
return_value = c("absolute", "density"),
grouping = NULL,
time = NULL,
...
)
Arguments
boundary |
Bounding geometries specified by WGS84 coordinates in the
order
|
return_value |
character; the value to be returned by the ohsome API:
|
grouping |
character; group type(s) for grouped aggregations (only available for queries to aggregation endpoints). The following group types are available:
Not all of these group types are accepted by all of the aggregation endpoints. Check Grouping for available group types. |
time |
character; |
... |
Parameters of the request to the ohsome API endpoint. |
Details
ohsome_users_count() creates an ohsome_query object for OSM users
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,filterorbpolys.
See Also
ohsome API Endpoints – Users Aggregation
Examples
# Yearly count of users contributing to man-made objects around "Null Island"
ohsome_users_count("0,0,10", filter = "man_made=*", time = "2012/2022/P1Y")