Scroll to navigation

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

NAME

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

SYNOPSIS

    use Net::DNS;
    $rr = Net::DNS::RR->new('name LOC latitude longitude altitude size hp vp');

DESCRIPTION

DNS geographical location (LOC) resource records.

METHODS

The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.

Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour.

latitude

    $latitude = $rr->latitude;
    ($deg, $min, $sec, $ns ) = $rr->latitude;
    $rr->latitude( 42.357990 );
    $rr->latitude( 42, 21, 28.764, 'N' );
    $rr->latitude( '42 21 28.764 N' );

When invoked in scalar context, latitude is returned in degrees, a negative ordinate being south of the equator.

When invoked in list context, latitude is returned as a list of separate degree, minute, and second values followed by N or S as appropriate.

Optional replacement values may be represented as single value, list or formatted string. Trailing zero values are optional.

longitude

    $longitude = $rr->longitude;
    ($deg, $min, $sec, $ew ) = $rr->longitude;
    $rr->longitude( -71.014338 );
    $rr->longitude( 71, 0, 51.617, 'W' );
    $rr->longitude( '71 0 51.617 W' );

When invoked in scalar context, longitude is returned in degrees, a negative ordinate being west of the prime meridian.

When invoked in list context, longitude is returned as a list of separate degree, minute, and second values followed by E or W as appropriate.

altitude

    $altitude = $rr->altitude;

Represents altitude, in metres, relative to the WGS 84 reference spheroid used by GPS.

size

    $size = $rr->size;

Represents the diameter, in metres, of a sphere enclosing the described entity.

hp

    $hp = $rr->hp;

Represents the horizontal precision of the data expressed as the diameter, in metres, of the circle of error.

vp

    $vp = $rr->vp;

Represents the vertical precision of the data expressed as the total spread, in metres, of the distribution of possible values.

latlon

    ($lat, $lon) = $rr->latlon;
    $rr->latlon($lat, $lon);

Representation of the latitude and longitude coordinate pair as signed floating-point degrees.

version

    $version = $rr->version;

Version of LOC protocol.

COPYRIGHT

Copyright (c)1997 Michael Fuhr.

Portions Copyright (c)2011 Dick Franks.

All rights reserved.

Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.

LICENSE

Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

SEE ALSO

perl, Net::DNS, Net::DNS::RR, RFC1876

2022-10-19 perl v5.32.1