Purely Web based OS Agnostic method
- Go to gmaptogpx and follow the instructions to create a bookmark.
- Draw your route in Google Maps. Other mapping software exists.I find using the walking option gives more sensible routes for cycling.
- Click on the gmaptogpx as installed above. This will show you a gpx file. Copy this into a file called
.gpx - Now go to gpsies. Select the .gpx file created above, and select as an output a .crs file. Save the .crs
- Connect your Garmin device to the computer and copy the .crs file into the directory "New Files"
- Safely remove the device and restart it. The Garmin will import the course ready for use.
If you want software to download to help
As an addendum, I've also used the following, if you're on a Windows machine, this replaces 4 above
The advantages are that you can set the average speed (the Google Maps average speed for walking isn't much use for cycling if you want to do comparative routing. If you use the driving option then you'll be sadly lagging behind!)
- Create your GPX file (see 1-3 above)
- Download Gpx2Crs as a zipfile
- Unzip
- Select the "Convert GPX to Course" tab
- Select the average speed you wish to do your route at
- Fiddle with the other buttons if you want
- Go to 5-6 above
I've used gmaptogpx. There's now gmap2tcx available here
http://code.google.com/p/gmap2tcx/
As yet untested but it should avoid the gpx to .crs conversion in gpsies above.
If GMapToGpx doesn't work it may suggest downloading as a KML file and converting using http://www.gpsvisualizer.com/
Editing kml/gpx
if you want to edit your kml/gpx, you can't. What you can do is use http://www.gpsvisualizer.com/ to convert to a text file. Then a bit of python to generate a file in the format
From
This can be pasted into the google maps search window and a basic route can now be edited.
Caveat: I'm not a python expert. Here's something I bodged in an hour
# Format of data is
#T:
#Output format is
#From:
#Keep first and last lines, delete 1 in n lines, where n programmable, should leave around 25 entries.
import sys, optparse
def write (where, what):
print what
where.write (what)
def main (options, args):
image = open(options.image, "r").readlines()
print "len %d name %s" % (len(image), options.image)
name = "output_" + options.image
output = open (name, "w")
image.pop(0)
start = (image.pop(0)).split('\t')
write (output, "from:%s,%s " % (start[1], start[2]))
end = (image.pop()).split('\t')
count = 0
modulus = 1 + len(image) / 22
#print "Modulus: ", modulus
for a in image:
a = a.rstrip ()
#print "len %d string %s" % (len(image), a)
b = a.split('\t')
#print b
if not (count % modulus):
#print "Count %d mod %d res %d " % (count, modulus, count % modulus)
write (output, "to:%s,%s " % (b[1], b[2]))
count += 1
write (output, "to:%s,%s " % (end[1], end[2]))
write (output, "to:%s,%s " % (start[1], start[2]))
if __name__ == '__main__':
option_parser = optparse.OptionParser()
option_parser.add_option('-n', '--num', dest='num', help='skip n', default=10, type="int")
option_parser.add_option('-i', '--image', dest='image', help=' image', default='./file.txt')
options, args = option_parser.parse_args(sys.argv[1:])
main (options, args)
A little bit of python can convert a KML or GPX fi
Good stuff, thanks.
ReplyDeleteUsing this process, once the course is on the device, is it possible to view the course in cue sheet mode (turn by turn)?
I haven't had any luck with that on my Garmin 500, but the manual says you should be able to!
ReplyDeleteIt's been over a year, so probably what I am saying here was not available at the time of writing. But currently, my "Web based OS agnostic method" (which is the only method available for Linux users) is to go to ridewithgps.com and make my google maps-based course there. Then I export as tcx (which is way better than gpx) and use the New Files trick as you said. Is working fine for me.
ReplyDeleteYou can also convert the gpx to tcx with GPSies, which you can then import directly into the Garmin.
ReplyDeleteHello! A good solution and alternative to GPS Vizualizer is this free program http://kml2gpx.com/ which can easily make kml to gpx files. It works also the other way: gpx to kml file.
ReplyDelete