View source: R/ohsome_get_metadata.R
ohsome_get_metadata | R Documentation |
Returns parsed metadata from ohsome API
ohsome_get_metadata(quiet = FALSE)
quiet |
logical; suppresses message on data attribution, API version and temporal extent. |
ohsome_get_metadata()
sends a GET request to the metadata endpoint of
ohsome API and parses the response. The parsed metadata is silently returned.
An ohsome_metadata
object. This is a named list with the
attributes date
, status_code
(of the GET request) and the following list
elements:
attribution
: character; url
and text
of OSM data copyrights and
attribution
apiVersion
: character; Version of the ohsome API
timeout
: numeric; limit of the processing time in seconds
extractRegion
:
spatialExtent
: sfc_POLYGON; spatial boundary of the OSM data in the
underlying OSHDB
temporalExtent
: vector of ISO 8601 character; start and end of the temporal extent of OSM data in the
underlying OSHDB
replicationSequenceNumber
: numeric; precise state of the OSM data
contained in the underlying OSHDB, expressed as the id of the last
applied (hourly) diff file from Planet OSM
ohsome API Endpoints – Metadata
## Not run:
ohsome_get_metadata()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.