<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-netmod-geo-location-11" indexInclude="true" ipr="trust200902" number="9179" prepTime="2022-02-11T12:45:51" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-netmod-geo-location-11" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9179" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="A YANG Grouping for Geographic Locations">A YANG Grouping for Geographic Locations</title>
    <seriesInfo name="RFC" value="9179" stream="IETF"/>
    <author initials="C." surname="Hopps" fullname="Christian Hopps">
      <organization showOnFrontPage="true">LabN Consulting, L.L.C.</organization>
      <address>
        <email>chopps@chopps.org</email>
      </address>
    </author>
    <date month="02" year="2022"/>
    <keyword>geolocation</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines a generic geographical location YANG grouping.
The geographical location grouping is intended to be used in YANG
data models for specifying a location on or in reference to Earth or any
other astronomical object.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9179" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2022 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-terminology">Terminology</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-geolocation-object">The Geolocation Object</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-frame-of-reference">Frame of Reference</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-location">Location</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.3">
                <t indent="0" pn="section-toc.1-1.2.2.3.1"><xref derivedContent="2.3" format="counter" sectionFormat="of" target="section-2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-motion">Motion</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.4">
                <t indent="0" pn="section-toc.1-1.2.2.4.1"><xref derivedContent="2.4" format="counter" sectionFormat="of" target="section-2.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-nested-locations">Nested Locations</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.5">
                <t indent="0" pn="section-toc.1-1.2.2.5.1"><xref derivedContent="2.5" format="counter" sectionFormat="of" target="section-2.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-non-location-attributes">Non-location Attributes</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.6">
                <t indent="0" pn="section-toc.1-1.2.2.6.1"><xref derivedContent="2.6" format="counter" sectionFormat="of" target="section-2.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-tree">Tree</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module">YANG Module</xref></t>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iso-67092008-conformance">ISO 6709:2008 Conformance</xref></t>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-usability">Usability</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2">
              <li pn="section-toc.1-1.5.2.1">
                <t indent="0" pn="section-toc.1-1.5.2.1.1"><xref derivedContent="5.1" format="counter" sectionFormat="of" target="section-5.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-portability">Portability</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.1.2">
                  <li pn="section-toc.1-1.5.2.1.2.1">
                    <t indent="0" pn="section-toc.1-1.5.2.1.2.1.1"><xref derivedContent="5.1.1" format="counter" sectionFormat="of" target="section-5.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ietf-uri-value">IETF URI Value</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.1.2.2">
                    <t indent="0" pn="section-toc.1-1.5.2.1.2.2.1"><xref derivedContent="5.1.2" format="counter" sectionFormat="of" target="section-5.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-w3c">W3C</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.1.2.3">
                    <t indent="0" pn="section-toc.1-1.5.2.1.2.3.1"><xref derivedContent="5.1.3" format="counter" sectionFormat="of" target="section-5.1.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-geography-markup-language-g">Geography Markup Language (GML)</xref></t>
                  </li>
                  <li pn="section-toc.1-1.5.2.1.2.4">
                    <t indent="0" pn="section-toc.1-1.5.2.1.2.4.1"><xref derivedContent="5.1.4" format="counter" sectionFormat="of" target="section-5.1.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-kml">KML</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t indent="0" pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-geodetic-system-values-regi">Geodetic System Values Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.2">
                <t indent="0" pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-updates-to-the-ietf-xml-reg">Updates to the IETF XML Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.3">
                <t indent="0" pn="section-toc.1-1.6.2.3.1"><xref derivedContent="6.3" format="counter" sectionFormat="of" target="section-6.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-updates-to-the-yang-module-">Updates to the YANG Module Names Registry</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="9" format="counter" sectionFormat="of" target="section-9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-examples">Examples</xref></t>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-address">Author's Address</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">In many applications, we would like to specify the location of something
geographically. Some examples of locations in networking might be the location
of data centers, a rack in an Internet exchange point, a router, a firewall, a
port on some device, or it could be the endpoints of a fiber, or perhaps the
failure point along a fiber.</t>
      <t indent="0" pn="section-1-2">Additionally, while this location is typically relative to Earth,
it does not need to be. Indeed, it is easy to imagine a network or
device located on the Moon, on Mars, on Enceladus (the moon of
Saturn), or even on a comet (e.g., 67p/churyumov-gerasimenko).</t>
      <t indent="0" pn="section-1-3">Finally, one can imagine defining locations using different frames
of reference or even alternate systems (e.g., simulations or
virtual realities).</t>
      <t indent="0" pn="section-1-4">This document defines a '<tt>geo-location</tt>' YANG grouping that allows for
all the above data to be captured.</t>
      <t indent="0" pn="section-1-5">This specification conforms to <xref target="ISO.6709.2008" format="default" sectionFormat="of" derivedContent="ISO.6709.2008"/>.</t>
      <t indent="0" pn="section-1-6">The YANG data model described in this document conforms to the
Network Management Datastore Architecture (NMDA) defined in <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>.</t>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-1.1">
        <name slugifiedName="name-terminology">Terminology</name>
        <t indent="0" pn="section-1.1-1">
    The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
    "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
    described in BCP 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> 
    when, and only when, they appear in all capitals, as shown here.
        </t>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-2">
      <name slugifiedName="name-the-geolocation-object">The Geolocation Object</name>
      <section anchor="sec-frame-of-reference" numbered="true" removeInRFC="false" toc="include" pn="section-2.1">
        <name slugifiedName="name-frame-of-reference">Frame of Reference</name>
        <t indent="0" pn="section-2.1-1">The frame of reference ('<tt>reference-frame</tt>') defines what the
location values refer to and their meaning. The referred-to
object can be any astronomical body. It could be a planet such as
Earth or Mars, a moon such as Enceladus, an asteroid such as
Ceres, or even a comet such as 1P/Halley. This value is specified
in '<tt>astronomical-body</tt>' and is defined by the <eref target="http://www.iau.org" brackets="angle">International
Astronomical Union</eref>. The default '<tt>astronomical-body</tt>' value is
'<tt>earth</tt>'.</t>
        <t indent="0" pn="section-2.1-2">In addition to identifying the astronomical body, we also need to define
the meaning of the coordinates (e.g., latitude and longitude) and the
definition of 0-height. This is done with a '<tt>geodetic-datum</tt>' value. The
default value for '<tt>geodetic-datum</tt>' is '<tt>wgs-84</tt>' (i.e., the World
Geodetic System <xref target="WGS84" format="default" sectionFormat="of" derivedContent="WGS84"/>), which is used by the Global
Positioning System (GPS) among many others. We define an IANA registry for
specifying standard values for the '<tt>geodetic-datum</tt>'.</t>
        <t indent="0" pn="section-2.1-3">In addition to the '<tt>geodetic-datum</tt>' value, we allow overriding the
coordinate and height accuracy using '<tt>coord-accuracy</tt>' and
'<tt>height-accuracy</tt>', respectively. When specified, these values
override the defaults implied by the '<tt>geodetic-datum</tt>' value.</t>
        <t indent="0" pn="section-2.1-4">Finally, we define an optional feature that allows for changing the system
for which the above values are defined. This optional feature adds an
'<tt>alternate-system</tt>' value to the reference frame.  This value is
normally not present, which implies the natural universe is the system. The use
of this value is intended to allow for creating virtual realities or perhaps
alternate coordinate systems. The definition of alternate systems is outside
the scope of this document.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-2.2">
        <name slugifiedName="name-location">Location</name>
        <t indent="0" pn="section-2.2-1">This is the location on, or relative to, the astronomical object.  It is
specified using two or three coordinate values. These values are given either as
'<tt>latitude</tt>', '<tt>longitude</tt>', and an optional '<tt>height</tt>', or as
Cartesian coordinates of '<tt>x</tt>', '<tt>y</tt>', and '<tt>z</tt>'. For the
standard location choice, '<tt>latitude</tt>' and '<tt>longitude</tt>' are
specified as decimal degrees, and the '<tt>height</tt>' value is in fractions of
meters. For the Cartesian choice, '<tt>x</tt>', '<tt>y</tt>', and '<tt>z</tt>' are
in fractions of meters. In both choices, the exact meanings of all the values
are defined by the '<tt>geodetic-datum</tt>' value in <xref target="sec-frame-of-reference" format="default" sectionFormat="of" derivedContent="Section 2.1"/>.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-2.3">
        <name slugifiedName="name-motion">Motion</name>
        <t indent="0" pn="section-2.3-1">Support is added for objects in relatively stable motion. For objects in
relatively stable motion, the grouping provides a three-dimensional vector
value. The components of the vector are '<tt>v-north</tt>', '<tt>v-east</tt>', and
'<tt>v-up</tt>', which are all given in fractional meters per second. The values
'<tt>v-north</tt>' and '<tt>v-east</tt>' are relative to true north as defined by
the reference frame for the astronomical body; '<tt>v-up</tt>' is perpendicular
to the plane defined by '<tt>v-north</tt>' and '<tt>v-east</tt>', and is pointed
away from the center of mass.</t>
        <t indent="0" pn="section-2.3-2">To derive the two-dimensional heading and speed, one would use the
following formulas:</t>
        <artwork align="left" pn="section-2.3-3">
              ,------------------------------
    speed =  V  v_{north}^{2} + v_{east}^{2}

    heading = arctan(v_{east} / v_{north}) 
</artwork>
        <t indent="0" pn="section-2.3-4">For some applications that demand high accuracy and where the data is
infrequently updated, this velocity vector can track very slow movement such
as continental drift.</t>
        <t indent="0" pn="section-2.3-5">Tracking more complex forms of motion is outside the scope of
this work. The intent of the grouping being defined here is to
identify where something is located, and generally this is
expected to be somewhere on, or relative to, Earth (or another
astronomical body).

At least two options are available to YANG data models that wish to use this
grouping with objects that are changing location frequently in non-simple
ways.  A data model can either add additional motion data to its model
directly, or if the application allows, it can require more frequent queries
to keep the location data current.

</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-2.4">
        <name slugifiedName="name-nested-locations">Nested Locations</name>
        <t indent="0" pn="section-2.4-1">When locations are nested (e.g., a building may have a location that houses
routers that also have locations), the module using this grouping is free to
indicate in its definition that the '<tt>reference-frame</tt>' is inherited from
the containing object so that the '<tt>reference-frame</tt>' need not be
repeated in every instance of location data.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-2.5">
        <name slugifiedName="name-non-location-attributes">Non-location Attributes</name>
        <t indent="0" pn="section-2.5-1">During the development of this module, the question of whether it
would support data such as orientation arose. These types of
attributes are outside the scope of this grouping because they do
not deal with a location but rather describe something more about
the object that is at the location. Module authors are free to
add these non-location attributes along with their use of this
location grouping.</t>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-2.6">
        <name slugifiedName="name-tree">Tree</name>
        <t indent="0" pn="section-2.6-1">The following is the YANG tree diagram <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> for the
geo-location grouping.</t>
        <sourcecode type="yangtree" markers="false" pn="section-2.6-2">
  module: ietf-geo-location
    grouping geo-location:
      +-- geo-location
         +-- reference-frame
         |  +-- alternate-system?    string {alternate-systems}?
         |  +-- astronomical-body?   string
         |  +-- geodetic-system
         |     +-- geodetic-datum?    string
         |     +-- coord-accuracy?    decimal64
         |     +-- height-accuracy?   decimal64
         +-- (location)?
         |  +--:(ellipsoid)
         |  |  +-- latitude?    decimal64
         |  |  +-- longitude?   decimal64
         |  |  +-- height?      decimal64
         |  +--:(cartesian)
         |     +-- x?           decimal64
         |     +-- y?           decimal64
         |     +-- z?           decimal64
         +-- velocity
         |  +-- v-north?   decimal64
         |  +-- v-east?    decimal64
         |  +-- v-up?      decimal64
         +-- timestamp?         yang:date-and-time
         +-- valid-until?       yang:date-and-time
</sourcecode>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-3">
      <name slugifiedName="name-yang-module">YANG Module</name>
      <t indent="0" pn="section-3-1">This model imports Common YANG Data Types <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/>. It uses YANG
version 1.1 <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>.</t>
      <sourcecode name="ietf-geo-location@2022-02-11.yang" type="yang" markers="true" pn="section-3-2">
module ietf-geo-location {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-geo-location";
  prefix geo;
  import ietf-yang-types {
    prefix yang;
    reference "RFC 6991: Common YANG Data Types";
  }

  organization
    "IETF NETMOD Working Group (NETMOD)";
  contact
   "WG Web:   &lt;https://datatracker.ietf.org/wg/netmod/&gt;
    WG List:  &lt;mailto:netmod@ietf.org&gt;

    Editor:   Christian Hopps
              &lt;mailto:chopps@chopps.org&gt;";

  description
    "This module defines a grouping of a container object for
     specifying a location on or around an astronomical object (e.g.,
     'earth').

     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
     NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
     'MAY', and 'OPTIONAL' in this document are to be interpreted as
     described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
     they appear in all capitals, as shown here.

     Copyright (c) 2022 IETF Trust and the persons identified as
     authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms,
     with or without modification, is permitted pursuant to,
     and subject to the license terms contained in, the
     Revised BSD License set forth in Section 4.c of the
     IETF Trust's Legal Provisions Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC 9179
     (https://www.rfc-editor.org/info/rfc9179); see the RFC itself
     for full legal notices.";

  revision 2022-02-11 {
    description
      "Initial Revision";
    reference
      "RFC 9179: A YANG Grouping for Geographic Locations";
  }

  feature alternate-systems {
    description
      "This feature means the device supports specifying locations
       using alternate systems for reference frames.";
  }

  grouping geo-location {
    description
      "Grouping to identify a location on an astronomical object.";

    container geo-location {
      description
        "A location on an astronomical body (e.g., 'earth')
         somewhere in a universe.";

      container reference-frame {
        description
          "The Frame of Reference for the location values.";

        leaf alternate-system {
          if-feature "alternate-systems";
          type string;
          description
            "The system in which the astronomical body and
             geodetic-datum is defined.  Normally, this value is not
             present and the system is the natural universe; however,
             when present, this value allows for specifying alternate
             systems (e.g., virtual realities).  An alternate-system
             modifies the definition (but not the type) of the other
             values in the reference frame.";
        }
        leaf astronomical-body {
          type string {
            pattern '[ -@\[-\^_-~]*';
          }
          default "earth";
          description
            "An astronomical body as named by the International
             Astronomical Union (IAU) or according to the alternate
             system if specified.  Examples include 'sun' (our star),
             'earth' (our planet), 'moon' (our moon), 'enceladus' (a
             moon of Saturn), 'ceres' (an asteroid), and
             '67p/churyumov-gerasimenko (a comet).  The ASCII value
             SHOULD have uppercase converted to lowercase and not
             include control characters (i.e., values 32..64, and
             91..126).  Any preceding 'the' in the name SHOULD NOT be
             included.";
          reference
            "https://www.iau.org/";
        }
        container geodetic-system {
          description
            "The geodetic system of the location data.";
          leaf geodetic-datum {
            type string {
              pattern '[ -@\[-\^_-~]*';
            }
            description
              "A geodetic-datum defining the meaning of latitude,
               longitude, and height.  The default when the
               astronomical body is 'earth' is 'wgs-84', which is
               used by the Global Positioning System (GPS).  The
               ASCII value SHOULD have uppercase converted to
               lowercase and not include control characters
               (i.e., values 32..64, and 91..126).  The IANA registry
               further restricts the value by converting all spaces
               (' ') to dashes ('-').
               The specification for the geodetic-datum indicates
               how accurately it models the astronomical body in
               question, both for the 'horizontal'
               latitude/longitude coordinates and for height
               coordinates.";
            reference
              "RFC 9179: A YANG Grouping for Geographic Locations,
               Section 6.1";
          }
          leaf coord-accuracy {
            type decimal64 {
              fraction-digits 6;
            }
            description
              "The accuracy of the latitude/longitude pair for
               ellipsoidal coordinates, or the X, Y, and Z components
               for Cartesian coordinates.  When coord-accuracy is
               specified, it indicates how precisely the coordinates
               in the associated list of locations have been
               determined with respect to the coordinate system
               defined by the geodetic-datum.  For example, there
               might be uncertainty due to measurement error if an
               experimental measurement was made to determine each
               location.";
          }
          leaf height-accuracy {
            type decimal64 {
              fraction-digits 6;
            }
            units "meters";
            description
              "The accuracy of the height value for ellipsoidal
               coordinates; this value is not used with Cartesian
               coordinates.  When height-accuracy is specified, it
               indicates how precisely the heights in the
               associated list of locations have been determined
               with respect to the coordinate system defined by the
               geodetic-datum.  For example, there might be
               uncertainty due to measurement error if an
               experimental measurement was made to determine each
               location.";
          }
        }
      }
      choice location {
        description
          "The location data either in latitude/longitude or
           Cartesian values";
        case ellipsoid {
          leaf latitude {
            type decimal64 {
              fraction-digits 16;
            }
            units "decimal degrees";
            description
              "The latitude value on the astronomical body.  The
               definition and precision of this measurement is
               indicated by the reference-frame.";
          }
          leaf longitude {
            type decimal64 {
              fraction-digits 16;
            }
            units "decimal degrees";
            description
              "The longitude value on the astronomical body.  The
               definition and precision of this measurement is
               indicated by the reference-frame.";
          }
          leaf height {
            type decimal64 {
              fraction-digits 6;
            }
            units "meters";
            description
              "Height from a reference 0 value.  The precision and
               '0' value is defined by the reference-frame.";
          }
        }
        case cartesian {
          leaf x {
            type decimal64 {
              fraction-digits 6;
            }
            units "meters";
            description
              "The X value as defined by the reference-frame.";
          }
          leaf y {
            type decimal64 {
              fraction-digits 6;
            }
            units "meters";
            description
              "The Y value as defined by the reference-frame.";
          }
          leaf z {
            type decimal64 {
              fraction-digits 6;
            }
            units "meters";
            description
              "The Z value as defined by the reference-frame.";
          }
        }
      }
      container velocity {
        description
          "If the object is in motion, the velocity vector describes
           this motion at the time given by the timestamp.  For a
           formula to convert these values to speed and heading, see
           RFC 9179.";
        reference
          "RFC 9179: A YANG Grouping for Geographic Locations";

        leaf v-north {
          type decimal64 {
            fraction-digits 12;
          }
          units "meters per second";
          description
            "v-north is the rate of change (i.e., speed) towards
             true north as defined by the geodetic-system.";
        }

        leaf v-east {
          type decimal64 {
            fraction-digits 12;
          }
          units "meters per second";
          description
            "v-east is the rate of change (i.e., speed) perpendicular
             to the right of true north as defined by
             the geodetic-system.";
        }

        leaf v-up {
          type decimal64 {
            fraction-digits 12;
          }
          units "meters per second";
          description
            "v-up is the rate of change (i.e., speed) away from the
             center of mass.";
        }
      }
      leaf timestamp {
        type yang:date-and-time;
        description
          "Reference time when location was recorded.";
      }
      leaf valid-until {
        type yang:date-and-time;
        description
          "The timestamp for which this geo-location is valid until.
           If unspecified, the geo-location has no specific
           expiration time.";
      }
    }
  }
}
</sourcecode>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-4">
      <name slugifiedName="name-iso-67092008-conformance">ISO 6709:2008 Conformance</name>
      <t indent="0" pn="section-4-1"><xref target="ISO.6709.2008" format="default" sectionFormat="of" derivedContent="ISO.6709.2008"/> provides an appendix with a set of tests for
conformance to the standard. The tests and results are given in the
following table along with an explanation of inapplicable tests.</t>
      <table align="center" pn="table-1">
        <name slugifiedName="name-conformance-test-results">Conformance Test Results</name>
        <thead>
          <tr>
            <th align="left" colspan="1" rowspan="1">Test</th>
            <th align="left" colspan="1" rowspan="1">Description</th>
            <th align="left" colspan="1" rowspan="1">Pass Explanation</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left" colspan="1" rowspan="1">A.1.2.1</td>
            <td align="left" colspan="1" rowspan="1">elements required for a geographic point location</td>
            <td align="left" colspan="1" rowspan="1">CRS is always indicated</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">A.1.2.2</td>
            <td align="left" colspan="1" rowspan="1">description of a CRS from a register</td>
            <td align="left" colspan="1" rowspan="1">CRS register is defined</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">A.1.2.3</td>
            <td align="left" colspan="1" rowspan="1">definition of CRS</td>
            <td align="left" colspan="1" rowspan="1">N/A - Don't define CRS</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">A.1.2.4</td>
            <td align="left" colspan="1" rowspan="1">representation of horizontal position</td>
            <td align="left" colspan="1" rowspan="1">latitude/longitude values conform</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">A.1.2.5</td>
            <td align="left" colspan="1" rowspan="1">representation of vertical position</td>
            <td align="left" colspan="1" rowspan="1">height value conforms</td>
          </tr>
          <tr>
            <td align="left" colspan="1" rowspan="1">A.1.2.6</td>
            <td align="left" colspan="1" rowspan="1">text string representation</td>
            <td align="left" colspan="1" rowspan="1">N/A - No string format</td>
          </tr>
        </tbody>
      </table>
      <t indent="0" pn="section-4-3">For test '<tt>A.1.2.1</tt>', the YANG geo-location object either includes a
Coordinate Reference System (CRS) ('<tt>reference-frame</tt>') or has a
default defined <xref target="WGS84" format="default" sectionFormat="of" derivedContent="WGS84"/>.</t>
      <t indent="0" pn="section-4-4">For '<tt>A.1.2.3</tt>', we do not define our own CRS, and doing so is not
required for conformance.</t>
      <t indent="0" pn="section-4-5">For '<tt>A.1.2.6</tt>', we do not define a text string representation, which is
also not required for conformance.</t>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-5">
      <name slugifiedName="name-usability">Usability</name>
      <t indent="0" pn="section-5-1">The geo-location object defined in this document and YANG module has
been designed to be usable in a very broad set of applications.
This includes the ability to locate things on astronomical bodies
other than Earth, and to utilize entirely different coordinate
systems and realities.</t>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-5.1">
        <name slugifiedName="name-portability">Portability</name>
        <t indent="0" pn="section-5.1-1">In order to verify portability while developing this module, the
following standards and standard APIs were considered.</t>
        <section numbered="true" removeInRFC="false" toc="include" pn="section-5.1.1">
          <name slugifiedName="name-ietf-uri-value">IETF URI Value</name>
          <t indent="0" pn="section-5.1.1-1"><xref target="RFC5870" format="default" sectionFormat="of" derivedContent="RFC5870"/> defines a standard URI value for geographic
location data. It includes the ability to specify the '<tt>geodetic-value</tt>'
(it calls this '<tt>crs</tt>') with the default being '<tt>wgs-84</tt>' <xref target="WGS84" format="default" sectionFormat="of" derivedContent="WGS84"/>. For the location data, it allows two to three coordinates defined
by the '<tt>crs</tt>' value. For accuracy, it has a single '<tt>u</tt>' parameter
for specifying uncertainty. The '<tt>u</tt>' value is in fractions of meters and
applies to all the location values. As the URI is a string, all values are
specified as strings and so are capable of as much precision as required.</t>
          <t indent="0" pn="section-5.1.1-2">URI values can be mapped to and from the YANG grouping with the
caveat that some loss of precision (in the extremes) may occur due to
the YANG grouping using decimal64 values rather than strings.</t>
        </section>
        <section numbered="true" removeInRFC="false" toc="include" pn="section-5.1.2">
          <name slugifiedName="name-w3c">W3C</name>
          <t indent="0" pn="section-5.1.2-1">W3C defines a geolocation API in <xref target="W3CGEO" format="default" sectionFormat="of" derivedContent="W3CGEO"/>. We show a snippet of
code below that defines the geolocation data for this API. This is
used by many applications (e.g., Google Maps API).</t>
          <figure align="left" suppress-title="false" pn="figure-1">
            <name slugifiedName="name-snippet-showing-geolocation">Snippet Showing Geolocation Definition</name>
            <sourcecode type="" markers="false" pn="section-5.1.2-2.1">
interface GeolocationPosition {
  readonly attribute GeolocationCoordinates coords;
  readonly attribute DOMTimeStamp timestamp;
};

interface GeolocationCoordinates {
  readonly attribute double latitude;
  readonly attribute double longitude;
  readonly attribute double? altitude;
  readonly attribute double accuracy;
  readonly attribute double? altitudeAccuracy;
  readonly attribute double? heading;
  readonly attribute double? speed;
};
</sourcecode>
          </figure>
          <section numbered="true" removeInRFC="false" toc="exclude" pn="section-5.1.2.1">
            <name slugifiedName="name-comparison-with-yang-data-m">Comparison with YANG Data Model</name>
            <table align="center" pn="table-2">
              <thead>
                <tr>
                  <th align="left" colspan="1" rowspan="1">Field</th>
                  <th align="left" colspan="1" rowspan="1">Type</th>
                  <th align="left" colspan="1" rowspan="1">YANG</th>
                  <th align="left" colspan="1" rowspan="1">Type</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td align="left" colspan="1" rowspan="1">accuracy</td>
                  <td align="left" colspan="1" rowspan="1">double</td>
                  <td align="left" colspan="1" rowspan="1">coord-accuracy</td>
                  <td align="left" colspan="1" rowspan="1">dec64 fr 6</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">altitude</td>
                  <td align="left" colspan="1" rowspan="1">double</td>
                  <td align="left" colspan="1" rowspan="1">height</td>
                  <td align="left" colspan="1" rowspan="1">dec64 fr 6</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">altitudeAccuracy</td>
                  <td align="left" colspan="1" rowspan="1">double</td>
                  <td align="left" colspan="1" rowspan="1">height-accuracy</td>
                  <td align="left" colspan="1" rowspan="1">dec64 fr 6</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">heading</td>
                  <td align="left" colspan="1" rowspan="1">double</td>
                  <td align="left" colspan="1" rowspan="1">v-north, v-east</td>
                  <td align="left" colspan="1" rowspan="1">dec64 fr 12</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">latitude</td>
                  <td align="left" colspan="1" rowspan="1">double</td>
                  <td align="left" colspan="1" rowspan="1">latitude</td>
                  <td align="left" colspan="1" rowspan="1">dec64 fr 16</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">longitude</td>
                  <td align="left" colspan="1" rowspan="1">double</td>
                  <td align="left" colspan="1" rowspan="1">longitude</td>
                  <td align="left" colspan="1" rowspan="1">dec64 fr 16</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">speed</td>
                  <td align="left" colspan="1" rowspan="1">double</td>
                  <td align="left" colspan="1" rowspan="1">v-north, v-east</td>
                  <td align="left" colspan="1" rowspan="1">dec64 fr 12</td>
                </tr>
                <tr>
                  <td align="left" colspan="1" rowspan="1">timestamp</td>
                  <td align="left" colspan="1" rowspan="1">DOMTimeStamp</td>
                  <td align="left" colspan="1" rowspan="1">timestamp</td>
                  <td align="left" colspan="1" rowspan="1">string</td>
                </tr>
              </tbody>
            </table>
            <dl indent="3" newline="false" spacing="normal" pn="section-5.1.2.1-2">
              <dt pn="section-5.1.2.1-2.1">accuracy (double):</dt>
              <dd pn="section-5.1.2.1-2.2">
                <t indent="0" pn="section-5.1.2.1-2.2.1">Accuracy of '<tt>latitude</tt>' and
'<tt>longitude</tt>' values in meters.</t>
              </dd>
              <dt pn="section-5.1.2.1-2.3">altitude (double):</dt>
              <dd pn="section-5.1.2.1-2.4">
                <t indent="0" pn="section-5.1.2.1-2.4.1">Optional height in meters above the <xref target="WGS84" format="default" sectionFormat="of" derivedContent="WGS84"/> ellipsoid.</t>
              </dd>
              <dt pn="section-5.1.2.1-2.5">altitudeAccuracy (double):</dt>
              <dd pn="section-5.1.2.1-2.6">
                <t indent="0" pn="section-5.1.2.1-2.6.1">Optional accuracy of '<tt>altitude</tt>' value
in meters.</t>
              </dd>
              <dt pn="section-5.1.2.1-2.7">heading (double):</dt>
              <dd pn="section-5.1.2.1-2.8">
                <t indent="0" pn="section-5.1.2.1-2.8.1">Optional direction in decimal degrees from true
north increasing clockwise.</t>
              </dd>
              <dt pn="section-5.1.2.1-2.9">latitude, longitude (double):</dt>
              <dd pn="section-5.1.2.1-2.10">
                <t indent="0" pn="section-5.1.2.1-2.10.1">Standard latitude/longitude values in decimal degrees.</t>
              </dd>
              <dt pn="section-5.1.2.1-2.11">speed (double):</dt>
              <dd pn="section-5.1.2.1-2.12">
                <t indent="0" pn="section-5.1.2.1-2.12.1">Speed along the heading in meters per second.</t>
              </dd>
              <dt pn="section-5.1.2.1-2.13">timestamp (DOMTimeStamp):</dt>
              <dd pn="section-5.1.2.1-2.14">
                <t indent="0" pn="section-5.1.2.1-2.14.1">Specifies milliseconds since the UNIX
Epoch in a 64-bit unsigned integer. The YANG data model defines the
timestamp with arbitrarily large precision by using a string
that encompasses all representable values of this timestamp
value.</t>
              </dd>
            </dl>
            <t indent="0" pn="section-5.1.2.1-3">W3C API values can be mapped to the YANG grouping with the caveat
that some loss of precision (in the extremes) may occur due to the
YANG grouping using decimal64 values rather than doubles.</t>
            <t indent="0" pn="section-5.1.2.1-4">Conversely, only YANG values for Earth using the default '<tt>wgs-84</tt>'
<xref target="WGS84" format="default" sectionFormat="of" derivedContent="WGS84"/> as the '<tt>geodetic-datum</tt>' can be directly mapped
to the W3C values as W3C does not provide the extra features necessary to map
the broader set of values supported by the YANG grouping.</t>
          </section>
        </section>
        <section numbered="true" removeInRFC="false" toc="include" pn="section-5.1.3">
          <name slugifiedName="name-geography-markup-language-g">Geography Markup Language (GML)</name>
          <t indent="0" pn="section-5.1.3-1">ISO adopted the Geography Markup Language (GML) defined by OGC 07-036 <xref target="OGC" format="default" sectionFormat="of" derivedContent="OGC"/>
as <xref target="ISO.19136.2007" format="default" sectionFormat="of" derivedContent="ISO.19136.2007"/>. GML defines, among many other things, a position
type '<tt>gml:pos</tt>', which is a sequence of '<tt>double</tt>' values. This sequence
of values represents coordinates in a given CRS. The CRS is either
inherited from containing elements or directly specified as
attributes '<tt>srsName</tt>' and optionally '<tt>srsDimension</tt>' on the '<tt>gml:pos</tt>'.</t>
          <t indent="0" pn="section-5.1.3-2">GML defines an Abstract CRS type from which Concrete CRS types are derived.
This allows for many types of CRS definitions. We are concerned
with the Geodetic CRS type, which can have either ellipsoidal or
Cartesian coordinates. We believe that other non-Earth-based CRSs as
well as virtual CRSs should also be representable by the GML CRS types.</t>
          <t indent="0" pn="section-5.1.3-3">Thus, GML '<tt>gml:pos</tt>' values can be mapped directly to the YANG
grouping with the caveat that some loss of precision (in the
extremes) may occur due to the YANG grouping using decimal64 values
rather than doubles.</t>
          <t indent="0" pn="section-5.1.3-4">
Conversely, mapping YANG grouping values to GML is fully supported for
Earth-based geodetic systems.</t>
          <t indent="0" pn="section-5.1.3-5">GML also defines an observation value in '<tt>gml:Observation</tt>', which
includes a timestamp value '<tt>gml:validTime</tt>' in addition to other
components such as '<tt>gml:using</tt>', '<tt>gml:target</tt>', and
'<tt>gml:resultOf</tt>'. Only the timestamp is mappable to and from the YANG
grouping. Furthermore, '<tt>gml:validTime</tt>' can either be an instantaneous
measure ('<tt>gml:TimeInstant</tt>') or a time period
('<tt>gml:TimePeriod</tt>'). The instantaneous '<tt>gml:TimeInstant</tt>' is
mappable to and from the YANG grouping '<tt>timestamp</tt>' value, and values
down to the resolution of seconds for '<tt>gml:TimePeriod</tt>' can be mapped
using the '<tt>valid-until</tt>' node of the YANG grouping.</t>
        </section>
        <section numbered="true" removeInRFC="false" toc="include" pn="section-5.1.4">
          <name slugifiedName="name-kml">KML</name>
          <t indent="0" pn="section-5.1.4-1">KML 2.2 <xref target="KML22" format="default" sectionFormat="of" derivedContent="KML22"/> (formerly Keyhole Markup Language) was
submitted by Google to the <eref target="https://www.opengeospatial.org/" brackets="none">Open
Geospatial Consortium</eref> and was adopted. The latest version as of this
writing is KML 2.3 <xref target="KML23" format="default" sectionFormat="of" derivedContent="KML23"/>. This schema includes geographic
location data in some of its objects (e.g., '<tt>kml:Point</tt>' or
'<tt>kml:Camera</tt>' objects). This data is provided in string format and
corresponds to the values specified in <xref target="W3CGEO" format="default" sectionFormat="of" derivedContent="W3CGEO"/>. The timestamp value is also
specified as a string as in our YANG grouping.</t>
          <t indent="0" pn="section-5.1.4-2">KML has some special handling for the height value that is useful for
visualization software, '<tt>kml:altitudeMode</tt>'.

The values for '<tt>kml:altitudeMode</tt>' include '<tt>clampToGround</tt>', which
indicates the height is ignored; '<tt>relativeToGround</tt>', which indicates the
height value is relative to the location's ground level; or '<tt>absolute</tt>', which
indicates the height value is an absolute value within the geodetic datum.


The YANG grouping can directly map the ignored and
absolute cases but not the relative-to-ground case.</t>
          <t indent="0" pn="section-5.1.4-3">In addition to the '<tt>kml:altitudeMode</tt>', KML also defines two seafloor
height values using '<tt>kml:seaFloorAltitudeMode</tt>'. One value is to
ignore the height value ('<tt>clampToSeaFloor</tt>') and the other is relative
('<tt>relativeToSeaFloor</tt>'). As with the '<tt>kml:altitudeMode</tt>' value, the
YANG grouping supports the ignore case but not the relative case.</t>
          <t indent="0" pn="section-5.1.4-4">
The KML location values use a geodetic datum defined in Annex A of                           
<xref target="ISO.19136.2007" format="default" sectionFormat="of" derivedContent="ISO.19136.2007"/> with identifier '<tt>LonLat84_5773</tt>'. 

The altitude value for KML absolute height
mode is measured from the vertical datum specified by <xref target="WGS84" format="default" sectionFormat="of" derivedContent="WGS84"/>.</t>
          <t indent="0" pn="section-5.1.4-5">Thus, the YANG grouping and KML values can be directly mapped in both
directions (when using a supported altitude mode) with the caveat
that some loss of precision (in the extremes) may occur due to the
YANG grouping using decimal64 values rather than strings. For the
relative height cases, the application doing the transformation is
expected to have the data available to transform the relative height
into an absolute height, which can then be expressed using the YANG
grouping.</t>
        </section>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.1">
        <name slugifiedName="name-geodetic-system-values-regi">Geodetic System Values Registry</name>
        <t indent="0" pn="section-6.1-1">IANA has created the "Geodetic System Values" registry under
the "YANG Geographic Location Parameters" registry.</t>
        <t indent="0" pn="section-6.1-2">This registry allocates names for standard geodetic systems. Often, these
values are referred to using multiple names (e.g., full names or multiple
acronyms). The intent of this registry is to provide a single standard value
for any given geodetic system.</t>
        <t indent="0" pn="section-6.1-3">The values <bcp14>SHOULD</bcp14> use an acronym when available, they
<bcp14>MUST</bcp14> be converted to lowercase, and spaces <bcp14>MUST</bcp14>
be changed to dashes "-".</t>
        <t indent="0" pn="section-6.1-4">Each entry should be sufficient to define the two coordinate values and to
define height if height is required. So, for example, the '<tt>wgs-84</tt>' is
defined as WGS-84 with the geoid updated by at least <xref target="EGM96" format="default" sectionFormat="of" derivedContent="EGM96"/>
for height values. Specific entries for <xref target="EGM96" format="default" sectionFormat="of" derivedContent="EGM96"/> and <xref target="EGM08" format="default" sectionFormat="of" derivedContent="EGM08"/> are present if a more precise definition of the data is
required.</t>
        <t indent="0" pn="section-6.1-5">It should be noted that <xref target="RFC5870" format="default" sectionFormat="of" derivedContent="RFC5870"/> also created a registry
for geodetic systems (the "'geo' URI 'crs' Parameter Values" registry); however, this registry has a very strict
modification policy. The authors of <xref target="RFC5870" format="default" sectionFormat="of" derivedContent="RFC5870"/> have the stated
goal of making CRS registration hard to avoid proliferation of CRS values. As
our module defines alternate systems and has a broader scope (i.e., beyond Earth),
the registry defined below is meant to be more easily modified.</t>
        <t indent="0" pn="section-6.1-6">The allocation policy for this registry is First Come First Served <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>, as the intent is simply to avoid duplicate values.</t>
        <t indent="0" pn="section-6.1-7">The Reference value can either be a document or a contact person as
defined in <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>. The Change Controller (i.e., Owner) is also defined
by <xref target="RFC8126" format="default" sectionFormat="of" derivedContent="RFC8126"/>.</t>
        <t indent="0" pn="section-6.1-8">The initial values for this registry are as follows. They include the
non-Earth-based geodetic-datum value for the Moon based on <xref target="MEAN-EARTH" format="default" sectionFormat="of" derivedContent="MEAN-EARTH"/>.</t>
        <table align="center" pn="table-3">
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Name</th>
              <th align="left" colspan="1" rowspan="1">Description</th>
              <th align="left" colspan="1" rowspan="1">Reference</th>
              <th align="left" colspan="1" rowspan="1">Change Controller</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">me</td>
              <td align="left" colspan="1" rowspan="1">Mean Earth/Polar Axis (Moon)</td>
              <td align="left" colspan="1" rowspan="1">RFC 9179</td>
              <td align="left" colspan="1" rowspan="1">IETF</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">wgs-84-96</td>
              <td align="left" colspan="1" rowspan="1">World Geodetic System 1984</td>
              <td align="left" colspan="1" rowspan="1">RFC 9179</td>
              <td align="left" colspan="1" rowspan="1">IETF</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">wgs-84-08</td>
              <td align="left" colspan="1" rowspan="1">World Geodetic System 1984</td>
              <td align="left" colspan="1" rowspan="1">RFC 9179</td>
              <td align="left" colspan="1" rowspan="1">IETF</td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">wgs-84</td>
              <td align="left" colspan="1" rowspan="1">World Geodetic System 1984</td>
              <td align="left" colspan="1" rowspan="1">RFC 9179</td>
              <td align="left" colspan="1" rowspan="1">IETF</td>
            </tr>
          </tbody>
        </table>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.2">
        <name slugifiedName="name-updates-to-the-ietf-xml-reg">Updates to the IETF XML Registry</name>
        <t indent="0" pn="section-6.2-1">This document registers a URI in the "IETF XML Registry" <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>.
Following the format in <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>, the following registration has been
made:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-6.2-2">
          <dt pn="section-6.2-2.1">URI:</dt>
          <dd pn="section-6.2-2.2">
            <t indent="0" pn="section-6.2-2.2.1">urn:ietf:params:xml:ns:yang:ietf-geo-location</t>
          </dd>
          <dt pn="section-6.2-2.3">Registrant Contact:</dt>
          <dd pn="section-6.2-2.4">
            <t indent="0" pn="section-6.2-2.4.1">The IESG.</t>
          </dd>
          <dt pn="section-6.2-2.5">XML:</dt>
          <dd pn="section-6.2-2.6">
            <t indent="0" pn="section-6.2-2.6.1">N/A; the requested URI is an XML namespace.</t>
          </dd>
        </dl>
      </section>
      <section numbered="true" removeInRFC="false" toc="include" pn="section-6.3">
        <name slugifiedName="name-updates-to-the-yang-module-">Updates to the YANG Module Names Registry</name>
        <t indent="0" pn="section-6.3-1">This document registers one YANG module in the "YANG Module Names"
registry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/>. Following the format in <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/>, the following
registration has been made:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-6.3-2">
          <dt pn="section-6.3-2.1">Name:</dt>
          <dd pn="section-6.3-2.2">
            <t indent="0" pn="section-6.3-2.2.1">ietf-geo-location</t>
          </dd>
          <dt pn="section-6.3-2.3">Maintained by IANA:</dt>
          <dd pn="section-6.3-2.4">
            <t indent="0" pn="section-6.3-2.4.1">N</t>
          </dd>
          <dt pn="section-6.3-2.5">Namespace:</dt>
          <dd pn="section-6.3-2.6">
            <t indent="0" pn="section-6.3-2.6.1">urn:ietf:params:xml:ns:yang:ietf-geo-location</t>
          </dd>
          <dt pn="section-6.3-2.7">Prefix:</dt>
          <dd pn="section-6.3-2.8">
            <t indent="0" pn="section-6.3-2.8.1">geo</t>
          </dd>
          <dt pn="section-6.3-2.9">Reference:</dt>
          <dd pn="section-6.3-2.10">
            <t indent="0" pn="section-6.3-2.10.1">RFC 9179</t>
          </dd>
        </dl>
      </section>
    </section>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-7">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-7-1">The YANG module specified in this document defines a schema for data that
is designed to be accessed via network management protocols such as the
Network Configuration Protocol (NETCONF) <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> or RESTCONF
<xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>.  The lowest NETCONF layer is the secure transport
layer, and the mandatory-to-implement secure transport is Secure Shell (SSH)
<xref target="RFC6242" format="default" sectionFormat="of" derivedContent="RFC6242"/>.  The lowest RESTCONF layer is HTTPS, and the
mandatory-to-implement secure transport is TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>.</t>
      <t indent="0" pn="section-7-2">The NETCONF access control model <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/> provides the means to
restrict access for particular NETCONF or RESTCONF users to a
preconfigured subset of all available NETCONF or RESTCONF protocol
operations and content.</t>
      <t indent="0" pn="section-7-3">Since the modules defined in this document only define groupings,
these considerations are primarily for the designers of other modules
that use these groupings.</t>
      <t indent="0" pn="section-7-4">All the data nodes defined in this YANG module are
writable/creatable/deletable (i.e., "config true", which is the
default).</t>
      <t indent="0" pn="section-7-5">None of the writable/creatable/deletable data nodes in the YANG
module defined in this document are by themselves considered more
sensitive or vulnerable than standard configuration.</t>
      <t indent="0" pn="section-7-6">Some of the readable data nodes in this YANG module may be considered
sensitive or vulnerable in some network environments.  It is thus
important to control read access (e.g., via get, get-config, or
notification) to these data nodes.</t>
      <t indent="0" pn="section-7-7">Since the grouping defined in this module identifies locations,
authors using this grouping <bcp14>SHOULD</bcp14> consider any privacy issues
that may arise when the data is readable (e.g., customer device
locations, etc).</t>
    </section>
  </middle>
  <back>
    <references pn="section-8">
      <name slugifiedName="name-normative-references">Normative References</name>
      <reference anchor="EGM08" quoteTitle="true" derivedAnchor="EGM08">
        <front>
          <title>An Earth Gravitational Model to Degree 2160: EGM08.</title>
          <author initials="N." surname="Pavlis" fullname="N. Pavlis">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="S." surname="Holmes" fullname="S. Holmes">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="S." surname="Kenyon" fullname="S. Kenyon">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="J." surname="Factor" fullname="J. Factor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2008" month="April"/>
        </front>
        <refcontent>Presented at the 2008 General Assembly of the European Geosciences Union, Vienna</refcontent>
      </reference>
      <reference anchor="EGM96" quoteTitle="true" derivedAnchor="EGM96">
        <front>
          <title>The Development of the Joint NASA GSFC and the National Imagery and Mapping Agency (NIMA) Geopotential Model EGM96.</title>
          <author initials="F." surname="Lemoine" fullname="F. Lemoine">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="S." surname="Kenyon" fullname="S. Kenyon">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="J." surname="Factor" fullname="J. Factor">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="R." surname="Trimmer" fullname="R. Trimmer">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="N." surname="Pavlis" fullname="N. Pavlis">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="D." surname="Chinn" fullname="D. Chinn">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="C." surname="Cox" fullname="C. Cox">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="S." surname="Klosko" fullname="S. Klosko">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="S." surname="Luthcke" fullname="S. Luthcke">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="M." surname="Torrence" fullname="M. Torrence">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="Y." surname="Wang" fullname="Y. Wang">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="R." surname="Williamson" fullname="R. Williamson">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="E." surname="Pavlis" fullname="E. Pavlis">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="R." surname="Rapp" fullname="R. Rapp">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="T." surname="Olson" fullname="T. Olson">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="1998" month="July"/>
        </front>
        <refcontent>NASA/TP-1998-206861</refcontent>
      </reference>
      <reference anchor="ISO.6709.2008" quoteTitle="true" derivedAnchor="ISO.6709.2008">
        <front>
          <title>Standard representation of geographic point location by coordinates</title>
          <author>
            <organization showOnFrontPage="true">International Organization for Standardization</organization>
          </author>
          <date year="2008"/>
        </front>
        <seriesInfo name="ISO" value="6709:2008"/>
      </reference>
      <reference anchor="MEAN-EARTH" quoteTitle="true" derivedAnchor="MEAN-EARTH">
        <front>
          <title>A Standardized Lunar Coordinate System for the Lunar Reconnaissance Orbiter</title>
          <author>
            <organization showOnFrontPage="true">NASA</organization>
          </author>
          <date month="May" year="2008"/>
        </front>
        <refcontent>Version 4, Goddard Space Flight Center</refcontent>
      </reference>
      <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
        <front>
          <title>Key words for use in RFCs to Indicate Requirement Levels</title>
          <author initials="S." surname="Bradner" fullname="S. Bradner">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="1997" month="March"/>
          <abstract>
            <t indent="0">In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="2119"/>
        <seriesInfo name="DOI" value="10.17487/RFC2119"/>
      </reference>
      <reference anchor="RFC6241" target="https://www.rfc-editor.org/info/rfc6241" quoteTitle="true" derivedAnchor="RFC6241">
        <front>
          <title>Network Configuration Protocol (NETCONF)</title>
          <author initials="R." surname="Enns" fullname="R. Enns" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="A." surname="Bierman" fullname="A. Bierman" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2011" month="June"/>
          <abstract>
            <t indent="0">The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices.  It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages.  The NETCONF protocol operations are realized as remote procedure calls (RPCs).  This document obsoletes RFC 4741.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6241"/>
        <seriesInfo name="DOI" value="10.17487/RFC6241"/>
      </reference>
      <reference anchor="RFC6242" target="https://www.rfc-editor.org/info/rfc6242" quoteTitle="true" derivedAnchor="RFC6242">
        <front>
          <title>Using the NETCONF Protocol over Secure Shell (SSH)</title>
          <author initials="M." surname="Wasserman" fullname="M. Wasserman">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2011" month="June"/>
          <abstract>
            <t indent="0">This document describes a method for invoking and running the Network Configuration Protocol (NETCONF) within a Secure Shell (SSH) session as an SSH subsystem.  This document obsoletes RFC 4742.  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6242"/>
        <seriesInfo name="DOI" value="10.17487/RFC6242"/>
      </reference>
      <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" quoteTitle="true" derivedAnchor="RFC6991">
        <front>
          <title>Common YANG Data Types</title>
          <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2013" month="July"/>
          <abstract>
            <t indent="0">This document introduces a collection of common data types to be used with the YANG data modeling language.  This document obsoletes RFC 6021.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6991"/>
        <seriesInfo name="DOI" value="10.17487/RFC6991"/>
      </reference>
      <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" quoteTitle="true" derivedAnchor="RFC8040">
        <front>
          <title>RESTCONF Protocol</title>
          <author initials="A." surname="Bierman" fullname="A. Bierman">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="K." surname="Watsen" fullname="K. Watsen">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2017" month="January"/>
          <abstract>
            <t indent="0">This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="8040"/>
        <seriesInfo name="DOI" value="10.17487/RFC8040"/>
      </reference>
      <reference anchor="RFC8126" target="https://www.rfc-editor.org/info/rfc8126" quoteTitle="true" derivedAnchor="RFC8126">
        <front>
          <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
          <author initials="M." surname="Cotton" fullname="M. Cotton">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="B." surname="Leiba" fullname="B. Leiba">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="T." surname="Narten" fullname="T. Narten">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2017" month="June"/>
          <abstract>
            <t indent="0">Many protocols make use of points of extensibility that use constants to identify various protocol parameters.  To ensure that the values in these fields do not have conflicting uses and to promote interoperability, their allocations are often coordinated by a central record keeper.  For IETF protocols, that role is filled by the Internet Assigned Numbers Authority (IANA).</t>
            <t indent="0">To make assignments in a given registry prudently, guidance describing the conditions under which new values should be assigned, as well as when and how modifications to existing values can be made, is needed.  This document defines a framework for the documentation of these guidelines by specification authors, in order to assure that the provided guidance for the IANA Considerations is clear and addresses the various issues that are likely in the operation of a registry.</t>
            <t indent="0">This is the third edition of this document; it obsoletes RFC 5226.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="26"/>
        <seriesInfo name="RFC" value="8126"/>
        <seriesInfo name="DOI" value="10.17487/RFC8126"/>
      </reference>
      <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
        <front>
          <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
          <author initials="B." surname="Leiba" fullname="B. Leiba">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2017" month="May"/>
          <abstract>
            <t indent="0">RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="8174"/>
        <seriesInfo name="DOI" value="10.17487/RFC8174"/>
      </reference>
      <reference anchor="RFC8341" target="https://www.rfc-editor.org/info/rfc8341" quoteTitle="true" derivedAnchor="RFC8341">
        <front>
          <title>Network Configuration Access Control Model</title>
          <author initials="A." surname="Bierman" fullname="A. Bierman">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2018" month="March"/>
          <abstract>
            <t indent="0">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability.  There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content.  This document defines such an access control model.</t>
            <t indent="0">This document obsoletes RFC 6536.</t>
          </abstract>
        </front>
        <seriesInfo name="STD" value="91"/>
        <seriesInfo name="RFC" value="8341"/>
        <seriesInfo name="DOI" value="10.17487/RFC8341"/>
      </reference>
      <reference anchor="RFC8342" target="https://www.rfc-editor.org/info/rfc8342" quoteTitle="true" derivedAnchor="RFC8342">
        <front>
          <title>Network Management Datastore Architecture (NMDA)</title>
          <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="P." surname="Shafer" fullname="P. Shafer">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="K." surname="Watsen" fullname="K. Watsen">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="R." surname="Wilton" fullname="R. Wilton">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2018" month="March"/>
          <abstract>
            <t indent="0">Datastores are a fundamental concept binding the data models written in the YANG data modeling language to network management protocols such as the Network Configuration Protocol (NETCONF) and RESTCONF. This document defines an architectural framework for datastores based on the experience gained with the initial simpler model, addressing requirements that were not well supported in the initial model.  This document updates RFC 7950.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="8342"/>
        <seriesInfo name="DOI" value="10.17487/RFC8342"/>
      </reference>
      <reference anchor="RFC8446" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="RFC8446">
        <front>
          <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
          <author initials="E." surname="Rescorla" fullname="E. Rescorla">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2018" month="August"/>
          <abstract>
            <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol.  TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
            <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961.  This document also specifies new requirements for TLS 1.2 implementations.</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="8446"/>
        <seriesInfo name="DOI" value="10.17487/RFC8446"/>
      </reference>
      <reference anchor="WGS84" quoteTitle="true" derivedAnchor="WGS84">
        <front>
          <title>Department of Defense World Geodetic System 1984</title>
          <author>
            <organization showOnFrontPage="true">National Imagery and Mapping Agency</organization>
          </author>
          <date month="January" year="2000"/>
        </front>
        <refcontent>NIMA TR8350.2, Third Edition</refcontent>
      </reference>
    </references>
    <references pn="section-9">
      <name slugifiedName="name-informative-references">Informative References</name>
      <reference anchor="ISO.19136.2007" quoteTitle="true" derivedAnchor="ISO.19136.2007">
        <front>
          <title>Geographic information -- Geography Markup Language (GML)</title>
          <author>
            <organization showOnFrontPage="true">International Organization for Standardization</organization>
          </author>
          <date/>
        </front>
        <seriesInfo name="ISO" value="19136:2007"/>
      </reference>
      <reference anchor="KML22" target="https://portal.opengeospatial.org/files/?artifact_id=27810" quoteTitle="true" derivedAnchor="KML22">
        <front>
          <title>OGC KML</title>
          <author role="editor" initials="T." surname="Wilson" fullname="Tim Wilson">
            <organization showOnFrontPage="true">Open Geospatial Consortium Inc.</organization>
          </author>
          <date month="April" year="2008"/>
        </front>
        <refcontent>Version 2.2</refcontent>
      </reference>
      <reference anchor="KML23" target="https://docs.opengeospatial.org/is/12-007r2/12-007r2.html" quoteTitle="true" derivedAnchor="KML23">
        <front>
          <title>OGC KML</title>
          <author role="editor" initials="D." surname="Burggraf" fullname="David Burggraf">
            <organization showOnFrontPage="true">Open Geospatial Consortium Inc.</organization>
          </author>
          <date month="August" year="2015"/>
        </front>
        <refcontent>Version 2.3</refcontent>
      </reference>
      <reference anchor="OGC" target="https://portal.ogc.org/files/?artifact_id=20509" quoteTitle="true" derivedAnchor="OGC">
        <front>
          <title>OpenGIS Geography Markup Language (GML) Encoding Standard</title>
          <author>
            <organization showOnFrontPage="true">OpenGIS</organization>
          </author>
          <date month="August" year="2007"/>
        </front>
        <refcontent>Version: 3.2.1</refcontent>
        <refcontent>OGC 07-036</refcontent>
      </reference>
      <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
        <front>
          <title>The IETF XML Registry</title>
          <author initials="M." surname="Mealling" fullname="M. Mealling">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2004" month="January"/>
          <abstract>
            <t indent="0">This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="81"/>
        <seriesInfo name="RFC" value="3688"/>
        <seriesInfo name="DOI" value="10.17487/RFC3688"/>
      </reference>
      <reference anchor="RFC5870" target="https://www.rfc-editor.org/info/rfc5870" quoteTitle="true" derivedAnchor="RFC5870">
        <front>
          <title>A Uniform Resource Identifier for Geographic Locations ('geo' URI)</title>
          <author initials="A." surname="Mayrhofer" fullname="A. Mayrhofer">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="C." surname="Spanring" fullname="C. Spanring">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2010" month="June"/>
          <abstract>
            <t indent="0">This document specifies a Uniform Resource Identifier (URI) for geographic locations using the 'geo\' scheme name.  A 'geo' URI identifies a physical location in a two- or three-dimensional coordinate reference system in a compact, simple, human-readable, and protocol-independent way.  The default coordinate reference system used is the World Geodetic System 1984 (WGS-84).  [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="5870"/>
        <seriesInfo name="DOI" value="10.17487/RFC5870"/>
      </reference>
      <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" quoteTitle="true" derivedAnchor="RFC6020">
        <front>
          <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
          <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2010" month="October"/>
          <abstract>
            <t indent="0">YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="6020"/>
        <seriesInfo name="DOI" value="10.17487/RFC6020"/>
      </reference>
      <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" quoteTitle="true" derivedAnchor="RFC7950">
        <front>
          <title>The YANG 1.1 Data Modeling Language</title>
          <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2016" month="August"/>
          <abstract>
            <t indent="0">YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.  This document describes the syntax and semantics of version 1.1 of the YANG language.  YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification.  There are a small number of backward incompatibilities from YANG version 1.  This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t>
          </abstract>
        </front>
        <seriesInfo name="RFC" value="7950"/>
        <seriesInfo name="DOI" value="10.17487/RFC7950"/>
      </reference>
      <reference anchor="RFC8340" target="https://www.rfc-editor.org/info/rfc8340" quoteTitle="true" derivedAnchor="RFC8340">
        <front>
          <title>YANG Tree Diagrams</title>
          <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
            <organization showOnFrontPage="true"/>
          </author>
          <author initials="L." surname="Berger" fullname="L. Berger" role="editor">
            <organization showOnFrontPage="true"/>
          </author>
          <date year="2018" month="March"/>
          <abstract>
            <t indent="0">This document captures the current syntax used in YANG module tree diagrams.  The purpose of this document is to provide a single location for this definition.  This syntax may be updated from time to time based on the evolution of the YANG language.</t>
          </abstract>
        </front>
        <seriesInfo name="BCP" value="215"/>
        <seriesInfo name="RFC" value="8340"/>
        <seriesInfo name="DOI" value="10.17487/RFC8340"/>
      </reference>
      <reference anchor="W3CGEO" target="https://www.w3.org/TR/2016/REC-geolocation-API-20161108/" quoteTitle="true" derivedAnchor="W3CGEO">
        <front>
          <title>Geolocation API Specification</title>
          <author initials="A." surname="Popescu" fullname="Andrei Popescu">
            <organization showOnFrontPage="true"/>
          </author>
          <date month="November" year="2016"/>
        </front>
        <refcontent>2nd Edition</refcontent>
      </reference>
    </references>
    <section numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a">
      <name slugifiedName="name-examples">Examples</name>
      <t indent="0" pn="section-appendix.a-1">Below is a fictitious module that uses the geo-location grouping.</t>
      <figure align="left" suppress-title="false" pn="figure-2">
        <name slugifiedName="name-example-yang-module-using-g">Example YANG Module Using Geolocation</name>
        <sourcecode type="yang" markers="false" pn="section-appendix.a-2.1">
module example-uses-geo-location {
  namespace
    "urn:example:example-uses-geo-location";
  prefix ugeo;
  import ietf-geo-location { prefix geo; }
  organization "Empty Org";
  contact "Example Author &lt;eauthor@example.com&gt;";
  description
    "Example use of geo-location";
  revision 2022-02-11 { reference "None"; }
  container locatable-items {
    description
      "The container of locatable items";
    list locatable-item {
      key name;
      description
        "A locatable item";
      leaf name {
        type string;
        description
          "The name of locatable item";
      }
      uses geo:geo-location;
    }
  }
}
</sourcecode>
      </figure>
      <t indent="0" pn="section-appendix.a-3">Below is the YANG tree for the fictitious module that uses the
geo-location grouping.</t>
      <figure align="left" suppress-title="false" pn="figure-3">
        <name slugifiedName="name-example-yang-tree-using-geo">Example YANG Tree Using Geolocation</name>
        <sourcecode type="yangtree" markers="false" pn="section-appendix.a-4.1">
  module: example-uses-geo-location
    +--rw locatable-items
       +--rw locatable-item* [name]
          +--rw name            string
          +--rw geo-location
             +--rw reference-frame
             |  +--rw alternate-system?    string
             |  |       {alternate-systems}?
             |  +--rw astronomical-body?   string
             |  +--rw geodetic-system
             |     +--rw geodetic-datum?    string
             |     +--rw coord-accuracy?    decimal64
             |     +--rw height-accuracy?   decimal64
             +--rw (location)?
             |  +--:(ellipsoid)
             |  |  +--rw latitude?    decimal64
             |  |  +--rw longitude?   decimal64
             |  |  +--rw height?      decimal64
             |  +--:(cartesian)
             |     +--rw x?           decimal64
             |     +--rw y?           decimal64
             |     +--rw z?           decimal64
             +--rw velocity
             |  +--rw v-north?   decimal64
             |  +--rw v-east?    decimal64
             |  +--rw v-up?      decimal64
             +--rw timestamp?         yang:date-and-time
             +--rw valid-until?       yang:date-and-time
</sourcecode>
      </figure>
      <t indent="0" pn="section-appendix.a-5">Below is some example YANG XML data for the fictitious module that
uses the geo-location grouping.</t>
      <figure align="left" suppress-title="false" pn="figure-4">
        <name slugifiedName="name-example-xml-data-of-geoloca">Example XML Data of Geolocation Use</name>
        <sourcecode type="xml" markers="false" pn="section-appendix.a-6.1">
&lt;locatable-items xmlns="urn:example:example-uses-geo-location"&gt;
  &lt;locatable-item&gt;
    &lt;name&gt;Gaetana's&lt;/name&gt;
    &lt;geo-location&gt;
      &lt;latitude&gt;40.73297&lt;/latitude&gt;
      &lt;longitude&gt;-74.007696&lt;/longitude&gt;
    &lt;/geo-location&gt;
  &lt;/locatable-item&gt;
  &lt;locatable-item&gt;
    &lt;name&gt;Pont des Arts&lt;/name&gt;
    &lt;geo-location&gt;
      &lt;timestamp&gt;2012-03-31T16:00:00Z&lt;/timestamp&gt;
      &lt;latitude&gt;48.8583424&lt;/latitude&gt;
      &lt;longitude&gt;2.3375084&lt;/longitude&gt;
      &lt;height&gt;35&lt;/height&gt;
    &lt;/geo-location&gt;
  &lt;/locatable-item&gt;
  &lt;locatable-item&gt;
    &lt;name&gt;Saint Louis Cathedral&lt;/name&gt;
    &lt;geo-location&gt;
      &lt;timestamp&gt;2013-10-12T15:00:00-06:00&lt;/timestamp&gt;
      &lt;latitude&gt;29.9579735&lt;/latitude&gt;
      &lt;longitude&gt;-90.0637281&lt;/longitude&gt;
    &lt;/geo-location&gt;
  &lt;/locatable-item&gt;
  &lt;locatable-item&gt;
    &lt;name&gt;Apollo 11 Landing Site&lt;/name&gt;
    &lt;geo-location&gt;
      &lt;timestamp&gt;1969-07-21T02:56:15Z&lt;/timestamp&gt;
      &lt;reference-frame&gt;
        &lt;astronomical-body&gt;moon&lt;/astronomical-body&gt;
        &lt;geodetic-system&gt;
          &lt;geodetic-datum&gt;me&lt;/geodetic-datum&gt;
        &lt;/geodetic-system&gt;
      &lt;/reference-frame&gt;
      &lt;latitude&gt;0.67409&lt;/latitude&gt;
      &lt;longitude&gt;23.47298&lt;/longitude&gt;
    &lt;/geo-location&gt;
  &lt;/locatable-item&gt;
  &lt;locatable-item&gt;
    &lt;name&gt;Reference Frame Only&lt;/name&gt;
    &lt;geo-location&gt;
      &lt;reference-frame&gt;
        &lt;astronomical-body&gt;moon&lt;/astronomical-body&gt;
        &lt;geodetic-system&gt;
          &lt;geodetic-datum&gt;me&lt;/geodetic-datum&gt;
        &lt;/geodetic-system&gt;
      &lt;/reference-frame&gt;
    &lt;/geo-location&gt;
  &lt;/locatable-item&gt;
&lt;/locatable-items&gt;
</sourcecode>
      </figure>
    </section>
    <section numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.b-1">We would like to thank <contact fullname="Jim Biard"/> and <contact fullname="Ben Koziol"/> for their reviews and suggested improvements. We would
also like to thank <contact fullname="Peter Lothberg"/> for the motivation as
well as help in defining a broadly useful geographic location object as well
as <contact fullname="Acee Lindem"/> and <contact fullname="Qin Wu"/> for
their work on a geographic location object that led to this document's
creation. We would also like to thank the Document Shepherd <contact fullname="Kent Watsen"/>.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author initials="C." surname="Hopps" fullname="Christian Hopps">
        <organization showOnFrontPage="true">LabN Consulting, L.L.C.</organization>
        <address>
          <email>chopps@chopps.org</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
