osm_create_note {osmapiR}R Documentation

Create a new note

Description

Create a new note

Usage

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

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.

Value

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

See Also

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

Examples

## Not run: 
set_osmapi_connection("testing") # use the testing server
new_note <- osm_create_note(lat = 41.38373, lon = 2.18233, text = "Testing osmapiR")
new_note

## End(Not run)

[Package osmapiR version 0.1.0 Index]