Learn R Programming

osmapiR (version 0.2.3)

osm_create_note: Create a new note

Description

Create a new note

Usage

osm_create_note(lat, lon, text, authenticate = TRUE)

Value

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

Arguments

lat

Specifies the latitude in decimal degrees of the note.

lon

Specifies the longitude in decimal degrees of the note.

text

A text field with arbitrary text containing the note.

authenticate

If TRUE (default), the note is authored by the logged user. Otherwise, anonymous note.

Details

If the request is made as an authenticated user, the note is associated to that user account. If the OAuth access token used does not have the allow_write_notes permission, it is created as an anonymous note instead.

See Also

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

Examples

Run this code
if (FALSE) {
set_osmapi_connection("testing") # use the testing server
new_note <- osm_create_note(lat = 41.38373, lon = 2.18233, text = "Testing osmapiR")
new_note
}

Run the code above in your browser using DataLab