read_gpx | R Documentation |
Read a GPX file. By default, it reads all possible GPX layers, and only returns shapes for layers that have any features. if the layer has any features a sp object is returned.
read_gpx(
file,
layers = c("waypoints", "tracks", "routes", "track_points", "route_points")
)
file |
a GPX filename (including directory) |
layers |
vector of GPX layers. Possible options are |
a sp* object containing the gpx track objects
adapted from read_GPX
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.