Project

quickroute

0.0
No commit activity in last 3 years
No release in over 3 years
Library for parsing the GPS data embedded to JPG files by QuickRoute (http://www.matstroeng.se/quickroute/en/).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.7.0

Runtime

~> 1.4.3
 Project Readme

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]]