Skip to contents

Returns the OsmChange document describing all changes associated with the changeset.

Usage

osm_download_changeset(changeset_id, format = c("R", "osc", "xml"))

Arguments

changeset_id

The id of the changeset represented by a numeric or a character value for which the OsmChange is requested.

format

Format of the output. Can be "R" (default) or "osc" ("xml" is a synonym for "osc").

Value

If format = "R", returns a data frame with one row for each edit action in the changeset. If format = "osc", returns a xml2::xml_document in the OsmChange format.

Details

  • The result of calling this may change as long as the changeset is open.

  • The elements in the OsmChange are sorted by timestamp and version number.

  • There is osm_get_changesets() to get only information about the changeset itself.

See also

Other get changesets' functions: osm_get_changesets(), osm_query_changesets()

Other OsmChange's functions: osm_diff_upload_changeset(), osmchange_create(), osmchange_delete(), osmchange_modify()

Examples

if (FALSE) {
chaset <- osm_download_changeset(changeset_id = 137003062)
chaset
}