28
30
def drawMap(gpxfile,key,htmlpath):
29
32
cachefile = "/tmp/gpx.txt"
31
os.system("gpsbabel -t -i gpx -f %s -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile))
34
#os.system("gpsbabel -t -i gpx -f %s -x position,distance=%sm -o gpx -F %s" %(gpxfile,trackdistance,cachefile))
33
37
# Test if file already contains gpxdata attribute