osm_create_gpx {osmapiR} | R Documentation |
Create GPS trace
Description
Use this to upload a GPX file or archive of GPX files. Requires authentication.
Usage
osm_create_gpx(
file,
description,
tags,
visibility = c("private", "public", "trackable", "identifiable")
)
Arguments
file |
The GPX file path containing the track points. |
description |
The trace description. Cannot be empty. |
tags |
A string containing tags for the trace. Can be empty. |
visibility |
One of the following: |
Details
Note that for successful processing, the file must contain trackpoints (<trkpt>
), not only waypoints, and the
trackpoints must have a valid timestamp. Since the file is processed asynchronously, the call will complete
successfully even if the file cannot be processed. The file may also be a .tar, .tar.gz or .zip containing multiple
gpx files, although it will appear as a single entry in the upload log.
Value
A number representing the ID of the new gpx.
See Also
Other edit GPS traces' functions:
osm_delete_gpx()
,
osm_update_gpx()
Examples
vignette("how_to_edit_gps_traces", package = "osmapiR")