Retrieves all old versions of an object from OSM.
Arguments
- osm_type
Object type (
"node"
,"way"
or"relation"
).- osm_id
Object id represented by a numeric or a character value.
- format
Format of the output. Can be
"R"
(default),"xml"
, or"json"
.- tags_in_columns
If
FALSE
(default), the tags of the objects are saved in a single list columntags
containing adata.frame
for each OSM object with the keys and values. IfTRUE
, add a column for each key. Ignored ifformat != "R"
.
Value
If format = "R"
, returns a data frame with a version of the OSM object per row. If format = "xml"
, returns a
xml2::xml_document following the
OSM_XML format. If format = "json"
,
returns a list with a json structure following the OSM_JSON format.
See also
Other get OSM objects' functions:
osm_bbox_objects()
,
osm_get_objects()
,
osm_relations_object()
,
osm_ways_node()
,
osmapi_objects()