Opencaching GPX Extension: Difference between revisions

From Opencaching.eu
Jump to navigation Jump to search
(Initial draft)
 
(added some docs)
 
Line 1: Line 1:
== Introduction ==
The '''[https://github.com/opencaching/gpx-extension-v1 Opencaching GPX Extension]''' allows to add Opencaching-specific information to GPX files. It is supported by all Opencaching sites except Opencaching.US, both in the native GPX download as well as [https://opencaching.pl/okapi/services/caches/formatters/gpx.html OKAPI GPX download].
This extension allows to add Opencaching-specific information to GPX files. It resides in the <code>https://github.com/opencaching/gpx-extension-v1</code> XML namespace.
 
A GPX file downloaded from the OC sites will contain an <code><nowiki><oc:cache></nowiki></code> section, which may look like this:
 
  <oc:cache xmlns:oc="https://github.com/opencaching/gpx-extension-v1">
    <oc:type>Moving Cache</oc:type>
    <oc:size>Nano</oc:size>
    <oc:trip_distance>1.5</oc:trip_distance>
    <oc:requires_password>true</oc:requires_password>
    <oc:logs>
      <oc:log id="1179884" uuid="ba6422c7-4a2a-11e7-8e90-86c6a7325f31">
      </oc:log>
      <oc:log id="1164676" uuid="aced5439-f929-11e6-8e90-86c6a7325f31">
      </oc:log>
    </oc:logs>
  </oc:cache>
 
For a complete documentation, see the '''OC GPX [https://github.com/opencaching/gpx-extension-v1/blob/master/schema.xsd Schema definition]'''.

Latest revision as of 17:33, 9 November 2017

The Opencaching GPX Extension allows to add Opencaching-specific information to GPX files. It is supported by all Opencaching sites except Opencaching.US, both in the native GPX download as well as OKAPI GPX download.

A GPX file downloaded from the OC sites will contain an <oc:cache> section, which may look like this:

 <oc:cache xmlns:oc="https://github.com/opencaching/gpx-extension-v1">
   <oc:type>Moving Cache</oc:type>
   <oc:size>Nano</oc:size>
   <oc:trip_distance>1.5</oc:trip_distance>
   <oc:requires_password>true</oc:requires_password>
   <oc:logs>
     <oc:log id="1179884" uuid="ba6422c7-4a2a-11e7-8e90-86c6a7325f31">
     </oc:log>
     <oc:log id="1164676" uuid="aced5439-f929-11e6-8e90-86c6a7325f31">
     </oc:log>
   </oc:logs>
 </oc:cache>

For a complete documentation, see the OC GPX Schema definition.