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.
A string containing tags for the trace. Can be empty.
- visibility
One of the following:
private
,public
,trackable
,identifiable
. For explanations see OSM trace upload page or Visibility of GPS traces).
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.
See also
Other edit GPS traces' functions:
osm_delete_gpx()
,
osm_update_gpx()
Examples
vignette("how_to_edit_gps_traces", package = "osmapiR")
#> Warning: vignette ‘how_to_edit_gps_traces’ not found