osm_close_note {osmapiR} | R Documentation |
Close or reopen notes
Description
Requires authentication.
Usage
osm_close_note(note_id)
osm_reopen_note(note_id)
Arguments
note_id |
Note ids represented by a numeric or character vector. |
Value
Returns a data frame with the closed map notes (same format as osm_get_notes()
with format = "R"
).
Functions
-
osm_close_note()
: Close notes as fixed. -
osm_reopen_note()
: Reopen closed notes.
See Also
Other edit notes' functions:
osm_create_comment_note()
,
osm_create_note()
,
osm_delete_note()
Examples
## Not run:
set_osmapi_connection("testing") # use the testing server
note <- osm_create_note(lat = 41.38373, lon = 2.18233, text = "Testing osmapiR")
closed_note <- osm_close_note(note$id)
closed_note
reopened_note <- osm_reopen_note(note$id)
reopened_note
closed_note <- osm_close_note(note$id) # leave it closed
## End(Not run)
[Package osmapiR version 0.1.0 Index]