Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

osmapiR (version 0.2.3)

osm_delete_note: Delete notes

Description

Hide (delete) notes. This request needs to be done as an authenticated user with moderator role.

Usage

osm_delete_note(note_id, text)

Value

Returns a data frame with the hided map notes (same format as osm_get_notes() with format = "R").

Arguments

note_id

Note ids represented by a numeric or a character vector.

text

A non-mandatory comment as text.

Details

Use osm_reopen_note() to make the note visible again.

See Also

Other edit notes' functions: osm_close_note(), osm_create_comment_note(), osm_create_note()

Other functions for moderators: osm_create_user_block(), osm_hide_comment_changeset_discussion(), osm_redaction_object()

Examples

Run this code
if (FALSE) {
set_osmapi_connection("testing") # use the testing server
note <- osm_create_note(lat = "40.7327375", lon = "0.1702526", text = "Test note to delete.")
del_note <- osm_delete_note(note_id = note$id, text = "Hide note")
del_note
}

Run the code above in your browser using DataLab