Connecticut Mountain Biking Community

Google Earth & More

Google Earth

First off, if you don't know what Google Earth is, know this: it is free to download and it is very cool. Picture a desktop version of Google Maps on steriods, only better.

Now one of the cool things about Google Earth is they have their own version (sort of) of the GPX data format called KML (Keyhole Markup Language). Like GPX, it is XML based, which means it is text based and structured, which means I can do things with it. And it is a very robust language, which means I can do cool things with it.

What did you do Ray?

Well, on its most basic level, you can now download KML files from this site. I wrote up a nice module that will take information submitted to this site (namely GPX files and waypoints) and build nicely formatted and stylized KML files. But the really cool thing here is its "Roll your own" abilities. Hop on into our Mapper thing, take for example this Middlesex Map with a few tracks and waypoints checked. Now open up the layer control and scroll down to the bottom, you should see a couple new little buttons - as illustrated in the image to the right.

Clicking either of those will generate a single KML (or GPX) file including all the tracks and waypoints you currently have selected and prompt you to download it.

Notice that the generated KML files have some extra special touches:

  • If the map size is within reason, I generate Topo Map and Orthophoto overlays for each track.
  • Trails, waypoints and tracks are all hyperlinked back to their Crankfire data records.
  • I jam a picture into each waypoint (if there is one).
The GPX files, by nature, are not nearly as much fun, but they too contain embedded links and descriptions. Though it really depends on what software you use for viewing them if you even notice this information.

 [ Click for full size ]  [ Click for full size ]  [ Click for full size ]
Google Earth KML View GPX file shown in Topofusion KML file with Topo Overlay and showing a waypoint info bubble.

As always, there are probably still a few bugs floating around that code, so if anything blows up on you or whatever, please let me know.

Lastly, as cool as this whole KML thing is to me (and the 2-3 of you out there that might care), Google Earth imagery for Connecticut bites.

More? Bike Shop Photos

I added the ability for bike shops to upload up to 3 pictures into their shop record. Check out Bikers Edge's shop record to see this feature in action. A caveat does come with this though - to upload photos into your bike shop record, you must be the owner of the bike shop record. With that being said, if you are a bike shop and are dying to upload some pictures but your shop record was entered by someone else, drop me a line and I will give you ownership of it.

Even more?

Yeah, I guess. I rewrote the photo association thing. Its much easier, faster and efficient to use now.

Final Thoughts

I am tired.




Comments / Discussion

( 1 )  mr ixnay

You have made my dreams come true...almost!
I love google earth and was just thinking about how cool it would be if i could view trails in google earth. (can you read my mind?)
When I downloaded the kml file from middlesex with 2 rides highlighted, open google earth, I get the message: "no results-empty KML file"

Does it make a difference if I am on a mac?

Posted November 9, 2006 at 3:03 PM [ 4221 ]
Trackback to this comment
Reply to this comment

Nathan Cloud

What version of Google Earth are you using? I might have employed some of its more recent KML 2.1 features? And if you save it to your computer and open it with a notepad or something, is there stuff in there or is it empty?

And out of curiousity, try this one: http://www.crankfire.com/data/generated/110906-1163098808.kml

Curses. I started a support thread here.

Reply posted on November 9, 2006 at 3:14 PM [ 4222 ]
Trackback to this comment
Reply to this comment

( 2 )  philly758

Nate this looks awesome and is definately a step in the right direction... I haven't tried it out yet but from the screen shots it looks very promising.... I'll let you know what i think when i get a chance to tinker

Posted November 9, 2006 at 4:54 PM [ 4224 ]
Trackback to this comment
Reply to this comment

( 3 )  e moneybags

I like the interweb! I understood about 3 whole words of what you said, and those three words sounds FANTASTIC. "Whopner?" Oh yea, can you do the photo association thing so that you can CTRL+Click multiple items to associate all at once in the new format? Makes group pics way easier.. As always Nat, you are on the forefront of all that is cool. Or do I mean nerdy.. I forget. Regardless of all that, GREAT WORK!

Posted November 9, 2006 at 5:56 PM [ 4225 ]
Trackback to this comment
Reply to this comment

Nathan Cloud

It's simple young grasshopper: you can create a nice single file containing gps tracks and waypoints that you choose which you can then upload into your GPS or look at it with the neato Google Earth program. Easy peasy?

Reply posted on November 9, 2006 at 9:18 PM [ 4228 ]
Trackback to this comment
Reply to this comment

( 4 )  dufman

That is freakin' AWESOME!!

Posted November 10, 2006 at 7:23 AM [ 4229 ]
Trackback to this comment
Reply to this comment

( 5 )  hugo03

i like the ghostbuster's reference

Posted November 10, 2006 at 3:05 PM [ 4230 ]
Trackback to this comment
Reply to this comment

( 6 )  albert

Maybe you can take a look at this website: http://www.wikiloc.com/

- upload, share and view trails in google maps
- view trails in google earth
- many other features.

Truly awesome.

Posted November 29, 2006 at 3:12 AM [ 4340 ]
Trackback to this comment
Reply to this comment

Nathan Cloud

I never saw that site, and you are right - it is really nice: clean interface, easy to use, and I like its overall flow. We do have uploading, sharing, viewing in google maps, google earth and my own map engine, and, well, we have other features too! ;)

Though I did not pull if off as cleanly. I do have to rewrite my google map stuff because I am unhappy with it and its based on v1 of the google maps api :( Plus I have a few gripes with Google Maps...

Regardless though, I am probably going to steal a few of their ideas. Thanks for the link!

Reply posted on November 29, 2006 at 10:22 AM [ 4342 ]
Trackback to this comment
Reply to this comment

Add your comment



[ You must be logged in to enter comments ]