Opencaching

Thanks to Jan Cermak (opencaching.cz admin) and Waldemar Ogonowski (opencaching.pl admin) was possible to make another caching service - Opencaching. Opencaching is open and developing this service was really enjoyable.

Welcome message

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://api.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
	<head>
		<title>OpenCaching</title>
	</head>
	<body class="serviceInfo">
		<div>
			<p class="description">This service allows you to find nearest open caches on opencaching.cz and opencaching.pl servers. You can view description and decrypted hint of these caches, navigate to them or save them locally.</p>
			<img src="http://services.locify.com/opencaching/logo.png" class="icon" alt="" />
			<a href="http://services.locify.com/opencaching/coords" class="firstScreen">firstScreen</a>
		</div>
	</body>
</html>

First screen

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
<head>
	<title>OpenCaching</title>
</head>
<body class="form">
<form action="http://services.locify.com/opencaching/list" method="post">
	<locify:variables>
		<locify:element name="lat" value="$lat" />
		<locify:element name="lon" value="$lon" />
	</locify:variables>
	<fieldset>
		<locify:where />
		<input type="hidden" name="lat" value="" />
		<input type="hidden" name="lon" value="" />
		<br />
		<label>Distance: <input type="text" name="distance" value="15" /></label>
		<input type="submit" value="Search nearest open caches" />
	</fieldset>
</form>
</body>
</html>

List of nearest open caches

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
<head>
	<title>OpenCaching</title>
</head>
<body class="list">
	<ul>
		<li><a href="http://services.locify.com/opencaching/cache?id=1115&domain=pl" class="listItem">0.8km Arachnofobia.  (PL)</a></li>
		<li><a href="http://services.locify.com/opencaching/cache?id=299&domain=pl" class="listItem">0.9km Barbakan (PL)</a></li>
		<li><a href="http://services.locify.com/opencaching/cache?id=399&domain=pl" class="listItem">2.9km Antena na Dachu (PL)</a></li>
		<li><a href="http://services.locify.com/opencaching/cache?id=3975&domain=pl" class="listItem">3.0km Akademia Rolnicza (PL)</a></li>
	</ul>
</body>
</html>

Cache options

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
<head>
	<title>OpenCaching</title>
</head>
<body class="list">
	<ul>
		<li><a href="http://services.locify.com/opencaching/navigate?id=1115&domain=pl" class="listItem">View & navigate</a></li>
		<li><a href="http://services.locify.com/opencaching/desc?id=1115&domain=pl" class="listItem">Show description</a></li>
		<li><a href="http://services.locify.com/opencaching/hint?id=1115&domain=pl" class="listItem">Show hint</a></li>
	</ul>
</body>
</html>

View & Navigate (send user KML file)

<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://earth.google.com/kml/2.2">
	<Placemark>
		<name><![CDATA[Barbakan]]></name>
		<description><![CDATA[Difficulty: 3.0
Terrain: 3.0
Size: Normalna
Type: Tradycyjna
Owner: adam
Country: PL]]></description>
 		<Point>
			<coordinates>19.941266666667,50.065616666667</coordinates>
 		</Point>
  	</Placemark>
</kml>

Show description (not listing)

Opencaching admins are working on improvement their API for showing full listing.

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
<head>
	<title>OpenCaching</title>
</head>
<body class="form">
<form action="http://services.locify.com/opencaching/cache?id=399&domain=pl" method="post">
	<fieldset>
		<p>Zabawa z matematyką</p>
		<input type="submit" value="Back" />
	</fieldset>
</form>
</body>
</html>

Show hint

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:locify="http://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
<head>
	<title>OpenCaching</title>
</head>
<body class="form">
<form action="http://services.locify.com/opencaching/cache?id=399&domain=pl" method="post">
	<fieldset>
		<p>Decrypted hint</p>
		<input type="submit" value="Back" />
	</fieldset>
</form>
</body>
</html>