.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Net::GPSD3::Return::TPV 3pm" .TH Net::GPSD3::Return::TPV 3pm "2011-03-24" "perl v5.14.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Net::GPSD3::Return::TPV \- Net::GPSD3 Return TPV Object .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& printf "Time: %s, Lat: %s, Lon: %s\en", $object\->time, $object\->lat, $object\->lon; .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Provides a Perl object interface to the Time-Velocity-Position (\s-1TVP\s0) object returned by the \s-1GPSD\s0 daemon. .PP Example \s-1JSON\s0 objects: .PP \fIProtocol 3.1 Versions\fR .IX Subsection "Protocol 3.1 Versions" .PP .Vb 12 \& { \& "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 \& } .Ve .PP \fIProtocol 3.4 Version\fR .IX Subsection "Protocol 3.4 Version" .PP .Vb 10 \& { \& "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 \& } .Ve .SH "METHODS PROPERTIES" .IX Header "METHODS PROPERTIES" .SS "class" .IX Subsection "class" Returns the object class .SS "string" .IX Subsection "string" Returns the \s-1JSON\s0 string .SS "parent" .IX Subsection "parent" Return the parent Net::GPSD object .SS "device" .IX Subsection "device" Name of originating device. .SS "tag" .IX Subsection "tag" Type tag associated with this \s-1GPS\s0 sentence; from an \s-1NMEA\s0 device this is just the \s-1NMEA\s0 sentence type. .SS "mode" .IX Subsection "mode" \&\s-1NMEA\s0 mode: \f(CW%d\fR, 0=no mode value yet seen, 1=no fix, 2=2D, 3=3D. .SS "time" .IX Subsection "time" Seconds since the Unix epoch, \s-1UTC\s0. The value may have a fractional part of up to .01sec precision. .PP Note: In 2.96 (protocol 3.4) the \s-1TPV\-\s0>time format changed from unix epoch to W3C, but this method hides that from the user. .SS "timestamp" .IX Subsection "timestamp" 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. .PP Note: I expect that in protocol 3.5 the value will be passed directly as \s-1TPV\-\s0>timestamp .SS "datetime" .IX Subsection "datetime" Returns a DateTime object .SS "lat" .IX Subsection "lat" Latitude in degrees: +/\- signifies West/East .SS "lon" .IX Subsection "lon" Longitude in degrees: +/\- signifies North/South. .SS "alt" .IX Subsection "alt" Altitude in meters. .SS "speed" .IX Subsection "speed" Speed over ground, meters per second. .SS "track" .IX Subsection "track" Course over ground, degrees from true north. .SS "climb" .IX Subsection "climb" Climb (postive) or sink (negative) rate, meters per second. .SS "ept" .IX Subsection "ept" Estimated timestamp error (%f, seconds, 95% confidence). .SS "epx" .IX Subsection "epx" .SS "epy" .IX Subsection "epy" Latitude error estimate in meters, 95% confidence. .SS "epv" .IX Subsection "epv" Estimated vertical error in meters, 95% confidence. .SS "eps" .IX Subsection "eps" Speed error estimate in meters/sec, 95% confifdence. .SS "epd" .IX Subsection "epd" Direction error estinmate in degrees, 95% confifdence. .SS "epc" .IX Subsection "epc" Climb/sink error estinmate in meters/sec, 95% confifdence. .SH "METHODS VALUE ADDED" .IX Header "METHODS VALUE ADDED" .SS "point" .IX Subsection "point" Returns a GPS::Point Object .SH "BUGS" .IX Header "BUGS" Log on \s-1RT\s0 and Send to gpsd-dev email list .SH "SUPPORT" .IX Header "SUPPORT" DavisNetworks.com supports all Perl applications including this package. .PP Try gpsd-dev email list .SH "AUTHOR" .IX Header "AUTHOR" .Vb 5 \& Michael R. Davis \& CPAN ID: MRDVT \& STOP, LLC \& domain=>michaelrdavis,tld=>com,account=>perl \& http://www.stopllc.com/ .Ve .SH "COPYRIGHT" .IX Header "COPYRIGHT" This program is free software licensed under the... .PP .Vb 1 \& The BSD License .Ve .PP The full text of the license can be found in the \s-1LICENSE\s0 file included with this module. .SH "SEE ALSO" .IX Header "SEE ALSO" Net::GPSD3, GPS::Point, Net::GPSD3::Return::Unknown