Skip to content
Ruby lib to parse tcx and gpx files from GPS devices
Latest commit 6d5fc36 Oct 29, 2009 1 Scott Barron renaming the project guppy
Failed to load latest commit information.
doc hook up stuffs for rdoc Jan 24, 2009
lib renaming the project guppy Oct 29, 2009
test renaming the project guppy Oct 29, 2009
.gitignore use jeweler Oct 28, 2009
MIT-LICENSE license Jan 22, 2009
README.rdoc renaming the project guppy Oct 29, 2009
Rakefile renaming the project guppy Oct 29, 2009
VERSION use jeweler Oct 29, 2009
guppy.gemspec renaming the project guppy Oct 29, 2009


Guppy - Ruby library for handling tcx files

This library provides a set of classes for working with tcx and gpx dumps from GPS devices such as the Garmin Forerunner 305.


db ='foo.tcx')
db.activities.each do |activity|

run = db.activity('2009-01-12T19:28:18Z')
run.laps.each do |lap|
  puts "Lap Time: #{lap.time}"
  puts "Lap Distance: #{lap.distance}"
  puts "Lap Calories: #{lap.calories}"
  lap.track_points.each do |track_point|
    puts "#{track_point.latitude} #{track_point.longitude}"


  • Get aggregated pace and heart rate signals for an activity

  • Make it faster and avoid re-parsing the db in some instances

  • A nicer way to find a specific activity

Other Stuff


Scott Barron <scott at elitists dot net>


Copyright 2009 by Scott Barron. Released under an MIT-style license. See the MIT-LICENSE file included in the distribution.



This software is provided “as is” and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.

Something went wrong with that request. Please try again.