4

It's very unfortunate that Google Maps Classic no longer exports routes as a KML file, and Google Maps Engine Lite isn't as easy to use.

So I was wondering if it were possible to somehow "rip" a route drawn in Google Maps Classic, possibly through some local JavaScript.

3

It looks like the method described on this blog post still works:

Plan Your Route

Head over to Google Maps, select the cycle option and start planning a route.

Once you are happy with the route, copy the page’s URL link in the address bar to your clipboard.

Convert to gpx

Open up a new tab and goto http://www.gpsvisualizer.com/convert_input

You can ignore most the options, just select Gpx and paste the Google Maps URL into the box labelled “provide the URL of a file on the Web” and then press the Convert button

Instead of GPX, just use the KML option.

2

The new Google Maps allows you to export as KML directly via My Maps, and appears to have been vastly improved since Maps Engine Lite first showed up.

  1. Click the Menu button
  2. Click 'My Maps'
  3. Click 'Create'
  4. Click the Draw a Line button then 'Add biking route' and start tracing your route*
  5. Click the three dots button to the right of the 'Add Layer' and 'Share' buttons, then 'Export to KML'
  6. Select the relevant map layer, choose between KML and KMZ**, and click 'Download'

* Note that you can only add 25 points along an A-B route, and you can only have 12 A-B routes per layer.

** If you export as KML it's easy to edit these files in Notepad++ or similar and join multiple A-B routes together for longer journeys. You can then re-import your edited KML into My Maps, Google Earth, or a GIS.

1

Hope this is not considered too off topic, but CycleStreets does much better cycle routes by using the rich OSM metadata on roads and smaller, often pedestrian-only paths. You can export both KML and GPX.

They also have an API if you want to do stuff programmatically.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.