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;
10           $rr = new Net::DNS::RR('name LOC latitude longitude altitude size hp vp');
11

DESCRIPTION

13       DNS geographical location (LOC) resource records.
14

METHODS

16       The available methods are those inherited from the base class augmented
17       by the type-specific methods defined in this package.
18
19       Use of undocumented package features or direct access to internal data
20       structures is discouraged and could result in program termination or
21       other unpredictable behaviour.
22
23   latitude
24           $latitude = $rr->latitude;
25           ($deg, $min, $sec, $ns ) = $rr->latitude;
26
27           $rr->latitude( 42.357990 );
28           $rr->latitude( 42, 21, 28.764, 'N' );
29           $rr->latitude( '42 21 28.764 N' );
30
31       When invoked in scalar context, latitude is returned in degrees, a
32       negative ordinate being south of the equator.
33
34       When invoked in list context, latitude is returned as a list of
35       separate degree, minute, and second values followed by N or S as
36       appropriate.
37
38       Optional replacement values may be represented as single value, list or
39       formatted string. Trailing zero values are optional.
40
41   longitude
42           $longitude = $rr->longitude;
43           ($deg, $min, $sec, $ew ) = $rr->longitude;
44
45           $rr->longitude( -71.014338 );
46           $rr->longitude( 71, 0, 51.617, 'W' );
47           $rr->longitude( '71 0 51.617 W' );
48
49       When invoked in scalar context, longitude is returned in degrees, a
50       negative ordinate being west of the prime meridian.
51
52       When invoked in list context, longitude is returned as a list of
53       separate degree, minute, and second values followed by E or W as
54       appropriate.
55
56   altitude
57           $altitude = $rr->altitude;
58
59       Represents altitude, in metres, relative to the WGS 84 reference
60       spheroid used by GPS.
61
62   size
63           $size = $rr->size;
64
65       Represents the diameter, in metres, of a sphere enclosing the described
66       entity.
67
68   hp
69           $hp = $rr->hp;
70
71       Represents the horizontal precision of the data expressed as the
72       diameter, in metres, of the circle of error.
73
74   vp
75           $vp = $rr->vp;
76
77       Represents the vertical precision of the data expressed as the total
78       spread, in metres, of the distribution of possible values.
79
80   latlon
81           ($lat, $lon) = $rr->latlon;
82           $rr->latlon($lat, $lon);
83
84       Representation of the latitude and longitude coordinate pair as signed
85       floating-point degrees.
86
87   version
88           $version = $rr->version;
89
90       Version of LOC protocol.
91
93       Copyright (c)1997 Michael Fuhr.
94
95       Portions Copyright (c)2011 Dick Franks.
96
97       All rights reserved.
98
99       Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
100

LICENSE

102       Permission to use, copy, modify, and distribute this software and its
103       documentation for any purpose and without fee is hereby granted,
104       provided that the above copyright notice appear in all copies and that
105       both that copyright notice and this permission notice appear in
106       supporting documentation, and that the name of the author not be used
107       in advertising or publicity pertaining to distribution of the software
108       without specific prior written permission.
109
110       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
111       OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
112       MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
113       IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
114       CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
115       TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
116       SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
117

SEE ALSO

119       perl, Net::DNS, Net::DNS::RR, RFC1876
120
121
122
123perl v5.28.1                      2018-11-14              Net::DNS::RR::LOC(3)
Impressum