Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rubyist/guppy
Ruby lib to parse tcx and gpx files from GPS devices
https://github.com/rubyist/guppy
Last synced: 23 days ago
JSON representation
Ruby lib to parse tcx and gpx files from GPS devices
- Host: GitHub
- URL: https://github.com/rubyist/guppy
- Owner: rubyist
- License: mit
- Created: 2009-01-22T22:25:10.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2009-10-29T13:29:21.000Z (about 15 years ago)
- Last Synced: 2023-04-10T09:21:33.436Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 106 KB
- Stars: 32
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
Awesome Lists containing this project
README
= 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.== Examples
db = Guppy::Db.open('foo.tcx')
db.activities.each do |activity|
puts activity.date
endrun = 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}"
end
end== TODO
* 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
Author:: Scott Barron
License:: Copyright 2009 by Scott Barron.
Released under an MIT-style license. See the MIT-LICENSE
file included in the distribution.
GitHub:: http://github.com/rubyist/guppy/tree/master== Warranty
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.