1Net::DNS::RR::LOC(3)  User Contributed Perl Documentation Net::DNS::RR::LOC(3)
2
3
4

NAME

6       Net::DNS::RR::LOC - DNS LOC resource record
7

SYNOPSIS

9       "use Net::DNS::RR";
10

DESCRIPTION

12       Class for DNS Location (LOC) resource records.  See RFC 1876 for
13       details.
14

METHODS

16   version
17           print "version = ", $rr->version, "\n";
18
19       Returns the version number of the representation; programs should
20       always check this.  "Net::DNS" currently supports only version 0.
21
22   size
23           print "size = ", $rr->size, "\n";
24
25       Returns the diameter of a sphere enclosing the described entity, in
26       centimeters.
27
28   horiz_pre
29           print "horiz_pre = ", $rr->horiz_pre, "\n";
30
31       Returns the horizontal precision of the data, in centimeters.
32
33   vert_pre
34           print "vert_pre = ", $rr->vert_pre, "\n";
35
36       Returns the vertical precision of the data, in centimeters.
37
38   latitude
39           print "latitude = ", $rr->latitude, "\n";
40
41       Returns the latitude of the center of the sphere described by the
42       "size" method, in thousandths of a second of arc.  2**31 represents the
43       equator; numbers above that are north latitude.
44
45   longitude
46           print "longitude = ", $rr->longitude, "\n";
47
48       Returns the longitude of the center of the sphere described by the
49       "size" method, in thousandths of a second of arc.  2**31 represents the
50       prime meridian; numbers above that are east longitude.
51
52   latlon
53           ($lat, $lon) = $rr->latlon;
54           system("xearth", "-pos", "fixed $lat $lon");
55
56       Returns the latitude and longitude as floating-point degrees.  Positive
57       numbers represent north latitude or east longitude; negative numbers
58       represent south latitude or west longitude.
59
60   altitude
61           print "altitude = ", $rr->altitude, "\n";
62
63       Returns the altitude of the center of the sphere described by the
64       "size" method, in centimeters, from a base of 100,000m below the WGS 84
65       reference spheroid used by GPS.
66
68       Copyright (c) 1997-2002 Michael Fuhr.
69
70       Portions Copyright (c) 2002-2004 Chris Reinhardt.
71
72       All rights reserved.  This program is free software; you may
73       redistribute it and/or modify it under the same terms as Perl itself.
74       Some of the code and documentation is based on RFC 1876 and on code
75       contributed by Christopher Davis.
76

SEE ALSO

78       perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,
79       Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 1876
80
81
82
83perl v5.10.1                      2009-01-26              Net::DNS::RR::LOC(3)
Impressum