Wikipedia

This sample service allows user view nearest Wikipedia articles from his or any other location. It supports multiple languages (in service settings) and opens article itself in external browser.

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://client.locify.com/locify_ns/1.0" xml:lang="en" lang="en">
<head>
	<title>Wikipedia</title>
</head>
<body class="serviceInfo">
	<div>
		<p class="description">Ever wanted to know everything about place you're visiting? Now you can - find Wikipedia articles about nearest places.</p>
		<img src="http://www.locify.com/images/icons/wiki.png" class="icon" alt="" />
		<a href="http://services.locify.com/wikipedia/start" class="firstScreen">firstScreen</a>
		<a href="http://services.locify.com/wikipedia/settings" class="settings">settings</a>
	</div>
</body>
</html>

Settings 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>Wikipedia settings</title>
</head>
<body class="form">
<form action="locify://serviceSettings" method="post">
	<locify:variables>
		<locify:element name="preflang" value="$settings[preflang]" />
	</locify:variables>
<fieldset>
	<label>Preferred language: <select name="preflang">
		<option value="en">English</option>
		<option value="de">Deutsch</option>
		<option value="es">Español</option>
		<option value="fr">Français</option>
		<option value="it">Italiano</option>
		<option value="ja">日本語</option>
		<option value="nl">Nederlands</option>
		<option value="pl">Polski</option>
		<option value="pt">Português</option>
		<option value="ru">Русский</option>
		<option value="sv">Svenska</option>
		<option value="fi">Suomi</option>
		<option value="no">Norsk (bokmål)</option>
		<option value="eo">Esperanto</option>
		<option value="sk">Slovenčina</option>
		<option value="da">Dansk</option>
		<option value="cs">Česky</option>
		<option value="tr">Türkçe</option
		<option value="zh">中文</option>
		<option value="ca">Català</option>
		<option value="is">Íslenska</option></select></label><br />
	<input type="submit" value="Save" />
	<p>Order of searching in languages: Preferred, English, Default</p>
</fieldset>
</form>
</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>Wikipedia</title>
</head>
<body class="form">
<form action="http://labs.locify.com/wikipedia/display" method="post">
	<locify:variables>
		<locify:element name="latitude" value="$lat" />
		<locify:element name="longitude" value="$lon" />
		<locify:element name="preflang" value="$settings[preflang]" />
	</locify:variables>
	<fieldset>
	<input type="hidden" value="" name="preflang" />
	<input type="hidden" name="latitude" value="" />
	<input type="hidden" name="longitude" value="" />
	<locify:where />
	<input type="submit" value="Find articles" />
	</fieldset>
	<p>You don't have to enter GPS coordinates manually or from GPS device. You can also select saved point or even address and GPS coordinates will be added for you.</p>
</form>
</body>
</html>

List of articles near location

<?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>Wikipedia</title>
</head>
<body class="list">
<ul>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Horsted%20Keynes" class="listItem">Horsted Keynes (2.2 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Fletching%2C%20East%20Sussex" class="listItem">Fletching, East Sussex (3 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Nutley%2C%20East%20Sussex" class="listItem">Nutley, East Sussex (5.3 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Chailey" class="listItem">Chailey (5.7 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Maresfield" class="listItem">Maresfield (6.1 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Ashdown%20Forest" class="listItem">Ashdown Forest (6.6 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Wivelsfield" class="listItem">Wivelsfield (8.1 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Isfield" class="listItem">Isfield (8.6 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Wivelsfield%20railway%20station" class="listItem">Wivelsfield railway station (9.4 km)</a></li>
	<li><a href="http://services.locify.com/wikipedia/open?lang=en&amp;article=Buxted" class="listItem">Buxted (9.5 km)</a></li>
</ul>
</body>
</html>

Opening Wikipedia article in external browser

<?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>
    <meta http-equiv="refresh" content="0;url=http://en.wikipedia.org/wiki/Horsted%20Keynes" />
    <locify:call url="locify://external/http://en.wikipedia.org/wiki/Horsted%20Keynes" />
    <title>
    </title>
  </head>
  <body>
  </body>
</html>

How does it look like

You need Flash Player and JavaScript to see video content.