GPS to Google Map using gpsbabel and gpxgoogle
By admin on Aug 19, 2007 | In Linux | Send feedback »
Use a bash script, invoking gpsbabel, to pull the gps points off the gps device. In my case, it's a Garmin gecko 301 on /dev/ttyS0.
#!/bin/bash
filename="`date +%y%m%d-%H%M`"
echo "creating $filename-tracklog.gpx"
gpsbabel -t -i garmin -f /dev/ttyS0 -o gpx -F $filename-trackl
With the gpx file and gpxgoogle, create an html file with a google map of the track. Configure gpxgoogle to use your google maps api key.
./gpxgoogle 070812-1817-tracklog.gpx > trail_20070812.html
-----
No feedback yet
Leave a comment
| « Google Calendar HOWTO | Way to keep people passive » |