gloomytrousers.co.uk

GPS tracklog statistics

Takes a GPS tracklog (in GPX format) and output some interesting statistics about it - distances, speeds, times, positions and so on.

I primarily intend to use this for tracking my performance when cycling to work, but there's no reason you couldn't use it for running, walking, driving, gliding, hopping on one leg, or any other activity that takes your fancy.

A picture (well, kind of) speaks a thousand words, so this sample tracklog (see some photos taken along the way) produces the following output:

gpxstats ver 0.1.0 (Date: 2008-03-01 20:16:24 +0000, Revision: 162)

Trip start:     53°54'31.12"N, 01°05'15.43"W at 17 Feb 2008 14:22:34
Trip end:       53°54'34.88"N, 01°05'34.01"W at 17 Feb 2008 17:15:23
As crow flies:  0.22 miles from start to end

Trip overall:   5.62 miles in 02:52:49
Average speed:  1.95 miles/hour
Maximum speed:  3.73 miles/hour over 0.03 miles in 00:00:32 (9 track points)
		at 0.18 miles, around 00:03:20 from start
		between 53°54'35.60"N, 01°05'22.02"W, 14:25:54 with 8 satellites
		and     53°54'36.79"N, 01°05'24.13"W, 14:26:26 with 8 satellites

Whilst moving:  5.59 miles in 02:17:43 (moving faster than 0.2 miles/hour)
Average speed:  2.43 miles/hour
Time moving:    02:17:43 (79.7%)
Time stopped:   00:35:06 (20.3%)

Route eff'cy:   3.96% (from start to end in a straight line is 100% efficient)

Track points:   1634 total, an of average 567.3 per hour or 1 every 00:00:06
Sats used:      3 min, 10 max, 8.4 average
	

This is a Perl script, and requires the additional modules Geo::Gpx, Geo::Distance and Geo::Functions.

At the moment this is the first release; it's a bit rough and ready without much validation, no processing of elevation data, and plenty still left to do. However, it appears to work OK (at least on my GPX logs from TrekBuddy), and I hope you find it useful! Future updates will clear up the rough edges, improve compatibility with the GPX spec, and generally give more options and info.

gpxstats-0.1.0.tar.gz (v0.7b, 01 Mar 2008, 9.2KB)
Valid XHTML 1.0!
Valid CSS!
Non-humans only