Feature: View the tracks and descriptions live in Google Earth


View the tracks and descriptions live in Google Earth









I use this pair of KML files all the time:

The second link is the cool one - it updates at a prescribed frequency from the site.

Might be something worth considering here. It's nice to see a map of everything when you're deciding on the day's ride.

I'd be happy to work on how to code it. What are you folks using as the back end - Java and PHP?


Don wrote a script that collates the descriptions and gps data for each track into a single Google Earth kml file. The code and the collated kml file are available if you want to have a look.

Is this the sort of thing you're thinking of?
Ian, 21 Apr 2009 13:14

Graham: check this out: http://www.gamma.net.nz/kml/tracks.kml feel free to check the code out from github and contribute Its perl not php though.
don, 21 Apr 2009 15:52

That's ideal! You're a legend. Will it run on the tracks.org.nz server?

If so (and I'm guessing you may already be planning this) my suggestion would be:
(a) implement to get it to check for new tracks at an interval and re-build if new tracks found, and (b) get the script to zip the file and rename to .kmz to save on traffic (actually this applies to all of your .kml files).

It could then be a link on the homepage, either as a downloadable .kmz, or better (if you're happy with the traffic implications) a .kml that calls the latest version of the .kmz from tracks.org.nz as a <Link> whenever it's been updated. Traffic in the latter case shouldn't be too bad as long as the .kml specifies the <refreshMode>onChange.

Is this feasible? Are you planning it? Happy to help, but you seem onto it! Nice.
Graham, 22 Apr 2009 17:19

Hey Don, that's looking cool on Google Earth!

A feature I would like to add one day is to have an xml interface to some (most?) data, particularly the track paths. I would need to look into this further but it should allow for getting the data in a friendlier and more standard way.
Jonny, 27 Apr 2009 01:25

Don's script no longer works as site rearrangement broke the screen scraping he was doing.

I agree that ideally there should be a standardized interface to pull info out of the tracks site.

I'd be happy to help out with this feature. If I could check tracks.org code out from somewhere I could work on a local development copy and submit a patch for you to test.

Jonny, does that sound ok to you?
capuchin, 14 Jan 2010 14:50

Script updated and on github. KML is now here: all tracks in one KML file
capuchin, 10 Feb 2010 20:53




20 Apr 2009 09:12


20 Apr 2009 09:21

Show all

A Cheeky Monkey production, choice bro!