Geo::Lookup::ByTime 0.0.2
Sponsored Links
Geo::Lookup::ByTime 0.0.2 Ranking & Summary
File size:
0.015 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1003
Date added:
2007-01-24
Publisher:
Andy Armstrong
Geo::Lookup::ByTime 0.0.2 description
Geo::Lookup::ByTime is a Perl module to lookup location by time.
SYNOPSIS
use Geo::Lookup::ByTime;
$lookup = Geo::Lookup::ByTime->new( @points );
my $pt = $lookup->nearest( $tm );
Given a set of timestamped locations guess the location at a particular time. This is a useful operation for, e.g., adding location information to pictures based on their timestamp and a GPS trace that covers the same time period.
INTERFACE
new( [ points ] )
Create a new object optionally supplying a list of points. The points may be supplied as an array or as a reference to an array. Each point may be a reference to a hash containing at least the keys lat, lon and time or a reference to an object that supports accessor methods called latitude, longitude and time.
If a coderef is supplied it is assumed to be an iterator that may be called repeatedly to yield a set of points.
add_points( [ points ] )
Add points. The specification for what constitutes a point is the same as for new.
nearest( $time [ , $max_dist ] )
Return a hash indicating the estimated position at the specified time. The returned hash has lat, lon and time keys like this:
my $best = {
lat => 54.29344,
lon => -2.02393,
time => $time
};
Returns undef if the position cant be computed. By default a position will be calculated for any point that lies within the range of time covered by the reference points. Optionally $max_dist may be specified in which case undef will be returned if the closest real point is more than that many metres away from the computed point.
If the requested time coincides exactly with the timestamp of one of the points the returned point will be at the same location as the matching point. If the time falls between the timestamps of two points the returned point will be linearly interpolated from those two points.
In an array context returns a list containing the synthetic point at the specified time (i.e. the value that would be returned in scalar context), the closest real point and the distance between the two in metres
my ($best, $nearest, $dist) = $lookup->nearest( $tm );
get_points()
Return a reference to an array containing all the points in ascending time order.
time_range()
Return as a two element list the time range from earliest to latest of the points in the index. Returns undef if the index is empty.
hav_distance($pt, ...)
Exportable function. Computes the Haversine distance in metres along the line described by the points passed in. Points must be references to hashes with keys lat and lon.
SYNOPSIS
use Geo::Lookup::ByTime;
$lookup = Geo::Lookup::ByTime->new( @points );
my $pt = $lookup->nearest( $tm );
Given a set of timestamped locations guess the location at a particular time. This is a useful operation for, e.g., adding location information to pictures based on their timestamp and a GPS trace that covers the same time period.
INTERFACE
new( [ points ] )
Create a new object optionally supplying a list of points. The points may be supplied as an array or as a reference to an array. Each point may be a reference to a hash containing at least the keys lat, lon and time or a reference to an object that supports accessor methods called latitude, longitude and time.
If a coderef is supplied it is assumed to be an iterator that may be called repeatedly to yield a set of points.
add_points( [ points ] )
Add points. The specification for what constitutes a point is the same as for new.
nearest( $time [ , $max_dist ] )
Return a hash indicating the estimated position at the specified time. The returned hash has lat, lon and time keys like this:
my $best = {
lat => 54.29344,
lon => -2.02393,
time => $time
};
Returns undef if the position cant be computed. By default a position will be calculated for any point that lies within the range of time covered by the reference points. Optionally $max_dist may be specified in which case undef will be returned if the closest real point is more than that many metres away from the computed point.
If the requested time coincides exactly with the timestamp of one of the points the returned point will be at the same location as the matching point. If the time falls between the timestamps of two points the returned point will be linearly interpolated from those two points.
In an array context returns a list containing the synthetic point at the specified time (i.e. the value that would be returned in scalar context), the closest real point and the distance between the two in metres
my ($best, $nearest, $dist) = $lookup->nearest( $tm );
get_points()
Return a reference to an array containing all the points in ascending time order.
time_range()
Return as a two element list the time range from earliest to latest of the points in the index. Returns undef if the index is empty.
hav_distance($pt, ...)
Exportable function. Computes the Haversine distance in metres along the line described by the points passed in. Points must be references to hashes with keys lat and lon.
Geo::Lookup::ByTime 0.0.2 Screenshot
Geo::Lookup::ByTime 0.0.2 Keywords
ByTime
ByTime 0.0.2
reference to
Perl module
May be
by time
time
points
point
location
returned
lookup
Geo::Lookup::ByTime
GeoLookupByTime
Geo::Lookup::ByTime 0.0.2
Libraries
Bookmark Geo::Lookup::ByTime 0.0.2
Geo::Lookup::ByTime 0.0.2 Copyright
WareSeeker periodically updates pricing and software information of Geo::Lookup::ByTime 0.0.2 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Geo::Lookup::ByTime 0.0.2 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
pointstreak
weight watchers points
points of authority
pointsource
pressure points
points calculator
cedar point
mita pointsource
points of authority linkin park
wii points
pointsettia
weight watchers points calculator
points of light foundation
bytime interactive
points of distinction
point loma
nytimes
point of view
Related Software
Geo::Google is a Perl module to perform geographical queries using Google Maps. Free Download
Lookups up the selected word in the Wikipedia encyclopedia. Free Download
KFilm is an non-linear Video Editor that runs on a **ix System. Free Download
Geo::Google::Segment is an annotated segment of a path. Free Download
Geo::Google::Location is a geographical point. Free Download
Geo::Google::Path is a path, by automobile, between two loci. Free Download
Kxremote is an application to integrate protocols of remote connection made with perlqt. Free Download
Geo::Coder::Google is a Perl module for Google Maps Geocoding API. Free Download
Latest Software
Popular Software
Favourite Software