Skip to content

jarkko/quickroute-ruby

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 

QuickRoute JPEG Parser for Ruby

Parses the GPS data embedded to JPEG files output by QuickRoute.

© Jarkko Laine 2011. Licensed under the WTFPL.

Installation

gem install quickroute

Note! Only works in Ruby >=1.9.2

Usage

@filename = '2010-silja-rastit.jpg'
qp = QuickrouteJpegParser.new(@filename, true) # true => calculates
times and distances.
qp.sessions.first.route.elapsed_time / 60
# => 43.766666666666666
qp.sessions.first.route.segments.first.waypoints.size
# => 992
qp.sessions.first.route.segments.first.waypoints.map{|wp| [wp.position.longitude, wp.position.latitude]}
# => [[22.78103777777778, 60.29233194444444], 
#     ...
#     [22.77652638888889, 60.293416388888886],
#     [22.77655638888889, 60.29344361111111]]

About

Ruby library for parsing files exported from Quickroute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages