GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::GPSD3::Return::TPV(3) User Contributed Perl Documentation Net::GPSD3::Return::TPV(3)

Net::GPSD3::Return::TPV - Net::GPSD3 Return TPV Object

  printf "Time: %s, Lat: %s, Lon: %s\n", $object->time, $object->lat, $object->lon;

Provides a Perl object interface to the Time-Velocity-Position (TVP) object returned by the GPSD daemon.

Example JSON objects:

Protocol 3.1 Versions

  {
    "class":"TPV",
    "tag":"MID2",
    "device":"/dev/ttyUSB0",
    "time":1253593085.470,
    "ept":0.005,
    "lat":38.88945123,
    "lon":-77.03522143,
    "track":171.7249,
    "speed":0.467,
    "mode":2
  }

  {
    "class":"TPV",
    "tag":"MID2",
    "device":"/dev/ttyUSB0",
    "time":1253593667.430,
    "ept":0.005,
    "lat":38.88945123,
    "lon":-77.03522143,
    "alt":146.911,
    "track":180.0000,
    "speed":0.194,
    "climb":-0.157,
    "mode":3
  }

Protocol 3.4 Version

  {
    "class":"TPV",
    "tag":"0x0106",
    "device":"/dev/cuaU0",
    "time":"2011-03-20T06:51:59.12Z",
    "ept":0.005,
    "lat":37.371427205,
    "lon":-122.015179890,
    "alt":25.789,
    "epx":1.926,
    "epy":1.808,
    "epv":6.497,
    "track":0.0000,
    "speed":0.000,
    "climb":0.000,
    "eps":3.85,
    "mode":3
  }

Returns the object class

Returns the JSON string

Return the parent Net::GPSD object

Name of originating device.

Type tag associated with this GPS sentence; from an NMEA device this is just the NMEA sentence type.

NMEA mode: %d, 0=no mode value yet seen, 1=no fix, 2=2D, 3=3D.

Seconds since the Unix epoch, UTC. The value may have a fractional part of up to .01sec precision.

Note: In 2.96 (protocol 3.4) the TPV->time format changed from unix epoch to W3C, but this method hides that from the user.

W3C formated timestamp value either directly from the protocol >= 3.4 or calculated < 3.4. The value may have a fractional part of up to .01sec precision.

Note: I expect that in protocol 3.5 the value will be passed directly as TPV->timestamp

Returns a DateTime object

Latitude in degrees: +/- signifies West/East

Longitude in degrees: +/- signifies North/South.

Altitude in meters.

Speed over ground, meters per second.

Course over ground, degrees from true north.

Climb (postive) or sink (negative) rate, meters per second.

Estimated timestamp error (%f, seconds, 95% confidence).

Latitude error estimate in meters, 95% confidence.

Estimated vertical error in meters, 95% confidence.

Speed error estimate in meters/sec, 95% confifdence.

Direction error estinmate in degrees, 95% confifdence.

Climb/sink error estinmate in meters/sec, 95% confifdence.

Returns a GPS::Point Object

Log on RT and Send to gpsd-dev email list

DavisNetworks.com supports all Perl applications including this package.

Try gpsd-dev email list

  Michael R. Davis
  CPAN ID: MRDVT
  STOP, LLC
  domain=>michaelrdavis,tld=>com,account=>perl
  http://www.stopllc.com/

This program is free software licensed under the...

  The BSD License

The full text of the license can be found in the LICENSE file included with this module.

Net::GPSD3, GPS::Point, Net::GPSD3::Return::Unknown
2011-03-24 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.