Hi Andew, thanks for your Ruby-Script, this solves my problem! http://highearthorbit.com/projects/geolocation/gpx.rb To process one particular file generated by Maemo-Mapper I had to add abs() to the sqrt() call, see: http://armin-warda.de/gpx.rb http://armin-warda.de/Track-1 Btw. I removed the redundant count variable, added track segment length output, and changed it from miles to km ;-) regards, Armin.