monkinetic weblog

Steve Ivy's Weblog - Since 1999 - XII Ed.

Plazes to KML

UPDATE: this plazes2kml.rb now has it's own page

Chris Messina had a cool idea to map his plazes history onto Google Earth, but needed some programming help. So I whipped up a quick ruby script (GPL and MIT licensed) that can be run to grab the data and output it as KML. It runs from the command line, or from within TextMate with cmd-r.

Find it in my svn repo at:

From the usage:

Usage: ruby plazes2kml.rb [options]
plazes2kml downloads your Plazes history and converts 
    it into a Google Earth KML file
    --username USERNAME          your developer key
    --dev-key DEVELOPER_KEY      your username
    --password PASSWORD          your password
    --user-key USER_KEY          your userkey
    --limit[=LIMIT]              How many results to return
    --from-date[=FROMDATE]       Start date for results
    --to-date[=TODATE]           End date for results
    --output[=OUTPUT]            Output to file
    --kill-dups[=y]              Kill duplicate plazes
-h, --help                       Show this help message.

My name is Steve Ivy and I write about technology, the open web, social software, and general nerdity on monkinetic.com. You should follow me on Twitter or subscribe to this blog if you like what you're reading. I spend my days hacking Movable Type, python, Django, and various other efforts at Wallrazer. This is my personal site.