{
    "mode": "perldoc",
    "parameter": "Net::DNS::RR::LOC",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Net%3A%3ADNS%3A%3ARR%3A%3ALOC/json",
    "generated": "2026-06-15T14:52:45Z",
    "synopsis": "use Net::DNS;\n$rr = Net::DNS::RR->new('name LOC latitude longitude altitude size hp vp');",
    "sections": {
        "NAME": {
            "content": "Net::DNS::RR::LOC - DNS LOC resource record\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Net::DNS;\n$rr = Net::DNS::RR->new('name LOC latitude longitude altitude size hp vp');\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "DNS geographical location (LOC) resource records.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "The available methods are those inherited from the base class augmented by the type-specific\nmethods defined in this package.\n\nUse of undocumented package features or direct access to internal data structures is discouraged\nand could result in program termination or other unpredictable behaviour.\n\nlatitude\n$latitude = $rr->latitude;\n($deg, $min, $sec, $ns ) = $rr->latitude;\n\n$rr->latitude( 42.357990 );\n$rr->latitude( 42, 21, 28.764, 'N' );\n$rr->latitude( '42 21 28.764 N' );\n\nWhen invoked in scalar context, latitude is returned in degrees, a negative ordinate being south\nof the equator.\n\nWhen invoked in list context, latitude is returned as a list of separate degree, minute, and\nsecond values followed by N or S as appropriate.\n\nOptional replacement values may be represented as single value, list or formatted string.\nTrailing zero values are optional.\n\nlongitude\n$longitude = $rr->longitude;\n($deg, $min, $sec, $ew ) = $rr->longitude;\n\n$rr->longitude( -71.014338 );\n$rr->longitude( 71, 0, 51.617, 'W' );\n$rr->longitude( '71 0 51.617 W' );\n\nWhen invoked in scalar context, longitude is returned in degrees, a negative ordinate being west\nof the prime meridian.\n\nWhen invoked in list context, longitude is returned as a list of separate degree, minute, and\nsecond values followed by E or W as appropriate.\n\naltitude\n$altitude = $rr->altitude;\n\nRepresents altitude, in metres, relative to the WGS 84 reference spheroid used by GPS.\n\nsize\n$size = $rr->size;\n\nRepresents the diameter, in metres, of a sphere enclosing the described entity.\n\nhp\n$hp = $rr->hp;\n\nRepresents the horizontal precision of the data expressed as the diameter, in metres, of the\ncircle of error.\n\nvp\n$vp = $rr->vp;\n\nRepresents the vertical precision of the data expressed as the total spread, in metres, of the\ndistribution of possible values.\n\nlatlon\n($lat, $lon) = $rr->latlon;\n$rr->latlon($lat, $lon);\n\nRepresentation of the latitude and longitude coordinate pair as signed floating-point degrees.\n\nversion\n$version = $rr->version;\n\nVersion of LOC protocol.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (c)1997 Michael Fuhr.\n\nPortions Copyright (c)2011 Dick Franks.\n\nAll rights reserved.\n\nPackage template (c)2009,2012 O.M.Kolkman and R.W.Franks.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Permission to use, copy, modify, and distribute this software and its documentation for any\npurpose and without fee is hereby granted, provided that the original copyright notices appear\nin all copies and that both copyright notice and this permission notice appear in supporting\ndocumentation, and that the name of the author not be used in advertising or publicity\npertaining to distribution of the software without specific prior written permission.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING\nBUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "perl, Net::DNS, Net::DNS::RR, RFC1876\n",
            "subsections": []
        }
    },
    "summary": "Net::DNS::RR::LOC - DNS LOC resource record",
    "flags": [],
    "examples": [],
    "see_also": []
}