1Net::DNS::RR::LOC(3) User Contributed Perl Documentation Net::DNS::RR::LOC(3)
2
3
4
6 Net::DNS::RR::LOC - DNS LOC resource record
7
9 use Net::DNS;
10 $rr = new Net::DNS::RR('name LOC latitude longitude altitude size hp vp');
11
13 DNS geographical location (LOC) resource records.
14
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->latitude( 71.014338 );
46 $rr->latitude( 71, 0, 51.617, 'W' );
47 $rr->latitude( '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
83 Returns the latitude and longitude coordinate pair as signed floating-
84 point degrees.
85
86 version
87 $version = $rr->version;
88
89 Version of LOC protocol.
90
92 Copyright (c)1997 Michael Fuhr.
93
94 Portions Copyright (c)2011 Dick Franks.
95
96 Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
97
98 All rights reserved.
99
100 This program is free software; you may redistribute it and/or modify it
101 under the same terms as Perl itself.
102
104 perl, Net::DNS, Net::DNS::RR, RFC1876
105
106
107
108perl v5.16.3 2012-12-28 Net::DNS::RR::LOC(3)