Difference between revisions of "GCA API"

From GeoWiki
Jump to: navigation, search
(Cache Query)
 
(3 intermediate revisions by one other user not shown)
Line 8: Line 8:
 
NOTE: Only Geocaching Australia geocaches and logs are available to be pulled through this API.  
 
NOTE: Only Geocaching Australia geocaches and logs are available to be pulled through this API.  
  
Successful requests will recieve a HTTP 200 Code, whereas failed requests will receive HTTP 400 with a description of the error in the body text.
+
Successful requests will receive a HTTP 200 Code, whereas failed requests will receive HTTP 400 with a description of the error in the body text.
 
 
  
 
== Cache Query ==
 
== Cache Query ==
 
The cache query url is: http://geocaching.com.au/caches/gca.json
 
The cache query url is: http://geocaching.com.au/caches/gca.json
  
The data returned is in JSON array formaty and is pretty simple to figure out.
+
The data returned is in JSON array format and is pretty simple to figure out.
 
 
  
 
The following parameters can be used:
 
The following parameters can be used:
  
 
center=<lat>,<lon> the center point of the returned caches in ddd.dddddd format
 
center=<lat>,<lon> the center point of the returned caches in ddd.dddddd format
 +
 +
limit=<integer> The number of caches to return. If omitted the default is 50, maximum is 200
  
 
cacher=<cachername> If searching using Unfound, Found and Owned this parameter is mandatory
 
cacher=<cachername> If searching using Unfound, Found and Owned this parameter is mandatory
Line 75: Line 75:
  
 
Z - TrigPoint
 
Z - TrigPoint
 
  
 
== Log Query ==
 
== Log Query ==

Latest revision as of 11:02, 3 September 2011

Geocaching Australia
This page contains information specific to Geocaching Australia.

GCA Cache API

Geocaching Australia has developed a read-only JSON based query system for external applications to access cache data in real time.

This psuedo-API is READ ONLY at the moment until a suitable authentication model is developed.

NOTE: Only Geocaching Australia geocaches and logs are available to be pulled through this API.

Successful requests will receive a HTTP 200 Code, whereas failed requests will receive HTTP 400 with a description of the error in the body text.

Cache Query

The cache query url is: http://geocaching.com.au/caches/gca.json

The data returned is in JSON array format and is pretty simple to figure out.

The following parameters can be used:

center=<lat>,<lon> the center point of the returned caches in ddd.dddddd format

limit=<integer> The number of caches to return. If omitted the default is 50, maximum is 200

cacher=<cachername> If searching using Unfound, Found and Owned this parameter is mandatory

unfound=1 Returns caches that the cacher hasn't found

found=1 Returns caches that the cacher has found

owned=1 Returns caches that the cacher owns

NOTE: unfound, found and owned should not be used in combination, but rather as separate queries

include=<string of cache types> Include only the cache types specified

exclude=<string of cache types> Exclude the cache types specified

eg to include ONLY Multis, Trads and Trigs you would use &include=MTZ


List of cache types:

B - Moveable

C - Cache In Trash Out

D - Beacon

E - Event

H - Burke and Wills

I - Wherigo

L - Locationless

M - Multi-cache

O - Other

P - Podcache

R - Earthcache

T - Traditional

U - Unknown or Mystery

V - Virtual

W - Webcam

X - Letterbox

Y - Mega-Event

Z - TrigPoint

Log Query

This function returns all logs on a particular cache.

The URL is http://gcatest.com.au/cache/<waypoint>.json