View source: R/osmapi_gps_traces.R
osm_create_gpx | R Documentation |
Use this to upload a GPX file or archive of GPX files. Requires authentication.
osm_create_gpx(
file,
description,
tags,
visibility = c("private", "public", "trackable", "identifiable")
)
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: |
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.
A number representing the ID of the new gpx.
Other edit GPS traces' functions:
osm_delete_gpx()
,
osm_update_gpx()
vignette("how_to_edit_gps_traces", package = "osmapiR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.