Geo::Track::Log 0.02 review

Download
by rbytes.net on

License: Perl Artistic License
File size: 16K
Developer: Rich Gibson
0 stars award from rbytes.net

Geo::Track::Log is a Perl module that represent track logs and find a location based on a track log and a date.

SYNOPSIS

use Geo::Track::Log;
my $log = new Geo::Track::Log;

# add a point to a track log.
$log->addPoint( {
timestamp => '2004-12-25 12:00:00',
lat => 0.0,
long=> 0.0,
} );

$log->addPoint( {
timestamp => '2004-12-25 13:00:00',
lat => 0.0,
long=> 1.0,
} );

Get our location at a time
my ($pt, $sPt, $ePt) = $log->whereWasI('2004-12-25 12:30:00');
or (a synonym)
my ($pt, $sPt, $ePt) = $log->interpolate('2004-12-25 12:30:00');
(see DESCRIPTION for more)

Load tracklog from a Garnix format file
$log->loadTrackFromGarnix('file handle');

Load Waypoint from a Garnix format file
$log->loadWayFromGarnix('file handle');

Fix the funky Garnix line format
my $pt = $log->fixGarnixTrackLine ( qq( 44? 3' 33.23" -123? 5' 0.07" 148.0 WGS84 00:50:19-2004/07/12 [1];) )

Load a GPX (GPS XML) format file
$log->loadTrackFromGPX('file handle');

return the earliest point, by time
my $pt = $log->minTimeStamp();

return the latest point, by time
my $pt = $log->maxTimeStamp();

What percent of the way is time $d between the time at points $sPt and $dPt?
my $pct = $self->getPercent($d, $sPt, $ePt);

Requirements:
Perl

Geo::Track::Log 0.02 search tags