Talk:TangoGPS

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(navicache poi import)
(?)
Line 114: Line 114:
  
 
</PRE>
 
</PRE>
 +
 +
==help!==
 +
since repositories are un-editable after the are created. how would one delete/modify a existing repository?

Revision as of 20:00, 25 April 2009

subproject

navicache poi import

(geocaching) work in progress HELPHELPHELP kd8ikt@fuse.net

import navicache.com geocache waypoints via their downloadable gpx (xml) into tangogps's ~/.tangogps/poi.db (sqlitedb)


example navicache.com gpx file

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

<gpx

   version="1.0"

   creator="NaviCache Cache Download 1.0.0 - http://www.navicache.com"

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

   xmlns="http://www.topografix.com/GPX/1/0"

   xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd ">

      <name>acountnames's GPX download</name>

      <author>NaviCache.com</author>

      <email>support@navicache.com</email>

      <url>http://www.navicache.com</url>

      <urlname>NaviCache</urlname>

      <time>2009-02-06T21:35:30Z</time>

      <wpt lat="39.3173666666667" lon="-84.54635">

         <name>N00BD5</name>

         <desc>A Chip Off the Old Block by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=3029</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>

      <wpt lat="39.32035" lon="-84.5737333333333">

         <name>N0114D</name>

         <desc>Cache Hopper by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=4429</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>


poi.db format/schema?

example poi.db with one poi entry
http://we.trekbeyond.org/~kd8ikt/moko/poi.db tangogps raw sqlite poi.db

CSV dump


kd8ikt@kd8ikt:~/mokoloco$ cat poidb.cvs 
"idmd5","lat","lon","visibility","cat","subcat","keywords","desc","price_range","extended_open","creator","bookmarked","user_rating","rating","user_comment"
"109496141722186324","39.283409","-84.317535","0.0","14.0","0.0","home","home duh","3.0","0.0","","","","",""


conclusion
i'm looking into python for importing/parsing the lat lon name and desc inside each waypoint heading then export those into the tangogps sqlite poi.db


GPSBABEL?




Progress


#!/usr/bin/env python
#
#  NaviCacheGPX2TangogpsPOIdb.py 
#
#  licensing stuff yada yada
#
#kd8ikt

import sys

from xml.dom import minidom
xmldoc = minidom.parse('gpx.gpx') #ugh wrong its hardcoded 

if len(sys.argv) <3:
  print "usage:"
  print "INCOMPLETE"
  print "NaviCacheGPX2TangogpsPOIdb.py poi.db navicache.gpx"
  sys.exit(1)

help!

since repositories are un-editable after the are created. how would one delete/modify a existing repository?

Personal tools

subproject

navicache poi import

(geocaching) work in progress HELPHELPHELP kd8ikt@fuse.net

import navicache.com geocache waypoints via their downloadable gpx (xml) into tangogps's ~/.tangogps/poi.db (sqlitedb)


example navicache.com gpx file

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

<gpx

   version="1.0"

   creator="NaviCache Cache Download 1.0.0 - http://www.navicache.com"

   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

   xmlns="http://www.topografix.com/GPX/1/0"

   xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd ">

      <name>acountnames's GPX download</name>

      <author>NaviCache.com</author>

      <email>support@navicache.com</email>

      <url>http://www.navicache.com</url>

      <urlname>NaviCache</urlname>

      <time>2009-02-06T21:35:30Z</time>

      <wpt lat="39.3173666666667" lon="-84.54635">

         <name>N00BD5</name>

         <desc>A Chip Off the Old Block by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=3029</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>

      <wpt lat="39.32035" lon="-84.5737333333333">

         <name>N0114D</name>

         <desc>Cache Hopper by Web_ling</desc>

         <url>http://www.navicache.com/cgi-bin/db/displaycache2.pl?CacheID=4429</url>

         <urlname>Cache Details</urlname>

         <sym>Default</sym>

         <type>Geocache</type>

      </wpt>


poi.db format/schema?

example poi.db with one poi entry
http://we.trekbeyond.org/~kd8ikt/moko/poi.db tangogps raw sqlite poi.db

CSV dump


kd8ikt@kd8ikt:~/mokoloco$ cat poidb.cvs 
"idmd5","lat","lon","visibility","cat","subcat","keywords","desc","price_range","extended_open","creator","bookmarked","user_rating","rating","user_comment"
"109496141722186324","39.283409","-84.317535","0.0","14.0","0.0","home","home duh","3.0","0.0","","","","",""


conclusion
i'm looking into python for importing/parsing the lat lon name and desc inside each waypoint heading then export those into the tangogps sqlite poi.db


GPSBABEL?




Progress


#!/usr/bin/env python
#
#  NaviCacheGPX2TangogpsPOIdb.py 
#
#  licensing stuff yada yada
#
#kd8ikt

import sys

from xml.dom import minidom
xmldoc = minidom.parse('gpx.gpx') #ugh wrong its hardcoded 

if len(sys.argv) <3:
  print "usage:"
  print "INCOMPLETE"
  print "NaviCacheGPX2TangogpsPOIdb.py poi.db navicache.gpx"
  sys.exit(1)