View source for Talk:TangoGPS

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to Talk:TangoGPS.

Personal tools


navicache poi import

(geocaching) work in progress HELPHELPHELP

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

example gpx file

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



   creator="NaviCache Cache Download 1.0.0 -"



   xsi:schemaLocation=" ">

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






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


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


         <urlname>Cache Details</urlname>




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


         <desc>Cache Hopper by Web_ling</desc>


         <urlname>Cache Details</urlname>




poi.db format/schema?

example poi.db with one poi entry tangogps raw sqlite poi.db

CSV dump

kd8ikt@kd8ikt:~/mokoloco$ cat poidb.cvs 
"109496141722186324","39.283409","-84.317535","0.0","14.0","0.0","home","home duh","3.0","0.0","","","","",""

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



#!/usr/bin/env python
#  licensing stuff yada yada

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 " poi.db navicache.gpx"


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