Personal tools
You are here: Home zindep's blog Utiliser TangoGPS pour trouver des geocaches - Use TangoGPS to play geocaching

Utiliser TangoGPS pour trouver des geocaches - Use TangoGPS to play geocaching

Submitted by nlaurance. on 02/12/2008 14:08 . On a essayé

Si vous cherchez des buts de promenade dominicale pour sortir les enfants et découvrir une région, allez jouer au geocaching. If you're looking for a sunday walk with the children, or to discover the secrets of a place you visit, 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.

Ecran TangoGPS, TangoGPS screenshot

A la recherche du trésor, hunting cache

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 !

Téléchargement / download

conversion script

zindep's blog
« July 2010 »
Mo Tu We Th Fr Sa Su
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
27/07/2010
10:28-10:28 Le groupe agroalimentaire Glon alimente son site en python
Categories:
Articles (3)
 




Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: