GPS Exchange Format (GPX) is an XML schema designed as a common GPS data format for software applications. It can be used to describe waypoints, tracks, and routes. It is an open format[2] and can be used without the need to pay license fees. Location data (and optionally elevation, time, and other information) 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.
A waypoint (wptType) consists of the WGS 84 (GPS) coordinates of a point and possibly other descriptive information.
A route (rteType) is an ordered list of routepoints (or waypoints representing a series of significant turn or stage points) leading to a destination.[3] In general, a route is used to describe directions for a journey which someone wants to take at some point in the future.
A track (trkType) contains a series of waypoints what might also contain a timestamp. It is typically used to represent journeys which somebody has already completed or recorded.
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.[4][5]
The document below is a sample GPX file which contains three waypoints which correspond to the locations of the German, Swiss, and Austrian parliaments.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpxxmlns="http://www.topografix.com/GPX/1/1"version="1.1"creator="Wikipedia"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"><!-- Comments look like this --><metadata><name>Dataname</name><desc>ValidGPXexamplewithoutspecialcharacters</desc><author><name>Authorname</name></author></metadata><wptlat="52.518611"lon="13.376111"><ele>35.0</ele><time>2011-12-31T23:59:59Z</time><name>Reichstag(Berlin)</name><sym>City</sym></wpt><wptlat="48.208031"lon="16.358128"><ele>179</ele><time>2011-12-31T23:59:59Z</time><name>Parlament(Wien)</name><sym>City</sym></wpt><wptlat="46.9466"lon="7.44412"><time>2011-12-31T23:59:59Z</time><name>Bundeshaus(Bern)</name><sym>City</sym></wpt></gpx>