osm_download_changeset: Download a changeset in 'OsmChange' format

View source: R/osmapi_changesets.R

osm_download_changesetR Documentation

Download a changeset in OsmChange format

Description

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").

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.

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.

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

chaset <- osm_download_changeset(changeset_id = 137003062)
chaset

osmapiR documentation built on April 15, 2025, 9:06 a.m.