Utiliser TangoGPS pour trouver des geocaches - Use TangoGPS to play geocaching
Le géocaching consiste à faire découvrir des sites en lançant les internautes à la recherche d'une cache. Souvent une boîte étanche, contenant quelques babioles et un carnet de bord. Il y a parfois une enigme à résoudre, le principe restant d'utiliser un GPS pour localiser la cache.
Geocaching principle is to send visitors looking fow a waterproof box containing gadgets and a log book. Sometimes you'll have to solve a riddle, the principle staying to use a GPS to locate the "treasure".
Sur le site geocaching.com il est possible après voir sélectionné des caches selon différents critères de les exporter sous d'un fichier xml.
par défaut celui ci s'appele geolocations.loc et est de la forme suivante :
On the website geocaching.com you have the possibility to downloads locations as an XML file. By default it is named geolocations.loc and looks like this :
<?xml version="1.0" encoding="UTF-8"?> <loc version="1.0" src="Groundspeak"> <waypoint> <name id="GC1CH0M"><![CDATA[Le Camp de César by snoopy_22gl]]></name> <coord lat="47.709833" lon="-2.7213"/> <type>Geocache</type> <link text="Cache Details">http://www.geocaching.com/seek/cache_details.aspx?wp=GC1CH0M</link> </waypoint><waypoint> .....
voilà qui est bien, mais maintenant comment utiliser ces points pour rechercher les caches avec son openmoko, plus spécifiquement avec TangoGPS ?
en utilisant un script qui va insérer les points dans la base poi.db. l'utilisation du script est très simple, par défaut il insère les waypoints de geocaching.loc dans la base poi.db, il l'a crée au besoin.
Great, but now how can we use those waypoints in our device using TangoGPS ? By running a script that will insert the waypoints in the poi.db database, creating it if necessary.
./loc2tango.py --help
Usage: loc2tango.py [options]
Options:
-h, --help show this help message and exit
-i INFILE, --input=INFILE
read waypoints from geocaching.com XML loc format file
INFILE, defaults to geocaching.loc
-o OUTFILE, --output=OUTFILE
Write geocaches into poi table of file OUTFILE,
defaults to poi.db
-q, --quiet Print less information.
-v, --verbose Print debug information.
Vous aurez besoin des paquets suivants pour faire fonctionner le script, s'ils ne sont pas déjà présents sur votre système. :
You'll require the following packages, if not already installed in your system :
- python-pysqlite2
- python-elementtree
ensuite copiez la base poi.db dans le répertoire .tangogps de votre freerunner ou de votre portable. Relancez l'application et sélectionnez "show POIs".
Next, copy the poi.db database to your device. Restart TangoGPS and select "show POIs" in the context menu.
Il n'y a "plus qu'à" se laisser guider par Tango qui affiche la distance restant à parcourir et le cap à suivre. Bonnes chasses !
You now have "only" to let you get guided by Tango that show heading and remaining distance. Happy hunting !