From: Robert Lipe <robertlipe@us...> - 2004-12-03 18:16:10
A friend is doing a gig that takes him to a multitude of truckstops
owned by the same company and travelling with a Meriplat with
DirectRoute. This company provides lat/longs of most of these stops,
but does so in an inconvenient format to print and take with you. With
a few minutes of scripting, I was able to massage these into a GPX file
that started like this:
<wpt lat="32.74471" lon="-85.27959"><name>Alabama</name><cmt>Cusseta-I-85 Exit 70</cmt></wpt>
<wpt lat="32.70533" lon="-100.86632"><name>Texas</name><cmt>Snyder-Hwy. 180 180 & U.S. 84 at U.S. 84</cmt></wpt>
<wpt lat="30.73791" lon="-95.59128"><name>Texas</name><cmt>Huntsville-I-45 Texas Hwy. 75Exit 118</cmt></wpt>
[ ... ]
I selected the state for the waypoint and populated the comment with the
city and descriptive text. I then defined an output format like:
IFIELD SHORTNAME, "", "%-12.12s"
IFIELD DESCRIPTION, "", "%-40.40s"
and then sorted by state:
gpsbabel -i gpx -f wlist -x sort -o xcsv,style=/home/robertl/src/gpsbabel/style/xdale -F -
Alabama Cusseta-I-85 Exit 70 N 32 44.683 W 85 16.775
Alabama Robertsdale-I-10 & Hy. 64 Exit 53 N 30 37.822 W 87 36.931
Arizona Holbrook-I-40 Exit 283 N 34 54.376 W 110 12.718
[ ... ]
which then gives us a nice dense listing of things in a format that's
easy to read and faxable so he can enter his next destination right into
the GPS he's traveling with in a format he's accustomed to.
If he had a laptop, I'd send him the waypoints in a loadable format.
Kind of wierd, but the whole thing was 5 minutes start to finish...