logo aa:  0205 GK XML interface

Logtypes (state)

0 = Dropped to; 1 = Grabbed from; 2 = A comment; 3 = Seen in; 4 = Archived; 5 = Visiting;

GK Types (type)

0 = Traditional; 1 = A book/CD/DVD...; 2 = A human; 3 = A coin;

Synchronising databases (export.php)

This can be used to synchronize your database with GK database - useful for OpenCaching and other geocaching projects as well as for other purposes ;) Please note, all opencaching sites should be using Method 2!

Note: export*.php has a limit of retrieved data set at 10 days (ie you can download data changed in the past 10 days only). This should be enough to sync local OC nodes or other databases. To get older data check: here.

Method 1: All GeoKrety & logs information (slow and large volume of data)

To get list of GK created after the date and moves registered after the date:
http://geokrety.org/export.php?modifiedsince=20090901000000

Sample output (without headers):

<description>
Like Amateurradio if you are a HAM please <br />
Log with your Callsign  my is DJ6OI 73
</description>
<owner id="271">Steinmann</owner>
<datecreated>2008-06-02 20:18:08</datecreated>
<distancetravelled>1349</distancetravelled>
<state>0</state>
<missing>0</missing>
<position latitude="46.15627" longitude="8.74943"/>
<waypoints>
<waypoint>GC1J4A8</waypoint>
</waypoints>
<type id="0">Traditional</type>
</geokret>

[...]

<moves id="29220">
<geokret id="3522">B&amp;B's Mac the cat</geokret>
<position latitude="58.56325" longitude="23.15683"/>
<waypoints>
<waypoint> GC1VQ9H</waypoint>
</waypoints>
<date moved="2009-08-28 19:30:00" logged="2009-09-01 22:03:51"/>
<user id="1801">BeautyAndBeast</user>
<comment>
Staying at our Dam of V&auml;ike v&auml;in cache :)
</comment>
<logtype id="0">Dropped to</logtype>
</moves>

Method 2: Only GeoKrety information (fast, only most important data; designed for OC sites) [BETA]

To get list of GK that changed location during last hour: http://geokrety.org/export_oc.php?modifiedsince=20120205053000

State field may have different value than in other versions of export scripts. This is because OC sites only need to know if a geokret is in a cache or in the hands of some geocacher. So if someone dips a geokret, its state will be 1 (grabbed).

Note: export*.php has a limit of retrieved data set at 10 days (ie you can download data changed in the past 10 days only). This should be enough to sync local OC nodes or other databases. To get older data check: here.

Sample output (without headers):

<geokret id="4849">
   <name><![CDATA[B&B's Dragonfly]]></name>
   <distancetravelled>1959</distancetravelled>
   <state>0</state>
   <position latitude="53.73917" longitude="17.40568" />
   <waypoints>
      <waypoint><![CDATA[OP1003]]></waypoint>
   </waypoints>
</geokret>
<geokret id="3249">
   <name><![CDATA[Geokretynka]]></name>
   <distancetravelled>113</distancetravelled>
   <state>1</state>
   <position latitude="0.00000" longitude="0.00000" />
   <waypoints>
      <waypoint><![CDATA[]]></waypoint>
   </waypoints>
</geokret>

export2.php

This is revised and extended version of export.php.

Note: export*.php has a limit of retrieved data set at 10 days (ie you can download data changed in the past 10 days only). This should be enough to sync local OC nodes or other databases. To get older data check: here.

http://geokrety.org/export2.php

sample output:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<gkxml version="1.0" date="2010-12-09 19:10:03">
<geokrety>
	<geokret id="8143" dist="251" lat="53.14598" lon="23.18567"
	waypoint="OP2FD9" owner_id="3813" state="0" type="0" 
	image="1273660644jr8sm.jpg">
	<![CDATA[Wiewireczka]]>
	</geokret>
</geokrety>
</gkxml>

Avaliable swiches:

Of course above swiches can be mixed. Eg to list my (ownerid=1) geokrets which are in GC caches, just enter:
http://geokrety.org/export2.php?userid=1&wpt=gc

Made in Poland | by filips | xhtml + css | geokrety.org | contact | Report abuse | Terms of use | ssl