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.

A picture (well, kind of) speaks a thousand words, so this sample tracklog 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.

This is the first (and only) 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, and I hope you find it useful! Clearing up the rough edges, improving compatibility with the GPX spec, and generally adding more options and info is left as an exercise for the reader.

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