GPX, or GPS eXchange format, is a data format commonly created from GPS receivers.
You can upload GPX files to your Mapbox account to use in a custom map style. See the Mapbox Studio manual uploads page for details. Below is a sample GPX file for reference.
Please note that Mapbox does not support values along lines (for example, elevation and time at various points along a jogging route). A GPX file with values along a line can be uploaded, but Mapbox will ignore any data along the line.Download a sample GPX file