Net::GPSD::Point(3)
๐ Net::GPSD::Point ๐
okay bestie, so this is Net::GPSD::Point, straight out of the User Contributed Perl Documentation corner of the manual-page universe. It's giving "I hold one (1) GPS point and I am very normal about it." Let's get into it. ๐ฐ๏ธโจ
โจ NAME โจ
Net::GPSD::Point โ bestie, it's an object interface for a gps point. That's the whole thing. One point. Very demure, very mindful. ๐
๐ธ SYNOPSIS ๐ธ
So the main-character way to do this is through Net::GPSD, like:
use Net::GPSD;
$obj=Net::GPSD->new(host=>"localhost",
port=>"2947");
my $point=$obj->get; #$point is a Net::GPSD::Point object
print $point->latlon. "\n"; #use a "." here to force latlon to a scalar
not me needing that"."to forcelatloninto a scalar ๐ the code literally comments it for you. respect.
OR โ if you're the DIY type and want Net::GPSD::Point objects in your own code:
use Net::GPSD::Point;
my $point=Net::GPSD::Point->new();
$point->lat(39.5432524);
$point->lon(-77.243532);
print $point->latlon. "\n";
slay. build your own point, no gpsd required. ๐ฆ
๐ DESCRIPTION ๐
bestie the original page literally leaves this section empty. it's just vibing there. no notes. we keep it because we keep everything. ๐
๐ง CONSTRUCTOR ๐ง
๐ซถ new
my $point=Net::GPSD::Point->new();
That's it. That's the constructor. Make a point. ๐
โญ METHODS โญ
๐ initialize
It's listed, bestie. That's what we know. ๐
๐ fix
Returns true if mode is fixed โ and the logic behind it is based on the gpsd M[0] or O[14]. So yes, it's doing detective work for you.
my $fix=$point->fix;
๐ฅ status
Returns the DGPS status. (this maps to the gpsd S command's first data element, iykyk)
my $status=$point->status;
๐ datetime
Returns datetime. (maps to the gpsd D command's first data element)
my $datetime=$point->datetime;
๐ท๏ธ tag
Returns a tag identifying the last sentence received. (maps to the gpsd O command's first data element)
my $tag=$point->tag;
โณ time
Returns seconds since the Unix epoch, UTC. May have a fractional part. (maps to the gpsd O command's second data element)
my $time=$point->time;
๐ญ errortime
Returns the estimated timestamp error (%f, seconds, 95% confidence). (maps to the gpsd O command's third data element)
my $errortime=$point->errortime;
๐บ๏ธ latitude aka lat
Returns Latitude as in the P report (%f, degrees). (maps to the gpsd O command's fourth data element)
my $lat=$point->lat;
my $lat=$point->latitude;
two names, same energy. pick your fave. ๐
๐งญ longitude aka lon
Returns Longitude as in the P report (%f, degrees). (maps to the gpsd O command's fifth data element)
my $lon=$point->lon;
my $lon=$point->longitude;
๐ latlon
Returns Latitude, Longitude as an array in array context, and as a space joined string in scalar context. the duality. the range. ๐
my @latlon=$point->latlon;
my $latlon=$point->latlon;
โฐ๏ธ altitude aka alt
Returns the current altitude, meters above mean sea level. (maps to the gpsd O command's sixth data element)
my $alt=$point->alt;
my $alt=$point->altitude;
๐ errorhorizontal
Returns the Horizontal error estimate as in the E report (%f, meters). (maps to the gpsd O command's seventh data element)
my $errorhorizontal=$point->errorhorizontal;
๐ errorvertical
Returns the Vertical error estimate as in the E report (%f, meters). (maps to the gpsd O command's eighth data element)
my $errorvertical=$point->errorvertical;
๐งญ heading
Returns Track as in the T report (%f, degrees). (maps to the gpsd O command's ninth data element)
my $heading=$point->heading;
๐ speed
Returns speed (%f, meters/sec). Note: older versions of the O command reported this field in knots. (maps to the gpsd O command's tenth data element)
my $speed=$point->speed;
girl watch out for the unit change, that's a glow-up and a jump-scare at the same time ๐
๐ชข speed_knots
Returns speed in knots.
my $speed=$point->speed_knots;
๐ climb
Returns Vertical velocity as in the U report (%f, meters/sec). (maps to the gpsd O command's 11th data element)
my $climb=$point->climb;
๐งฎ errorheading
Returns the Error estimate for course (%f, degrees, 95% confidence). (maps to the gpsd O command's 12th data element)
my $errorheading=$point->errorheading;
๐ errorspeed
Returns the Error estimate for speed (%f, meters/sec, 95% confidence). Note: older versions of the O command reported this field in knots. (maps to the gpsd O command's 13th data element)
my $errorspeed=$point->errorspeed;
๐ช errorclimb
Returns the Estimated error for climb/sink (%f, meters/sec, 95% confidence). (maps to the gpsd O command's 14th data element)
my $errorclimb=$point->errorclimb;
๐ข mode
Returns The NMEA mode. and the values are:
0= no mode value yet seen1= no fix2= 2D (no altitude)3= 3D (with altitude)
(maps to the gpsd M command's first data element)
my $mode=$point->mode;
โ q2u
It's here. It's listed. The docs say nothing else. Mystery method, we don't know her. ๐
๐ LIMITATIONS ๐
So the object lets users set values for each method โ but most likely, this is not what most users will want. it's a trap, bestie. a cute little trap. ๐ชค
๐ซ SUPPORT ๐ซ
DavisNetworks.com supports all Perl applications including this package. they got you. ๐ซถ
๐ BUGS ๐
Email the author and submit to RT. that's the vibe. go tell them. ๐ง
๐ฌ EXAMPLES ๐ฌ
bestie the section header is here, and the actual examples are the code snippets up in the SYNOPSIS. we keep the header because we keep everything. โจ
๐ AUTHOR ๐
Michael R. Davis, qw/gpsd michaelrdavis com/ โ the icon, the legend, the moment. ๐
๐ LICENSE ๐
Copyright (c) 2006 Michael R. Davis (mrdvt92)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
๐ SEE ALSO ๐
Geo::PointNet::GPSD
and that's the whole page bestie!! ๐ this came to you from perl v5.42.0, dated 2025-07-25, and it's living its life as a User Contributed Perl Documentation entry for Net::GPSD::Point(3). no cap, go map some points. ๐ฆ๐๐
๐ฆ where this page comes from
- fedora 43: perl-Net-GPSD 0.39-42.fc43 ยท GPL-1.0-or-later OR Artistic-1.0-Perl
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms