GPS Exchange Format


GPX, or GPS Exchange Format, is an XML schema designed as a common GPS data format for software applications. It can be used to describe waypoints, tracks, and routes. The format is open and can be used without the need to pay license fees. Location data is stored in tags and can be interchanged between GPS devices and software. Common software applications for the data include viewing tracks projected onto various map sources, annotating maps, and geotagging photographs based on the time they were taken.

Data types

The required data for a GPX file can be seen below. Ellipsis means that the previous element can be repeated. Additional data may exist within every markup but is not shown here:
Conceptually, tracks are a record of where a person has been and routes are suggestions about where they might go in the future. For example, each point in a track may have a timestamp, but the points in a route are unlikely to have timestamps because route is a suggestion which might never have been traveled.
Technically:
The minimum properties for a GPX file are latitude and longitude for every single point. All other elements are optional. 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.

Units

Latitude and longitude are expressed in decimal degrees, and elevation in meters, both using the. Dates and times are not local time, but instead are Coordinated Universal Time using ISO 8601 format.

Sample GPX document

The following is a truncated GPX file produced by a Garmin Oregon 400t hand-held GPS unit. This document does not show all functionality which can be stored in the GPX format — for example, there are no waypoints or extensions, and this is part of a track, not a route — but its purpose is to serve as a brief illustration.


xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd">


Garmin International




Example GPX Document


4.46



4.94



6.87