View source: R/ohsome_extract_contributions.R
ohsome_extract_contributions | R Documentation |
Creates an ohsome_query
object for OSM contribution extraction
ohsome_extract_contributions(
boundary = NULL,
geometryType = c("centroid", "bbox", "geometry"),
latest = FALSE,
time = NULL,
properties = NULL,
clipGeometry = TRUE,
...
)
ohsome_contributions_bbox(boundary = NULL, ...)
ohsome_contributions_centroid(boundary = NULL, ...)
ohsome_contributions_geometry(boundary = NULL, ...)
boundary |
Bounding geometries specified by WGS84 coordinates in the
order
|
geometryType |
character; type of geometry to be extracted:
Caveat: Node elements are omitted from results in queries for bounding boxes. |
latest |
logical; if |
time |
character; |
properties |
character; properties to be extracted with the contributions:
Multiple values can be provided as comma-separated character or as
character vector. This defaults to |
clipGeometry |
logical; specifies whether the returned geometries should be clipped to the query’s spatial boundary |
... |
Parameters of the request to the ohsome API endpoint. |
ohsome_extract_contributions()
creates an ohsome_query
object for OSM
contribution extraction. ohsome_contributions_bbox()
,
ohsome_contributions_centroid()
and ohsome_contributions_geometry()
are wrapper functions for specific contributions extraction endpoints.
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 Extraction
# Extract contributions to man-made objects around "Null Island" with metadata:
ohsome_contributions_geometry(
"0,0,10",
filter = "man_made=*",
time = c("2021-01-01", "2022-01-01"),
properties = "metadata"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.