osm_create_comment_note {osmapiR}R Documentation

Create a new comment in a note

Description

Add a new comment to an existing note. Requires authentication.

Usage

osm_create_comment_note(note_id, text)

Arguments

note_id

Note id represented by a numeric or a character value.

text

The comment as arbitrary text.

Value

Returns a data frame with the map note and the new comment (same format as osm_get_notes() with format = "R").

See Also

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

Examples

## Not run: 
set_osmapi_connection("testing") # use the testing server
note <- osm_get_notes(53726)
updated_note <- osm_create_comment_note(note$id, text = "A new comment to the note")
updated_note

## End(Not run)

[Package osmapiR version 0.1.0 Index]