A GPX file's main components are waypoints, routes, and tracks:
Note that the XML tags enclosing each waypoint of a route or track segment are called rtept and trkpt, respectively, while the tag for the basic waypoint element is wpt. Despite this difference in name, they all hold the same data type called wptType.
In addition to the above, GPX files can also contain additional data. The minimum properties for a GPX file are latitude and longitude for every single point. Some vendors, such as Humminbird and Garmin, use extensions to the GPX format for recording street address, phone number, business category, air temperature, depth of water, and other parameters.34
Latitude and longitude are expressed in decimal degrees, and elevation in meters, both using the WGS 84 datum.5 Dates and times are expressed in Coordinated Universal Time (UTC) using ISO 8601 format.6
The document below is a sample GPX file which contains three waypoints which correspond to the locations of the German, Swiss, and Austrian parliaments.
"wptType". GPX 1.1 Schema Documentation – topografix.com. http://www.topografix.com/GPX/1/1/#type_wptType ↩
"rteType". GPX 1.1 Schema Documentation – topografix.com. http://www.topografix.com/GPX/1/1/#type_rteType ↩
"Garmin Mass Storage Mode Devices - Garmin Developer". Garmin. Archived from the original on 2014-08-20. Retrieved 2013-03-26. https://web.archive.org/web/20140820153733/http://developer.garmin.com/web-device/garmin-mass-storage-mode-devices/ ↩
"Garmin Gpx Extensions Schema" (xsd (XML schema)). Garmin. Retrieved 2013-03-26. http://www8.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd ↩
"GPS eXchange Format (GPX) Reader/Writer". docs.safe.com. Retrieved 2024-02-04. https://docs.safe.com/fme/html/FME-Form-Documentation/FME-ReadersWriters/gpxx/gpxx.htm ↩
"GPX: the GPS Exchange Format". topografix.com. http://www.topografix.com/gpx.asp ↩