View source: R/ohsome_users_count.R
ohsome_users_count | R Documentation |
Create an ohsome_query
object for OSM users count
ohsome_users_count(
boundary = NULL,
return_value = c("absolute", "density"),
grouping = NULL,
time = NULL,
...
)
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. |
ohsome_users_count()
creates an ohsome_query
object for OSM users
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 – Users Aggregation
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.