GPX

From Wikipedia, the free encyclopedia

GPX, or GPS eXchange Format is an XML schema designed for transferring GPS data between software applications. It can be used to describe waypoints, tracks, and routes.

Contents

[edit] Structure

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx ...>
Metadata
 <metadata> ... </metadata>
Data
Eg: Track                               Waypoint
 <trk>                                   <wpt lat="#" lon="#">
  <trkseg>                                <ele>#</ele>
   <trkpt lat="#" lon="#">                <name>...</name>
    <ele>#</ele>                          ...
   </trkpt>                              </wpt>
   <trkpt ...>                           <wpt ...>
    ...                                   ...
   </trkpt>                              </wpt>
  </trkseg>
  <trkseg>
   <trkpt ...> 
    ...
   </trkpt>
  </trkseg>
  ...
 </trk>
File end
</gpx>

[edit] Example

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
 
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="byHand" version="1.1" 
    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">
 
  <wpt lat="39.921055008" lon="3.054223107">
    <ele>12.863281</ele>
    <time>2005-05-16T11:49:06Z</time>
    <name>Cala Sant Vicenç - Mallorca</name>
    <sym>City</sym>
  </wpt>
</gpx>

[edit] See also

[edit] External links

In other languages