<?xml version="1.0" encoding="US-ASCII"?>
<!-- This template is for creating an Internet Draft using xml2rfc,
     which is available here: http://xml.resource.org. -->
<!DOCTYPE rfc SYSTEM "http://xml.resource.org/authoring/rfc2629.dtd" [
<!-- One method to get references from the online citation libraries.
     There has to be one entity for each item to be referenced. 
     An alternate method (rfc include) is described in the references. -->
<!ENTITY RFC3023 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3023.xml">
<!ENTITY FRC2616 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2616.xml">
<!ENTITY RFC5246 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5246.xml">
<!ENTITY RFC0793 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.0793.xml">
<!ENTITY RFC3688 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3688.xml">
<!ENTITY RFC2818 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2818.xml">
<!ENTITY RFC2617 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2617.xml">
<!ENTITY RFC5986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5986.xml">
<!ENTITY RFC5491 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5491.xml">
<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC5139 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5139.xml">
<!ENTITY RFC4119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4119.xml">
<!ENTITY RFC5962 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5962.xml">
<!ENTITY RFC5226 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5226.xml">
<!ENTITY RFC5774 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5774.xml">
<!ENTITY RFC6351 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6351.xml">
<!ENTITY I-D.ietf-geopriv-held-measurements SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.draft-ietf-geopriv-held-measurements-05.xml">
<!ENTITY I-D.ietf-geopriv-relative-location SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.draft-ietf-geopriv-relative-location-03.xml">
<!ENTITY I-D.ietf-geopriv-local-civic SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.draft-ietf-geopriv-local-civic-09.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!-- used by XSLT processors -->
<!-- For a complete list and description of processing instructions (PIs), 
     please see http://xml.resource.org/authoring/README.html. -->
<!-- Below are generally applicable Processing Instructions (PIs) that most I-Ds might want to use.
     (Here they are set differently than their defaults in xml2rfc v1.32) -->
<?rfc strict="yes" ?>
<!-- give errors regarding ID-nits and DTD validation -->
<!-- control the table of contents (ToC) -->
<?rfc toc="yes"?>
<!-- generate a ToC -->
<?rfc tocdepth="4"?>
<!-- the number of levels of subsections in ToC. default: 3 -->
<!-- control references -->
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC2119] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- sort the reference entries alphabetically -->
<!-- control vertical white space 
     (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one blank line between list items -->
<!-- end of list of popular I-D processing instructions -->
<rfc category="std" docName="draft-jones-geopriv-sigpos-survey-01"
     ipr="trust200902">
  <!-- category values: std, bcp, info, exp, and historic
     ipr values: full3667, noModification3667, noDerivatives3667
     you can add the attributes updates="NNNN" and obsoletes="NNNN" 
     they will automatically be output with "(if approved)" -->

  <!-- ***** FRONT MATTER ***** -->

  <front>
    <!-- The abbreviated title is used in the page header - it is only necessary if the 
         full title is longer than 39 characters -->

    <title abbrev="Signal Position Survey">Indoor Signal Position
    Conveyance</title>

    <!-- add 'role="editor"' below for the editors if appropriate -->

    <!-- Another author who claims to be an editor -->

    <author fullname="Kipp Jones" initials="K." surname="Jones">
      <organization>Skyhook Wireless</organization>

      <address>
        <postal>
          <street>34 Farnsworth Street</street>

          <!-- Reorder these if your country does things differently -->

          <city>Boston</city>

          <region/>

          <code>02210</code>

          <country>US</country>
        </postal>

        <phone>+1 (617) 234-9802</phone>

        <email>kjones@skyhookwireless.com</email>

        <!-- uri and facsimile elements may also be added -->
      </address>
    </author>

    <date day="5" month="November" year="2012"/>

    <!-- If the month and year are both specified and are the current ones, xml2rfc will fill 
         in the current day for you. If only the current year is specified, xml2rfc will fill 
	 in the current day and month for you. If the year is not the current one, it is 
	 necessary to specify at least a month (xml2rfc assumes day="1" if not specified for the 
	 purpose of calculating the expiry date).  With drafts it is normally sufficient to 
	 specify just the year. -->

    <!-- Meta-data Declarations -->

    <area>Real-time Applications and Infrastructure</area>

    <workgroup>Geographic Location/Privacy</workgroup>

    <!-- WG name at the upperleft corner of the doc,
         IETF is fine for individual submissions.  
	 If this element is not present, the default is "Network Working Group",
         which is used by the RFC Editor as a nod to the history of the IETF. -->

    <keyword>Indoor positioning, signal survey, site survey</keyword>

    <!-- Keywords will be incorporated into HTML output
         files in a meta tag but they have no effect on text or nroff
         output. If you submit your draft to the RFC Editor, the
         keywords will be used for the search engine. -->

    <abstract>
      <t>Location Information Servers rely on signal surveys to create a
      signal map allowing for subsequent device location determination. This
      document describes a method by which a Survey Device is able to provide
      indoor location related measurement data to a LIS for positioning
      purposes. Location related measurement information comprises
      observations concerning properties related to the position of a Survey
      Device and the radio, electromagnetic, and other observable
      environmental measures as perceived by the Survey Device. These
      measurements could be data about Wi-Fi signals, Bluetooth signals,
      barometric pressure, or any other environmental measurement which could
      sent to a LIS for subsequent processing to help determine the location
      of devices that later enter the venue. A basic set of location-related
      measurements, data rights disclosure and location types are defined.
      This document also describes the use of HTTP/TLS as transport for the
      data object.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="introduction" title="Introduction">
      <t>This document describes a format for the expression of the measure
      and location of signals (SigPos) within a venue for purposes of
      providing location services.</t>

      <t>The format includes a venue description, signal information, and data
      usage specifications.</t>

      <t>A venue is defined as an area of interest for providing location
      services. Examples of a venue include a campus, a building, or a room. A
      venue should have a single administrative contact for purposes of this
      document.</t>

      <t>Signal information is inclusive of the specific description and
      measures of the signal (e.g. 802.11 Wi-Fi signals), a description the
      device used to measure the signals, as well as the location and
      orientation of the device.</t>

      <t>Multiple methods for providing location are defined including civic
      locations, geodetic locations, absolute locations, relative locations,
      and locations with error estimates.</t>

      <t>In addition to the signal information, on optional section provides
      the ability to specify the data usage rights to be conferred to another
      entity. One right would be to grant a Location Information Service (LIS)
      rights to make use of the signal information to provide location
      services.</t>

      <t>This document describes the use of HTTP/TLS as transport for the
      survey data.</t>

      <section title="Requirements Language">
        <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
        "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
        document are to be interpreted as described in <xref
        target="RFC2119">RFC 2119</xref>.</t>
      </section>
    </section>

    <section anchor="overview" title="Overview">
      <t>This document describes a common method to record, distribute and
      grant or constrain rights on signal location information related to the
      geospatial measurement of wireless RF signals. The document sets forth
      the motivation behind the effort, the basic design of the data format,
      the reasoning and technical approach for managing the rights of usage
      for the information, and provides various usage scenarios to further
      describe the architecture.</t>

      <t>The primary motivation for this work is in providing a common
      framework for capturing and sharing information related to the
      geospatial measurement of RF signals for purposes of providing locative
      services based on the transmitters associated with these signals. There
      may be other uses such as network optimization and interference analysis
      that could be provided via this specification but these are not the
      primary goal.</t>

      <t>Historically, each vendor or entity interested in using sensors
      (WiFi, cellular, sound ranging) to determine the location of a device
      has been required to know the geospatial location and attributes
      associated with a set of transmitters in order to provide location
      services based on these transmitters. If the locations of the
      transmitters were not known, the entity would need to &lsquo;map&rsquo;
      these transmitters and their associated signals through various means
      and assign them a set of geospatial coordinates and some estimate of the
      signal map and signal properties of each transmitter.</t>

      <t>The problem has grown in scale as the number of mobile devices has
      rapidly expanded along with the proliferation of location-based or
      location-enhanced applications. This problem can largely be solved for
      outdoor and coarse indoor positioning using a number of techniques such
      as drive scanning and end-user device reported information combined with
      GPS. These techniques have enabled a large portion of the global WiFi
      signal set to be modeled and used for end-user positioning.</t>

      <t>However, these methods, even when based on GPS information, have
      limits on the accuracy to which they can determine the location of a
      device solely on these signals. The problem is further exacerbated and
      compounded by the desire to provide indoor positioning with accuracy
      below 10 meters.</t>

      <t>Outdoor scanning via vehicles and end-user devices is possible due to
      the reliable and global reach of GPS. Signals captured in open-air
      environments can be assigned geospatial coordinates based on the
      availability of a reliable GPS reading. However, the ability to leverage
      an existing positioning technology is severely limited when the scanning
      equipment moves indoors. The availability of GPS is reduced and in many
      places eliminated. This requires that the scanning equipment use some
      other means to determine the relative or absolute geospatial position
      within a building in order to associate the signal measurement with the
      location in the building.</t>

      <t>This problem has been addressed by various means in what is generally
      referred to as a &lsquo;site survey&rsquo;. Often times specialized
      hardware with professional grade GPS systems, highly calibrated sensors
      for dead reckoning, laser range finders or other techniques have been
      deployed to accomplish these site surveys. These techniques provide a
      professional surveyor with the tools and capability to produce a highly
      accurate signal map of a given building. Unfortunately this process has
      several drawbacks:</t>

      <t><list style="symbols">
          <t>the use of specialized hardware with highly trained engineers is
          expensive. By requiring the design and manufacture of specialized
          hardware as well as trained individuals to operate the hardware, the
          ability to scale the process and realize mass production reductions
          in costs are foregone</t>

          <t>the process is, in general, a proprietary venture. The resulting
          information is in a proprietary format and is intended to work with
          a specific vendor provided location system</t>

          <t>it doesn&rsquo;t account for changes. Venues change, the radio,
          visual, and acoustical environment changes and the transmitters
          themselves are moved and replaced over time. Coping with this level
          of entropy and maintaining an up-to-date signal map is both time
          consuming and costly</t>

          <t>the value is locked in a vendor. To exploit the investment
          further is problematic at best and impossible at worst. The value
          that is obtained from the effort to create a signal map may be
          realized by the vendor and not the venue owner. Even if the vendor
          made a portion of the investment, the venue owner may be excluded
          from additional revenue sources as new ways to leverage the data and
          additional location services are created</t>

          <t>high quality venue maps have not been readily accessible. Having
          location is an important part of the puzzle, but having the ability
          to pin the dot on a map creates innumerable additional
          opportunities</t>

          <t>mobile devices and applications have traditionally been locked to
          the vendor that did the site survey. This made it impossible to
          scale across many different apps on many different mobile operating
          systems</t>

          <t>context is more important for indoor positioning while latitude,
          longitude, and altitude are less valuable. In other words, it is
          more important from a user perspective to identify the floor, the
          room, the aisle, etc. than it is to provide only x, y, z
          coordinates</t>

          <t>there is no common way to convey the information to a LIS</t>
        </list></t>

      <t>The goal of this specification is to reduce these friction points and
      provide a common method for specifying, encoding, conveying, and
      granting usage rights to signal survey information.</t>

      <t/>
    </section>

    <section title="Open Issues">
      <t/>

      <t>This document contains a number of open issues that need to be
      addressed or items that need further refinement, including:</t>

      <t><list style="numbers">
          <t>Survey Device Configuration Specification - this needs continued
          refinement</t>

          <t>Bluetooth Measurements - these need to be added to the HELD
          Measurements specification</t>

          <t>Specification of Licensing Options - are there more objections to
          including these</t>

          <t>Complete xsd definition - a partial XSD is included in this
          draft, a complete specification is still needed</t>
        </list></t>
    </section>

    <!-- This PI places the pagebreak correctly (before the section title) in the text output. -->

    <?rfc needLines="8" ?>

    <section anchor="description" title="Description">
      <t>The basic premise for the SigPos data container is to preserve the
      concept of a &lsquo;survey session&rsquo;. A survey session generally
      represents a set of contiguous location and sensor scan records that
      were gathered by a given device. For example, this could represent a
      survey of the floor of a building, a single point survey, or a survey of
      a room.</t>

      <t>This document defines a container for the conveyance of
      location-related measurement parameters or specifications related to
      beacon locations and their related signal patterns within an indoor
      venue. This is an XML container that identifies parameters by type and
      allows the Device to provide the results of any measurement it is able
      to perform. A set of measurement schemas are also defined that can be
      carried in the generic container. Lastly, it allows for the manual
      specification of both the beacons as well as their location.</t>

      <t>A number of additional concepts are included in this standard such as
      the identification of the equipment conducting the survey and the
      inclusion of both explicit and implicit location information. These will
      be detailed further in following sections.</t>

      <t>The interpretation of the survey data is left to the implementer of
      the location service and is not explicitly part of this specification.
      For example, how to correlate a particular WiFi signal sample with an
      interpolated location, or how much time lapse between a WiFi signal
      reading and a GPS sample is permissible. These are choices that are
      decoupled from the data gathering and transmission, but every attempt
      has been made to provide the facility to include sufficient information
      in this standard to enable downstream algorithms to make appropriate
      choices.</t>

      <t>This document also describes the use of HTTP/TLS as transport for the
      survey container.</t>

      <t>Each capture document corresponds to a &lsquo;session&rsquo;. Each
      session can have a 'venue' section, a 'survey device' section, and a
      'survey' section. The venue describes the venue, the location of the
      venue, the licensor organization as well as the data rights applicable
      to the survey. <xref target="Venue">The Venue Section</xref> describes
      the venue or location of the survey, and the <xref
      target="SurveyDevice">Survey Device section</xref> describes the device
      being used to capture the survey data.</t>

      <t>The <xref target="SurveyData">Survey Data section</xref> describes a
      method for the actual survey data to be formatted in a standardized
      format. Each capture session is meant to take place within a single
      building or structure corresponding to the venue described in the venue
      section. A session may be composed of many &lsquo;survey points&rsquo;.
      Each survey point can have a location description, location elements,
      WiFi keys, WiFi readings and &lsquo;other&rsquo; sensor readings.</t>

      <t>Note, where possible, location-info objects as described within
      PIDF-LO and extensions are used to express location information.</t>

      <t>An overview of the document structure is provided in the following
      figure.</t>

      <t><figure align="center" anchor="document_pic">
          <preamble/>

          <artwork align="left"><![CDATA[                                +---------------+
                              __| Name          |
                              | |_______________|  
                              |                    
               +-----------+  | +---------------+  
             __| Venue     |__|_| Address       |  
             | |___________|  | |_______________+    +--------------+
             |                |                     _| Name         |
             |                | +---------------+  | |______________|
             |                |_| Licensor      |__|                    
             |                | |_______________|  | +--------------+
             |                |                    |_| Address      |                   
             |                | +---------------+    |______________| 
             |                |_| License       |                     
             |                  |_______________|                      
+---------+  | 
| Session | -| 
|_________|  |
             |                  +---------------+
             |                __| Configuration |
             |                | |_______________|
             |                |
             | +-----------+  | +---------------+    +--------------+   
             |_| Survey    |__|_| Survey        |____| Sensor       |__
             | | Device    |    | Sensors       |    |______________|   
             | |___________|    |_______________|
             |                                                         
             |                                       +--------------+ 
             |                                     __| Ground Truth |__
             |                                     | |______________|  
             |                                     |
             | +-----------+    +---------------+  | +--------------+  
             +-| Survey    |____| Survey Point  |__|_| Beacons      |__
               |___________|    |_______________|  | |______________|  
                                                   |
                                                   | +--------------+  
                                                   |_| Measurements |__
                                                     |______________|  

]]></artwork>

          <postamble>Document structure overview.</postamble>
        </figure></t>
    </section>

    <section anchor="oos" title="Out of Scope">
      <t>There are several items that are explicitly out of scope for this
      document. These include:</t>

      <t><list style="symbols">
          <t>Dead reckoning and other sensor data such as gyroscope,
          barometric pressure and accelerometer readings are expected to be
          incorporated into the positioning computation by the device prior to
          encoding the location object, and</t>

          <t>Computation of interpolated locations/readings are left for the
          downstream processor such as a LIS.</t>

          <t>Survey data gathered via 'crowdsource' methods whereby the data
          is gathered on end-user mobile devices.</t>
        </list></t>

      <t/>
    </section>

    <section title="Using PIDF-LO Location">
      <t>All location information in this container are specified using the
      GEOPRIV Presence Information Data Format Location Object. This includes
      the basic definition of the <xref target="RFC4119">PIDF-LO</xref>
      object, <xref target="RFC5491">PIDF-LO Clarification</xref>, <xref
      target="RFC5139">Revised Civic Location Format</xref>, <xref
      target="RFC5962">Dynamic Extensions to PIDF-LO</xref>, <xref
      target="I-D.ietf-geopriv-relative-location">PIDF-LO Relative
      Location</xref>, and <xref target="I-D.ietf-geopriv-local-civic">Civic
      Address Extensions</xref>.</t>

      <t>The PIDF-LO object provides a variety of mechanisms to indicate
      position. This may refer to the location of the venue, the location of a
      beacon or the location of the survey device itself. Several of the
      capabilities of the PIDF-LO object are discussed in this section. For a
      full specifications refer to the relevant RFCs and Internet Drafts.</t>

      <t>The PIDF-LO object allows for specification of elements that
      encompass:</t>

      <t/>

      <t><list style="symbols">
          <t>Position</t>

          <t>Timestamp</t>

          <t>Provider</t>

          <t>Uncertainty</t>

          <t>Bearing</t>

          <t>Speed</t>

          <t>Orientation</t>
        </list></t>

      <t>For purposes of signal positioning survey, we define several classes
      of PIDF-LO objects:</t>

      <t><list style="symbols">
          <t>Manual geolocation - human manipulation or specification of a
          geolocation</t>

          <t>Integrated geolocation - system generated geolocation (e.g. via
          GPS)</t>

          <t>Relative location - geolocation based on a defined reference
          point</t>
        </list></t>

      <t>Each of these methods of providing location can be encoded within the
      constructs provided by the PIDF-LO structure when combined with the
      necessary extensions mentioned above and described in more detail in
      subsequent sections.</t>

      <section title="Device Orientation">
        <t>The optional orientation elements allows the surveyor to provide
        precise information with respect to the orientation of the scanning
        device at the time the readings were made. This orientation
        information can be used to differentiate signal information when the
        device is held at different angles at each survey point.</t>

        <t>From the <xref target="RFC5962">"Dynamic Extensions to the Presence
        Information Data Format Location Object (PIDF-LO)"</xref>, we
        find:</t>

        <t>"The &lt;orientation&gt; element describes the spatial orientation
        of the presentity -- the direction that the object is pointing. For a
        device, this orientation might depend on the type of device."</t>

        <t>This proposed extension to the PIDF-LO object allows for the
        inclusion of device orientation within each PIDF-LO object.</t>

        <t/>

        <t>An example specifying device orientation:</t>

        <t/>

        <figure>
          <preamble/>

          <artwork><![CDATA[
   <presence
       xmlns="urn:ietf:params:xml:ns:pidf"
       xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
       xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
       xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
       xmlns:gml="http://www.opengis.net/gml"
       entity="pres:alice@example.com">
       <dm:device id="abc123">
           <gp:geopriv>
               <gp:location-info>
                   <dyn:Dynamic>
                       <dyn:orientation>-3 12</dyn:orientation>
                       <dyn:speed>24</dyn:speed>
                       <dyn:heading>278</dyn:heading>
                   </dyn:Dynamic>
               </gp:location-info>
               <gp:usage-rules/>
               <method>gps</method>
           </gp:geopriv>
           <timestamp>2009-06-22T20:57:29Z</timestamp>
           <dm:deviceID>mac:1234567890ab</dm:deviceID>
       </dm:device>
   </presence>
            ]]></artwork>

          <postamble/>
        </figure>

        <t/>
      </section>
    </section>

    <section title="Session">
      <t>The session element creates a container for the other elements of the
      survey. There should be a single survey per document.</t>

      <t>The session tag includes two required attributes: the sessionID and
      the sessionDate.</t>

      <t/>

      <t>SeesionID: contains an opaque string which provides a globally unique
      identifier for this survey.</t>

      <t>SessionDate: contains the date the survey was performed.</t>

      <t/>

      <t><figure>
          <preamble/>

          <artwork><![CDATA[
 <session sessionID="X88278xskkw" sessionDate="2009-06-22T20:57:29Z">
  ...
 </session>
            ]]></artwork>

          <postamble/>
        </figure></t>

      <section anchor="Venue" title="Venue">
        <t/>

        <t>The venue section describes the venue itself and also provides for
        two additional elements: the definition of the licensor and the
        definition of the policy for the included data.</t>

        <t><figure align="right" anchor="venue_pic">
            <artwork align="left"><![CDATA[                  +----------------+
                  | Venue xCard    |
                __| Name/Address   |
                | |________________|  
                |                    
 +-----------+  | +----------------+  
 | Venue     |__|_| Licensor xCard |
 |___________|  | | Name/Address   |
                | |________________| 
                |                                       
                | +----------------+   
                |_| License        |
                | |________________|
                |
                | +----------------+
                |_| Map Metadata   |
                  |________________|                      
                                                 ]]></artwork>

            <postamble>Venue structure overview.</postamble>
          </figure></t>

        <t/>

        <t>The venue section of the document provides for the ability to
        identify the venue in which the survey took place as well as the
        location of the venue.</t>

        <t/>

        <section title="Venue Name/Address">
          <t>This optional element provides the ability to specify the name
          and address of the venue for identification purposes. This element
          uses the <xref target="RFC6351">xCard</xref> XML format to provide
          the necessary structure for these elements.</t>

          <t/>

          <figure>
            <preamble/>

            <artwork><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<vcards xmlns:vc="urn:ietf:params:xml:ns:vcard-4.0">
     <vc:vcard>
       <vc:fn><vc:text>Example Building</vc:text></vc:fn>
       <vc:adr>
         <vc:parameters>
           <vc:type><vc:text>work</vc:text></vc:type>
           <vc:label><vc:text>Example Building
   1 South Boston Street
   Boston, MA USA 02210</vc:text></vc:label>
         </pvc:arameters>
         <vc:pobox/>
         <vc:ext/>
         <vc:street>1 South Boston Street</vc:street>
         <vc:locality>Boston</vc:locality>
         <vc:region>MA</vc:region>s
         <vc:code>02210</vc:code>
         <vc:country>USA</vc:country>
       </vc:adr>
     </vc:vcard>
</vcards>
            ]]></artwork>

            <postamble/>
          </figure>
        </section>

        <section title="Licensor">
          <t/>

          <t>The optional licensor section allows for the definition of the
          organization or individual that has the right to grant another
          individual or entity a license to the data. The licensor section
          also makes use of the <xref target="RFC6351">xCard</xref> format for
          encoding information about the name and address of the licensor
          entity.</t>

          <t/>

          <figure>
            <preamble/>

            <artwork><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<vcards xmlns:vc="urn:ietf:params:xml:ns:vcard-4.0">
     <vc:vcard>
       <vc:fn><text>Rober Builder</vc:text></vc:fn>
       <vc:n>
         <vc:surname>Builder</vc:surname>
         <vc:given>Robert</vc:given>
         <vc:additional/>
         <vc:prefix/>
         <vc:suffix/>
       </vc:n>
       <vc:adr>
         <vc:parameters>
           <vc:type><text>work</vc:text></vc:type>
           <vc:label><text>Rober Builder
   1 South Boston Street
   Boston, MA USA 02210</vc:text></vc:label>
         </vc:parameters>
         <vc:pobox/>
         <vc:ext/>
         <vc:street>1 South Boston Street</vc:street>
         <vc:locality>Boston</vc:locality>
         <vc:region>MA</vc:region>
         <vc:code>02210</vc:code>
         <vc:country>USA</vc:country>
       </vc:adr>
       <vc:tel>
         <vc:parameters>
           <vc:type>
             <vc:text>work</vc:text>
             <vc:text>voice</vc:text>
           </vc:type>
         </vc:parameters>
         <vc:uri>tel:+1-555-555-1212;ext=102</vc:uri>
       </vc:tel>
       <vc:email>
         <vc:parameters>
           <type><text>work</vc:text></vc:type>
         </vc:parameters>
         <vc:text>reober.builder@example.com</vc:text>
       </vc:email>
     </vc:vcard>
</vcards>
            ]]></artwork>

            <postamble/>
          </figure>
        </section>

        <section title="Data Rights Management">
          <t/>

          <t>The license object allows the licensor the ability to manage and
          grant usage rights to the survey data. This document includes a
          mechanism for including licensing terms. The licensing models are
          described in more detail below.</t>

          <t>The &lt;license&gt; object is optional. If missing, the license
          type is assumed to be 'unrestricted' with a default expiration.</t>

          <t/>

          <section title="License Expiry">
            <t>The optional License Expiry tag allows the surveyor to set time
            limits on the usage granted by the License Type. By default the
            data license expires 30 days after the date identified in the
            sessionDate.</t>

            <t>&lt;licenseExpiry&gt;2008-04-29T14:33:58&lt;/licenseExpiry&gt;</t>

            <t/>
          </section>

          <section title="License URI">
            <t>The License URI provides an optional element to identify the
            terms of a 'Private' license type. This allows</t>
          </section>

          <section anchor="LicenseType" title="License Type">
            <t/>

            <t>The optional policy element is intended to allow the licensor
            of the data gahtered for a given venue to provide granular control
            over the use and subsequent derivative works based on the
            venue&rsquo;s infrastructure. In the event that no policy is
            specified, it is assumed that the data is released using the
            unrestricted policy.</t>

            <t>There are eight pre-defined Data License Types grouped into
            three categories.</t>

            <section title="Unrestricted License">
              <t>The unrestricted policy allows for the use and unrestricted
              derivative products based on the data set. If the data expires,
              the original data can no longer be used, but any derivative
              products that were generated during the granted use of the data
              remains valid.</t>

              <t>Example of an unrestricted license delcaration:</t>

              <figure>
                <preamble/>

                <artwork><![CDATA[   <license>
     <licenseExpiry>2108-04-29T14:33:58</licenseExpiry>
     <licenseType>unrestricted</licenseType>
   </license>
            ]]></artwork>

                <postamble/>
              </figure>

              <t/>

              <t/>
            </section>

            <section title="Creative Commons License">
              <t>The <xref target="CC">Creative Commons</xref> provide a
              number of licensing options which, in some cases, permit the
              licensor of the data to restrict commercial use and/or
              derivative works. Derivative use of survey data refers to the
              ability to bootstrap a beacon database based on survey data.
              Survey data at a high quality could be used to 'seed' a location
              system, allowing an organization to build aeacon location
              database over time. At some point, the original data could be
              removed but the derived database would allow the system to
              continue to be functional. For data licensors who wish to
              protect from this, the notion of derivative rights is included
              in the license structure.</t>

              <t>Valid Creative Common license types for this specification
              include the following.</t>

              <t>For non-commercial use:</t>

              <t><list style="symbols">
                  <t>Attribution-NonCommercial-ShareAlike CC BY-NC-SA - This
                  license lets others remix, tweak, and build upon the
                  licnesor's work non-commercially, as long as they credit the
                  licensor and license their new creations under the identical
                  terms.</t>

                  <t>Attribution-NonCommercial CC BY-NC - This license lets
                  others remix, tweak, and build upon the licensor's work
                  non-commercially, and although their new works must also
                  acknowledge the licensor and be non-commercial, they
                  don&rsquo;t have to license their derivative works on the
                  same terms.</t>

                  <t>Attribution-NonCommercial-NoDerivs CC BY-NC-ND - This
                  license only allows others to use the licensor's works and
                  share them with others as long as they credit the licensor,
                  but they can&rsquo;t change them in any way or use them
                  commercially.</t>
                </list></t>

              <t>For commercial use:</t>

              <t><list style="symbols">
                  <t>Attribution CC BY - This license lets others distribute,
                  remix, tweak, and build upon the licensor's work, even
                  commercially, as long as they credit the licensor for the
                  original creation.</t>

                  <t>Attribution-NoDerivs CC BY-ND - This license allows for
                  redistribution, commercial and non-commercial, as long as it
                  is passed along unchanged and in whole, with credit to the
                  licensor.</t>

                  <t>Attribution-ShareAlike CC BY-SA - This license lets
                  others remix, tweak, and build upon the licensor's work even
                  for commercial purposes, as long as they credit the licensor
                  and license their new creations under the identical
                  terms.</t>
                </list></t>

              <figure>
                <artwork><![CDATA[   <license>
     <licenseExpiry>2008-04-29T14:33:58</licenseExpiry>
     <licenseType>CC BY-ND</licenseType>
   </license>
            ]]></artwork>

                <postamble/>
              </figure>

              <t/>

              <t/>
            </section>

            <section title="Private License">
              <t>The private license is intended to provide full control over
              the usage and derivative usage of the data. Any use of the data
              would be governed under a separate agreement between the
              licensor and the party wishing to make use of the data. By
              default, no rights are granted for private data.</t>

              <t>For example, suppose a venue owner wishes to provide location
              services within their venue, but only for their application. The
              arrangment for providing this service could be managed out of
              band from the protocol. However, the data itself is fully
              transportable and allows for the venue owner to reprovision the
              service with a different provider if they so desire. Service
              providers without an arrangement could automatically determine
              that this data cannot be used.</t>

              <figure>
                <preamble/>

                <artwork><![CDATA[   <license>
     <licenseType>private</licenseType>
     <licenseURI>http://www.example.com/mylicense.html</licenseURI>
     <licenseExpiry>2008-04-29T14:33:58</licenseExpiry>
   </license>
            ]]></artwork>

                <postamble/>
              </figure>

              <t/>

              <t/>
            </section>
          </section>
        </section>

        <section title="Map Metadata">
          <t/>

          <t>The optional "map" URL can be used to provide a user or system
          with a visual reference for the location information. This URL
          specification is based on that provided in Section 4.11 of <xref
          target="I-D.ietf-geopriv-relative-location"> PIDF-LO Relative
          Location</xref> specification. For purposes of the overall Venue
          map, the offset SHOULD provide the offset to the starting location
          on the map for the survey.</t>

          <t><figure>
              <preamble/>

              <artwork><![CDATA[   <rel:map>
     <rel:url type="image/jpeg">
        http://example.com/map.jpg
     </rel:url>
     <rel:offset> 200 210</rel:offset>
     <rel:orientation>68</rel:orientation>
     <rel:scale>2.90 -2.90</rel:scale>
   </rel:map>
            ]]></artwork>

              <postamble/>
            </figure></t>

          <t/>
        </section>
      </section>

      <section anchor="SurveyDevice" title="Survey Device">
        <t>The specification includes elements to describe the capabilities of
        the hardware and software of the scanning device as well as the
        hardware and software for the sensors that were used to capture the
        scan data. This can allow further downstream processing by
        discriminating source data based on capabilities and known
        device/sensor profiles and behaviors.</t>

        <t>The Survey Device section SHOULD contain one device configuration
        record. It MAY contain 0-n sensor configuration elements.</t>

        <t><figure align="center" anchor="survey_pic">
            <preamble/>

            <artwork align="left"><![CDATA[                             
              _+-------------+    +-----------------+
             | | Hardware    |____|| Configuration ||                      
             | |_____________|    ||_______________||
             |               
             |_+-------------+    +-----------------+
             | | Software    |____|| Configuration ||                      
             | |_____________|    ||_______________||
+---------+  |                                     
| Survey  |__|                                     
| Device  |  |
|_________|  | +-------------+    +-------------+   +-----------------+  
             |_| Sensor (0-n)|____| Hardware    |___|| Configuration ||                      
               |_____________|  | |_____________|   ||_______________||
                                |
                                | +-------------+   +-----------------+  
                                |_| Software    |___|| Configuration ||                      
                                  |_____________|   ||_______________||

]]></artwork>

            <postamble>Survey Device structure overview.</postamble>
          </figure></t>

        <section title="Configuration Object">
          <figure align="center" anchor="config_pic">
            <preamble/>

            <artwork align="left"><![CDATA[
                       +-----------------+
                     __| Type            |
                     | |_________________|
                     |
                     | +-----------------+
                     |_| Id              |
                     | |_________________|
                     |
                     | +-----------------+
                     |_| Name            |
                     | |_________________|
+-----------------+  |
| Configuration   |__| +-----------------+               
|_________________|  |_| Manufacturer    |
                     | |_________________|
                     |
                     | +-----------------+
                     |_| Model           |
                     | |_________________|
                     |
                     | +-----------------+
                     |_| Version         |
                     | |_________________|
                     |
                     | +-----------------+
                     |_| Vendor          |
                     | |_________________|
                     |
                     | +-----------------+
                     |_| Capability      |
                       |_________________|
            ]]></artwork>

            <postamble>Survey Device Configuration structure
            overview.</postamble>
          </figure>

          <t>The configuration object allows for the description of a various
          hardware components used to perform the survey. This allows for the
          description of the survey device itself as well as any sensors or
          radio components that are used in performing the survey.</t>

          <t>The configuration object can contain various elements as
          described below. Required items are noted.</t>

          <t><list style="symbols">
              <t>id - (required) - provides a locally unique identifier for
              the component being described. For example, this could be the
              MAC address if describing a WiFi Network Interface Card.</t>

              <t>name - (required) - the name of the device/sensor</t>

              <t>vendor - (0-1) - a human readable description of the
              component vendor</t>

              <t>model - (0-1) -the model and model number of the
              component</t>

              <t>capability - (0-n) - a name/value pair to allow arbitrary
              configuration and capability declarations for each configuration
              object.</t>
            </list></t>
        </section>

        <section title="Example Device Configuration">
          <t>An example &lt;device&gt; object is shown below.</t>

          <figure>
            <preamble/>

            <artwork><![CDATA[<device>
    <hardware>
        <configuration>
            <type>device</type>
            <name>mapit</name>
            <version>1.2</version>


            <id>abc</id>
            <model>900</model>
            <capabiity name="chipset">Intel Q965</capability>
            <capabiity name="power">12 volt</capability>
        </configuration>
    </hardware>
    <software>
        <configuration>
            <type>software</type>
            <name>Centos6</name>
            <version>2.6.18-308.1.1.el5 #1 SMP x86_64 GNU</version>
        </configuration>
    </software>
    <sensor>
        <hardware>
            <configuration>
                <id>000FFA9870BC</id>
                <name>External WiFi</name>
                <version>1.23</version>
                <vendor>aetheros</vendor>
                <capability name="antenna">omni-directional</capability>
                <capability name="gain">10</capability>
                <capability name="chipset">aetheros</capability>
                <capability name="standard">a,b,g,n</capability>
                <capability name="frequencyband">1-13</capability>
                </capabilities>
            </configuration>
        </hardware>
        <software>
            <configuration>
                <name>atheros driver</name>
                <version>ath9k</version>
            </configuration>
        </software>
    </sensor>
    <sensor>
        <hardware>
            <configuration>
                <type>gps</type>
                <id>gm39211</id>
                <version>4.23a</version>
                <vendor>unknown</vendor>
                <capability name="antenna">combined</capability>
                <capability name="chipset">qualcomm</capability>
            </configuration>
        </hardware>
    </sensor>
</device>
            ]]></artwork>

            <postamble/>
          </figure>

          <t/>
        </section>
      </section>

      <section anchor="SurveyData" title="Survey Data">
        <t>The survey section represents all of the scanned or input data
        gathered about the venue in this session. Within a
        &lsquo;survey&rsquo;, there may be 0-n &lsquo;readings&rsquo; which
        will contain a complete set of information about a subset of the
        survey. For example, a single room could be captured within a
        &lsquo;readings&rsquo; segment.</t>

        <t>This document defines location-related measurement data types for a
        range of common sensor types.</t>

        <t>All included measurement data definitions allow for arbitrary
        extension in the corresponding schema. As new parameters that are
        applicable to location determination are added, these can be added as
        new XML elements in a unique namespace. Though many of the underlying
        protocols support extension, creation of specific XML-based extensions
        to the measurement format is favored over accommodating
        protocol-specific extensions in generic containers.</t>

        <t>Note, the "time" attribute records the time that the measurement or
        observation was made. This time can be different from the time that
        the measurement information was reported. Time information can be used
        to populate a timestamp on each ground truth element and to the root
        "measurement" element. If it is necessary to provide multiple sets of
        measurement data with different times, multiple "measurement" elements
        SHOULD be provided.</t>

        <t/>

        <figure align="center" anchor="survey_data_pic">
          <preamble/>

          <artwork align="left"><![CDATA[
                                                         
                                        +--------------+ 
                                      __| Ground Truth |__
                                      | |______________|  
                                      |
 +-------------+   +---------------+  | +--------------+  
-| Survey Data |___| Survey Point  |__|_| Beacons      |__
 |_____________|   |_______________|  | |______________|  
                                      |
                                      | +--------------+  
                                      |_| Measurements |__
                                        |______________|  

]]></artwork>

          <postamble>Document structure overview.</postamble>
        </figure>

        <t>Survey Points describe a subset of the survey information and
        potentially include Ground Truth, Beacon IDs, and Signal Measurements.
        These categories of information are detailed further in the following
        sections.</t>

        <t/>

        <section title="Ground Truth">
          <t>Ground truth is a term that describes the location of the Survey
          Device.</t>

          <t>The &lsquo;ground truth&rsquo; element is designed to allow the
          specification and recording of the location at which the survey
          point was captured. To encompass various survey and usage scenarios,
          there are currently three GroundTruth types available for each
          survey point. These include PIDF-LO location object, a Contextual
          Location object, and/or a Raw Location object. These are described
          further below.</t>

          <t>Multiple Ground Truth objects are allowed for interpolation
          between a starting point and an endpoint without explicitly
          declaring each scan position. The interpolation of the survey data
          is left to the downstream processor such as an LIS server.</t>

          <t>groundTruth MUST have at least 1 SurveyPoint object as defined
          below.</t>

          <t/>

          <figure align="center" anchor="groundtruth_pic">
            <artwork align="left"><![CDATA[ 
                    +----------------+   +----------+
                   _| Basic Location |- -| Civic    |
                  | |________________|   | Location |
+-------------+   |                      |__________|
| GroundTruth |___| +----------------+  
|_____________|   |_| Raw Location   |
                    | Data           |
                    |________________|
                                      ]]></artwork>

            <postamble>Groundtruth structure overview.</postamble>
          </figure>

          <t/>

          <t/>

          <section title="PIDF-LO Location">
            <t>This section describes the primary PIDF-LO method types that
            are supported by this specification. While all PIDF-LO location
            'methods' are possible, the following are the only methods that
            MUST be supported.</t>

            <t><list style="symbols">
                <t>GPS</t>

                <t>A-GPS</t>

                <t>Triangulation</t>

                <t>Cell</t>

                <t>Manual</t>
              </list></t>

            <t>In addition, support MUST be provided for relative locations as
            described below for each of the above PIDF-LO location
            methods.</t>

            <t/>

            <section title="Basic Location">
              <t>Basic location represents a location as provided by the
              Survey Device. This could be from a location API, WiFi
              positioning, an integrated GPS, or any other mechanism that
              computes or determines the location of the survey device. To
              encompass this variety of locative technologies, the structure
              of the object provides numerous constructs.</t>

              <t>An example of an integrated GPS location including dynamic
              orientation extensions is shown below. More examples of
              encodings can be found in <xref target="RFC5491">PIDF-LO
              Usage</xref>.</t>

              <figure>
                <preamble/>

                <artwork><![CDATA[
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
          xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
          xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative"
          xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
          xmlns:gml="http://www.opengis.net/gml">
    <tuple id="abcd123456">
        <status>
           <gp:geopriv>
             <gp:location-info>
               <gs:Ellipsoid srsName="urn:ogc:def:crs:EPSG::4326">
                 <gml:pos>42.5463 -73.2512 26.3</gml:pos>
                 <gs:semiMajorAxis uom="urn:ogc:def:uom:EPSG::9001">
                   7.7156
                 </gs:semiMajorAxis>
                 <gs:semiMinorAxis uom="urn:ogc:def:uom:EPSG::9001">
                   3.31
                 </gs:semiMinorAxis>
                 <gs:verticalAxis uom="urn:ogc:def:uom:EPSG::9001">
                   28.7
                 </gs:verticalAxis>
                 <gs:orientation uom="urn:ogc:def:uom:EPSG::9102">
                   90
                 </gs:orientation>
                 <dyn:Dynamic>
                     <dyn:orientation>-3 12</dyn:orientation>
                     <dyn:speed>24</dyn:speed>
                     <dyn:heading>278</dyn:heading>
                 </dyn:Dynamic>
               </gs:Ellipsoid>
             </gp:location-info>
             <gp:usage-rules/>
               <method>gps</method>
             <gp:usage-rules/>
          </gp:geopriv>
          <timestamp>2009-06-22T20:57:29Z</timestamp>
       </status>
    </tuple>
</presence>


]]></artwork>

                <postamble/>
              </figure>

              <t/>

              <t/>
            </section>

            <section title="Relative Location">
              <t/>

              <t>A relative location is based on the topology of the venue and
              is specified by first declaring one or more anchors that contain
              a geospatial reference.</t>

              <t>Relative Location MUST be defined using <xref
              target="I-D.ietf-geopriv-relative-location">"Internet Draft
              Relative Location Representation" </xref>.</t>

              <t>An example of a PIDF-LO geopriv object with relative location
              extensions included is shown below.</t>

              <figure>
                <preamble/>

                <artwork><![CDATA[<presence xmlns="urn:ietf:params:xml:ns:pidf"
          xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
          xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
          xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative"
          xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
          xmlns:gml="http://www.opengis.net/gml">
    <tuple id="abcd123456">
      <status>
        <gp:geopriv>
          <gp:location-info>
            <gml:Circle srsName="urn:ogc:def:crs:EPSG::4326">
              <gml:pos>-34.407 150.883</gml:pos>
              <gs:radius uom="urn:ogc:def:uom:EPSG::9001">
                     50.0
              </gs:radius>
            </gml:Circle>
            <rel:relative-location>
              <rel:reference>
                <gml:Point srsName="urn:ogc:def:crs:EPSG::4326">
                  <gml:pos>-34.407 150.883</gml:pos>
                </gml:Point>
              </rel:reference>
              <rel:offset>
                <gml:Circle xmlns:gml="http://www.opengis.net/gml"
                      srsName="urn:ietf:params:geopriv:relative:2d">
                    <gml:pos>500.0 750.0</gml:pos>
                    <gml:radius uom="urn:ogc:def:uom:EPSG::9001">
                       5.0
                     </gml:radius>
               </gml:Circle>
            </rel:relative-location>
            <map:map>
              <map:urltype="image/png">
                https://www.example.com/flrpln/123South/flr-2</gp:url>
              <map:offset> 2670.0 1124.0 1022.0</gp:offset>
              <map:orientation>67.00</gp:orientation>
              <map:scale>10</gp:scale>
            </map:map>
          </gp:location-info>
          <gp:usage-rules/>
          <gp:method>Triangulation</gp:method>
        </gp:geopriv>
        <timestamp>2007-06-22T20:57:29Z</timestamp>
      </status>
    </tuple>
</presence>
            ]]></artwork>

                <postamble/>
              </figure>

              <t/>
            </section>

            <section title="Manual Location">
              <t/>

              <t>The manual location object allows the surveyor to specify the
              geospatial coordinate and/or a civic address to be associated
              with the &lsquo;readings&rsquo; data.</t>

              <t>This element contains any valid location, using the rules for
              a "location-info" element, as described in <xref
              target="RFC5491">RFC 5491</xref>. Location information in a
              survey may be described in a geospatial manner based on a subset
              of Geography Markup Language (GML) 3.1.1 [OGC-GML3.1.1] or as
              civic location information <xref target="RFC5139">RFC
              5139</xref> and refined in <xref target="RFC5774">RFC
              5774</xref>. An <xref target="OGC-GML3.1.1">OGC GML</xref>
              profile for expressing geodetic shapes in a PIDF-LO is described
              in <xref target="GeoShape">GML GeoShape Application
              Schema</xref>.</t>

              <t>Below are several examples of manual location objects.</t>

              <t><figure>
                  <preamble/>

                  <artwork><![CDATA[<presence xmlns="urn:ietf:params:xml:ns:pidf"
          xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
          xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
          xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative"
          xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
          xmlns:gml="http://www.opengis.net/gml">
    <tuple id="abcd123456">
      <status>
        <gp:geopriv>
          <gp:location-info>
            <gml:Point srsName="urn:ogc:def:crs:EPSG::4326">
                <gml:pos>-43.5723 153.21760</gml:pos>
            </gml:Point>
          </gp:location-info>
        </gp:geopriv>
        <timestamp>2007-06-22T20:57:29Z</timestamp>
      </status>
    </tuple>
</presence>
            ]]></artwork>

                  <postamble>Sample manual location using a point.</postamble>
                </figure></t>

              <t><figure>
                  <preamble/>

                  <artwork><![CDATA[
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
          xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
          xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative"
          xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
          xmlns:gml="http://www.opengis.net/gml">
    <tuple id="abcd123456">
      <status>
        <gp:geopriv>
          <gp:location-info>
              <gs:Circle srsName="urn:ogc:def:crs:EPSG::4326">
                  <gml:pos>42.5463 -73.2512</gml:pos>
                  <gs:radius uom="urn:ogc:def:uom:EPSG::9001">
                      5.24
                  </gs:radius>
              </gs:Circle>
          </gp:location-info>
        </gp:geopriv>
        <timestamp>2007-06-22T20:57:29Z</timestamp>
      </status>
    </tuple>
</presence>
           ]]></artwork>

                  <postamble>Sample manual location using a circle with a
                  radius to represent error estimate.</postamble>
                </figure></t>

              <t/>
            </section>

            <section title="Civic Location">
              <t/>

              <t>To support adding contextual information to survey points
              during the survey process, this specification includes the
              ability to add extended civic addresses as defined by</t>

              <t>the optional Contextual Location object is provided. This
              object enables the capture of contextual information with
              resepect to a survey point.</t>

              <t>For example, an office building may have floors, wings,
              rooms, and cubes while an amusement park will have rides,
              booths, food stands and arcades. The civic address extensions
              provide a mechanism for extending these attributes and
              maintaining interoperability.</t>

              <t/>

              <t>Example of civic location:</t>

              <t><figure>
                  <preamble/>

                  <artwork><![CDATA[
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
          xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
          xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative"
          xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
          xmlns:gml="http://www.opengis.net/gml">
    <tuple id="abcd123456">
      <status>
        <gp:geopriv>
          <gp:location-info>
              <gml:Point srsName="urn:ogc:def:crs:EPSG::4326">
                  <gml:pos>-43.5723 153.21760</gml:pos>
              </gml:Point>
              <civicAddress xml:lang="en-US"
                 xmlns="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
                 xmlns:post="http://postsoftheworld.net/ns"
                 xmlns:ap="http://example.com/airport/5.0">
                <country>US</country>
                <A1>CA</A1>
                <post:lamp>2471</post:lamp>
                <post:pylon>AQ-374-4(c)</post:pylon>
                <ap:airport>LAX</ap:airport>
                <ap:terminal>Tom Bradley</ap:terminal>
                <ap:concourse>G</ap:concourse>
                <ap:gate>36B</ap:gate>
              </civicAddress>
          </gp:location-info>
        </gp:geopriv>
        <timestamp>2007-06-22T20:57:29Z</timestamp>
      </status>
    </tuple>
</presence>
            ]]></artwork>

                  <postamble/>
                </figure></t>

              <t>The optional civicAddress object can be included in any of
              the PIDF-LO objects defined above.</t>

              <t/>
            </section>
          </section>

          <section title="Raw Location Data">
            <t/>

            <t>To support the capture and conveyance of underlying raw
            location data, a common optional container is defined for the
            expression of this location measurement data.</t>

            <t>Currently only the &lsquo;GNSS&rsquo; raw location type has
            been defined. Global Navigation Satellite System (GNSS) readings
            provide location measurements based on satellite navigation
            systems such as that provided by GPS.</t>

            <t>Rather than decomposing GNSS output during the survey, the
            sentences from the GNSS systems are transported as is allowing
            full downstream processing of the data.</t>

            <t>The type attribute specifies the GNSS system type which is
            responsible for the reading, e.g. GPS.</t>

            <t>The GPS system generally uses the <xref target="NMEA0183">NMEA
            0183</xref> protocol for output and many systems have been built
            to handle this type of output. To provide the most transparent
            transport mechanism, the NMEA sentences are packaged as-is.</t>

            <t>The possible sentence names are described below.</t>

            <t/>

            <t><figure>
                <preamble>The REQUIRED set of sentences include:</preamble>

                <artwork><![CDATA[
$GPGGA - Global Positioning System Fix Data (required)
$GPGSA - GPS DOP and Active Satellites (recommended)
$GPRMC - Recommended Minimum Specific GPS/TRANSIT Data (recommended)
            ]]></artwork>

                <postamble/>
              </figure></t>

            <t><figure>
                <preamble>The remaining OPTIONAL sentences are detailed
                below:</preamble>

                <artwork><![CDATA[
$GPAAM - Waypoint Arrival Alarm
$GPALM - GPS Almanac Data<
$GPAPA - Autopilot Sentence "A"
$GPAPB - Autopilot Sentence "B"
$GPASD - Autopilot System Data
$GPBEC - Bearing & Distance to Waypoint, Dead Reckoning
$GPBOD - Bearing, Origin to Destination
$GPBWC - Bearing & Distance to Waypoint, Great Circle
$GPBWR - Bearing & Distance to Waypoint, Rhumb Line
$GPBWW - Bearing, Waypoint to Waypoint
$GPDBT - Depth Below Transducer
$GPDCN - Decca Position
$GPDPT - Depth
$GPFSI - Frequency Set Information
$GPGLC - Geographic Position, Loran-C
$GPGLL - Geographic Position, Latitude/Longitude
$GPGSV - GPS Satellites in View
$GPGXA - TRANSIT Position
$GPHDG - Heading, Deviation & Variation
$GPHDT - Heading, True
$GPHSC - Heading Steering Command
$GPLCD - Loran-C Signal Data
$GPMTA - Air Temperature (to be phased out)
$GPMTW - Water Temperature
$GPMWD - Wind Direction
$GPMWV - Wind Speed and Angle
$GPOLN - Omega Lane Numbers
$GPOSD - Own Ship Data
$GPR00 - Waypoint active route (not standard)
$GPRMA - Recommended Minimum Specific Loran-C Data
$GPRMB - Recommended Minimum Navigation Information
$GPROT - Rate of Turn
$GPRPM - Revolutions
$GPRSA - Rudder Sensor Angle
$GPRSD - RADAR System Data
$GPRTE - Routes
$GPSFI - Scanning Frequency Information
$GPSTN - Multiple Data ID
$GPTRF - Transit Fix Data
$GPTTM - Tracked Target Message
$GPVBW - Dual Ground/Water Speed
$GPVDR - Set and Drift
$GPVHW - Water Speed and Heading
$GPVLW - Distance Traveled through the Water
$GPVPW - Speed, Measured Parallel to Wind
$GPVTG - Track Made Good and Ground Speed
$GPWCV - Waypoint Closure Velocity
$GPWNC - Distance, Waypoint to Waypoint
$GPWPL - Waypoint Location
$GPXDR - Transducer Measurements
$GPXTE - Cross-Track Error, Measured
$GPXTR - Cross-Track Error, Dead Reckoning
$GPZDA - Time & Date
$GPZFO - UTC & Time from Origin Waypoint
$GPZTG - UTC & Time to Destination Waypoint

            ]]></artwork>

                <postamble/>
              </figure></t>

            <t>The sentences contain the name of the sentence in the content
            so there is no reason to add additional identifying information
            beyond the sentence itself.</t>

            <t>The GPS configuration may optionally be detailed in the device
            sensor descriptions section.</t>

            <t><figure>
                <preamble>Example:</preamble>

                <artwork><![CDATA[
<rawlocation>
    <gnss type="gps">
        <sentences>
          <type>GPGGA</type>
          <value>
$GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,*76
          </value>
          <type>GPGSA</type>
          <value>
$GPGSA,A,3,10,07,05,02,29,04,08,13,,,,,1.72,1.03,1.38*0A
          </value>
          <type>GPSV</type>
          <value>
$GPGSV,3,1,11,10,63,137,17,07,61,098,15,05,59,290,20,08,54,157,30*70
          </value>
          <type>GPSV</type>
          <value>
$GPGSV,3,2,11,02,39,223,19,13,28,070,17,26,23,252,,04,14,186,14*79
          </value>
          <type>GPRMC</type>
          <value>
$GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A*43
          </value>
      </sentences>
  </gnss>
</rawlocation>
            ]]></artwork>
              </figure></t>
          </section>
        </section>

        <section title="Beacons">
          <t>The intent of the &lt;beacon&gt; object is to allow the surveyor
          to identify individual beacons and specify the location of that
          beacon. In other words, in a site survey where beacon A is located
          at x1, y1 and beacon B is located at x2, y2, this construct would
          allow for that. This is for those instances where exact beacon
          position is useful for the LIS to compute device locations.</t>

          <t>Beacon Identification</t>

          <t>&lt;beacon
          type=&ldquo;wifi&rdquo;,&rdquo;bluetooth&rdquo;,...&gt;</t>

          <t>The beacon object allows the identification of a specific set of
          beacons. A beacon is specified as an object to be used for
          positioning which can be identified by a unique identifier. For
          example in an Infrastructure WiFi network, the basic service set
          identifier (bssid) is the 48 bit MAC address of the access point.
          This specification allows for the possibility of manually
          identifying beacons and including that information in the
          survey.</t>

          <t>The type attribute is required.</t>

          <t><figure>
              <preamble/>

              <artwork><![CDATA[<beacon type="wifi">
    <id>
        <mac>003200A475C5</mac>
    </id>
</beacon> 
            ]]></artwork>

              <postamble/>
            </figure></t>

          <t>The elements include:</t>

          <t><list style="symbols">
              <t>id (required) - indicates the key(s) necessary to uniquely
              identify the beacon of the given type</t>
            </list></t>

          <t/>
        </section>

        <section title="Signal Measurements">
          <t/>

          <t>Signal-Related Measurement Data Types</t>

          <t>A common container is defined for the expression of location
          measurement data, as well as a simple means of identifying specific
          types of measurement data for the purposes of requesting them.</t>

          <t>The following example shows a measurement container with
          measurement time included. A WiFi measurement is enclosed.</t>

          <t><figure>
              <preamble/>

              <artwork><![CDATA[     <lm:measurements xmlns:lm="urn:ietf:params:xml:ns:geopriv:lm"
                      time="2008-04-29T14:33:58">
       <wifi xmlns="urn:ietf:params:xml:ns:geopriv:lm:wifi">
         <ap serving="true">
           <bssid>00-12-F0-A0-80-EF</bssid>
           <ssid>wlan-home</ssid>
         </ap>
       </wifi>
     </lm:measurements>
            ]]></artwork>

              <postamble/>
            </figure></t>

          <t>The "measurement" element is used to encapsulate measurement data
          that is collected at a certain point in time. It contains time-based
          attributes that are common to all forms of measurement data, and
          permits the inclusion of arbitrary measurement data.</t>

          <t/>

          <section title="WiFi Measurements">
            <t/>

            <t>WiFi Measurements are based on the proposed measurements
            defined in the <xref
            target="I-D.ietf-geopriv-held-measurements">IETF I-D Held
            Measurements</xref> document.</t>

            <t>In WiFi, or <xref target="IEEE.80211.2007">802.11</xref>,
            networks a Device might be able to provide information about the
            access point (AP) that it is attached to, or other WiFi points it
            is able to see. This is provided using the "wifi" element, as
            shown in Figure 6, which shows a single complete measurement for a
            single access point.</t>

            <t>WiFi scan elements contain a single record for each Access
            Point which was scanned for each time stamp that that AP was
            scanned.</t>

            <t>APs should be scanned as rapidly as feasible to obtain as many
            samples as possible.</t>

            <t><figure>
                <preamble/>

                <artwork><![CDATA[     <measurements xmlns="urn:ietf:params:xml:ns:geopriv:lm"
                   time="2011-04-29T14:33:58">
       <wifi xmlns="urn:ietf:params:xml:ns:geopriv:lm:wifi">
         <nicType>Intel(r)PRO/Wireless 2200BG</nicType>
         <ap serving="true">
           <bssid>AB-CD-EF-AB-CD-EF</bssid>
           <ssid>example</ssid>
           <channel>5</channel>
           <location>
             <gml:Point xmlns:gml="http://opengis.net/gml">
               <gml:pos>-34.4 150.8</gml:pos>
             </gml:Point>
           </location>
           <type>a</type>
           <band>5</band>
           <regclass country="AU">2</regclass>
           <antenna>2</antenna>
           <flightTime rmsError="4e-9" samples="1">2.56e-9</flightTime>
           <apSignal>
             <transmit>23</transmit>
             <gain>5</gain>
             <rcpi dBm="true" rmsError="12" samples="1">-59</rcpi>
             <rsni rmsError="15" samples="1">23</rsni>
           </apSignal>
           <deviceSignal>
             <transmit>10</transmit>
             <gain>9</gain>
             <rcpi dBm="true" rmsError="9.5" samples="1">-98.5</rcpi>
             <rsni rmsError="6" samples="1">7.5</rsni>
           </deviceSignal>
         </ap>
       </wifi>
     </measurements>

]]></artwork>

                <postamble>802.11 WiFi Measurement Example</postamble>
              </figure></t>

            <t>A wifi element is made up of one or more access points, and an
            optional "nicType" element. Each access point is described using
            the "ap" element, which is comprised of the following fields:</t>

            <t>Required:</t>

            <t><list style="symbols">
                <t>bssid: The basic service set identifier. In an
                Infrastructure BSS network, the bssid is the 48 bit MAC
                address of the access point. The "verified" attribute of this
                element describes whether the device has verified the MAC
                address or it authenticated the access point or the network
                operating the access point (for example, a captive portal
                accessed through the access point has been authenticated).
                This attributes defaults to a value of "false" when
                omitted.</t>

                <t>rcpi: The received channel power indicator for the access
                point signal, as measured by the Device. This value SHOULD be
                in units of dBm (with RMS error in dB). If power is measured
                in a different fashion, the "dBm" attribute MUST be set to
                "false". Signal strength reporting on current hardware uses a
                range of different mechanisms; therefore, the value of the
                "nicType" element SHOULD be included if the units are not
                known to be in dBm and the value reported by the hardware
                should be included without modification. This element includes
                optional "rmsError" and "samples" attributes.</t>
              </list></t>

            <t>Optional (as defined in the <xref
            target="I-D.ietf-geopriv-held-measurements">IETF I-D Held
            Measurements</xref> document.</t>

            <t><list style="symbols">
                <t>ssid</t>

                <t>channe</t>

                <t>location</t>

                <t>type</t>

                <t>band</t>

                <t>regclass</t>

                <t>antenna</t>

                <t>flightTime</t>

                <t>apSignal</t>
              </list></t>

            <t/>
          </section>

          <section title="Bluetooth Measurements">
            <t/>

            <t>Note: these need to be clarified and added to
            held-measurements.</t>

            <t>Bluetooth devices provide an alternative method for determining
            location. The bluetooth object provides a method to capture
            measurements related to bluetooth devices discovered during the
            survey.</t>

            <t><list style="symbols">
                <t>Address/UUID - 48-bit unique identifier</t>

                <t>Name</t>

                <t>Version</t>

                <t>Manufacturer</t>

                <t>Features</t>

                <t>Class</t>

                <t>Signal Strength</t>

                <t>Link Quality</t>
              </list></t>

            <t/>
          </section>

          <section title="Other Signal Measurements ">
            <t>The container allows for the definition of other measurements
            to be captured. These could include measurements of such things as
            sound ranging or echolocation signals, cellular signals, or other
            electromagnetic signal measurement.</t>

            <t/>

            <t/>
          </section>
        </section>
      </section>
    </section>

    <section title="Protocol Description">
      <t>The SigPos protocol provides for the submission of signal survey data
      in the form of a SigPos document to a LIS. Three messages are defined to
      support the SigPost submission:: sigPosSubmission and
      sigPosResponse.</t>

      <t>The SigPos Submission (sigPosSubmission) message is described in
      Section xxx. In case of success, the LIS replies with a sigPosResponse
      message, including a success code. In the case of an error, the LIS
      replies with a sigPosResponse message with an error code.</t>

      <t>The SigPos protocol messages are defined as XML documents that MUST
      be encoded in UTF-8. A MIME type "application/sigpos+xml" is registered
      in Section xxxx to distinguish SigPos messages from other XML document
      bodies. This specification follows the recommendations and conventions
      described in [RFC3023], including the naming convention of the type
      (&rsquo;+xml&rsquo; suffix) and the usage of the &rsquo;charset&rsquo;
      parameter. The &rsquo;charset&rsquo; parameter MUST be included with the
      XML document.</t>

      <t>Section 9 contains a more specific definition of the structure of
      these messages in the form of an XML Schema
      [W3C.REC-xmlschema-1-20041028].</t>

      <t>Section 10 describes the use of a combination of HTTP over TLS
      [RFC5246] for transporting the HELD messages.</t>

      <t/>

      <section title="Survey Submission">
        <t>A sigpos submission message is sent from the Device to the LIS when
        the Device completes a survey.</t>

        <t>The sigpos submission is made by sending a document formed of a
        "sigPosSubmission" element. The LIS authenticates the Device and uses
        the authenticated identity for the requesting Device. It is
        anticipated that other Device identities may be provided through
        schema extensions.</t>

        <t>The LIS MUST ignore any part of a sigpos submission message that it
        does not understand, except the document element. If the document
        element of a request is not supported, the LIS MUST return an error
        with the unsupportedMessage error code.</t>

        <t/>
      </section>

      <section title="Survey Response">
        <t>A successful response to a sigpos submission request MUST contain a
        successful code.</t>

        <t/>
      </section>

      <section title="Indicating Errors">
        <t>If the LIS is unable to validate the sigpos survey based on the
        received sigPosSubmission message, it MUST return an error message. An
        error indication document consists of a "sigPosResponse" element. The
        "sigPosResponse" element MUST include a "code" attribute that
        indicates the type of error. A set of predefined error codes are
        included in Section 8.3.1. Error responses MAY also include a
        "message" attribute that can include additional information. This
        information SHOULD be for diagnostic purposes only and MAY be in any
        language. The language of the message SHOULD be indicated with an
        "xml:lang" attribute.</t>

        <t/>

        <section anchor="Code" title="&quot;code&quot; Parameter">
          <t>All responses MUST contain a response code. All errors are
          application-level errors and MUST only be provided in successfully
          processed transport-level responses. For example, where HTTPS is
          used as the transport, SigPos error messages MUST be carried by a
          200 OK HTTP/HTTPS response.</t>

          <t>The value of the response code MUST be an IANA-registered value.
          The following tokens are registered by this document:</t>

          <t>success: This code indicates that the request was received and
          successfully validated.</t>

          <t>requestError: This code indicates that the request was badly
          formed in some fashion (other than the XML content).</t>

          <t>xmlError: This code indicates that the XML content of the request
          was either badly formed or invalid.</t>

          <t>generalLisError: This code indicates that an unspecified error
          occurred at the LIS.</t>

          <t>unsupportedMessage: This code indicates that an element in the
          XML document for the request was not supported or understood by the
          LIS. This error code is used when a SigPos submission contains a
          document element that is not supported by the receiver.</t>

          <t/>
        </section>
      </section>
    </section>

    <section anchor="Schemas" title="XML Schema">
      <t>This section gives the XML Schema Definition
      [W3C.REC-xmlschema-1-20041028] [W3C.REC-xmlschema-2-20041028] of the
      "application/held+xml" format. This is presented as a formal definition
      of the "application/sigpos+xml" format. Note that the XML Schema
      Definition is not intended to be used with on-the-fly validation of the
      presence XML document. Whitespaces are included in the schema to conform
      to the line length restrictions of the RFC format without having a
      negative impact on the readability of the document. Any conforming
      processor should remove leading and trailing white spaces.</t>

      <t>The XML schema depicted below supports the Beacon Location mode of
      SigPos Survey data only.</t>

      <t><figure>
          <preamble/>

          <artwork><![CDATA[

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10" 
           xmlns:gml="http://opengis.net/gml" 
           xmlns:vc="urn:ietf:params:xml:ns:vcard-4.0" 
           xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic" 
           xmlns:lm="urn:ietf:params:xml:ns:geopriv:lm" 
           xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative" 
           xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr" 
           xmlns:ap="http://example.com/airport/5.0" 
           xmlns:pidf="urn:ietf:params:xml:ns:pidf" 
           attributeFormDefault="unqualified" 
           elementFormDefault="qualified" 
           targetNamespace="jones:sigpos" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>
         This document defines SigPos messages.
              (draft-jones-geopriv-sigpos-survey)
    </xs:documentation>
  </xs:annotation>
  
  <xs:import schemaLocation="/xsd/vcard.xsd" 
             namespace="urn:ietf:params:xml:ns:vcard-4.0" />
  
  <xs:import schemaLocation="/xsd/pidf.xsd" 
             namespace="urn:ietf:params:xml:ns:pidf" />
  
  <xs:import schemaLocation="/xsd/geopriv-lm.xsd" 
             namespace="urn:ietf:params:xml:ns:geopriv:lm" />
  
  <xs:complexType name="responseType">
    <xs:complexContent>
      <xs:restriction base="xs:anyType">
        <xs:sequence>
          <xs:element name="message" type="sigpos:responseMsgType"
                             minOccurs="0" maxOccurs="unbounded"/>
          <xs:any namespace="##other" processContents="lax"
                             minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      <xs:attribute name="code" type="xs:token" use="required"/>
      <xs:anyAttribute namespace="##any" processContents="lax"/>
      </xs:restriction>
   </xs:complexContent>
  </xs:complexType>

  <xs:complexType name="responseMsgType">
    <xs:simpleContent>
      <xs:extension base="xs:token">
        <xs:attribute ref="xml:lang"/>
        <xs:anyAttribute namespace="##any" processContents="lax"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  
  <xs:element name="sigPosResponse" type="sigpos:responseType"/>
  
  <xs:element name="sigposSubmission">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="session">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="venue">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element ref="vc:vcard" />
                    <xs:element name="owner">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element ref="vc:vcard" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="license">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="license-type" 
                                            type="xs:string" />
                          <xs:element name="licenseExpiry" 
                                 type="xs:dateTime" minOccurs="0"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="device" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="configuration">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="id" type="xs:string" />
                          <xs:element name="name" type="xs:string" />
                          <xs:element name="type" type="xs:string" />
                          <xs:element name="model" 
                                           type="xs:unsignedShort" />
                          <xs:element name="version" 
                                                 type="xs:decimal" />
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element maxOccurs="unbounded" name="sensor">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="configuration">
                            <xs:complexType>
                              <xs:sequence>
                               <xs:element name="type" 
                                                 type="xs:string" />
                               <xs:element name="id" 
                                                 type="xs:string" />
                               <xs:element name="antenna" 
                                                 type="xs:string" />
                               <xs:element name="chipset" 
                                                 type="xs:string" />
                               <xs:element name="manufacturer" 
                                                 type="xs:string" />
                               <xs:element name="capabilities">
                                  <xs:complexType>
                                    <xs:sequence>
                                     <xs:element minOccurs="0" 
                                            name="type"
                                            type="xs:string" />
                                     <xs:element minOccurs="0" 
                                            name="standard" 
                                            type="xs:string" />
                                     <xs:element minOccurs="0" 
                                            name="frequencyband" 
                                            type="xs:string" />
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="survey">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element maxOccurs="unbounded" 
                                           name="survey-point">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="groundtruth">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element ref="pidf:presence" />
                                 <xs:element name="rawlocation" 
                                                    minOccurs="0">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element name="gnss">
                                        <xs:complexType>
                                          <xs:sequence>
                                    <xs:element name="sentences">
                                      <xs:complexType>
                                        <xs:sequence>
                                         <xs:choice 
                                            maxOccurs="unbounded">
                                         <xs:element name="type" 
                                               type="xs:string" />
                                         <xs:element name="value" 
                                               type="xs:string" />
                                                  </xs:choice>
                                                </xs:sequence>
                                              </xs:complexType>
                                            </xs:element>
                                          </xs:sequence>
                                         <xs:attribute name="type"
                                                  type="xs:string"
                                                 use="required" />
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="beacon" minOccurs="0">
                            <xs:complexType>
                              <xs:sequence>
                               <xs:element maxOccurs="unbounded"
                                    name="mac" type="xs:string" />
                              </xs:sequence>
                             <xs:attribute name="type"
                                type="xs:string" use="required" />
                            </xs:complexType>
                          </xs:element>
                         <xs:element ref="lm:measurements"
                                                   minOccurs="0"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
           <xs:attribute name="sessionID" type="xs:string"
                                                 use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>


]]></artwork>

          <postamble>SigPos Partial XML Schema</postamble>
        </figure></t>

      <t/>
    </section>

    <section title="HTTP/TLS Binding">
      <t>This section describes the use of HTTP over TLS [RFC2818] as a
      transport mechanisms for the SigPos protocol, which a conforming LIS and
      Device MUST support.</t>

      <t>Although SigPos uses HTTP as a transport, it uses a strict subset of
      HTTP features, and due to the restrictions of some features, a LIS is
      not a fully compliant HTTP server. It is intended that a LIS can easily
      be built using an HTTP server with extensibility mechanisms and that a
      HELD Device can trivially use existing HTTP libraries. This subset of
      requirements helps implementors avoid ambiguity with the many options
      that the full HTTP protocol offers.</t>

      <t>A Device that conforms to this specification MUST support HTTP
      authentication [RFC2617] over TLS.</t>

      <t>A SigPos submission is carried in the body of an HTTPS POST
      request.</t>

      <t>The MIME type of SigPos request and response bodies is
      "application/sigpos+xml". LIS and Device MUST provide this value in the
      HTTP Content-Type and Accept header fields. If the LIS does not receive
      the appropriate Content-Type and Accept header fields, the LIS SHOULD
      fail the request, returning a 406 (not acceptable) response. SigPos
      responses SHOULD include a Content-Length header.</t>

      <t>Devices MUST NOT use the "Expect" header or the "Range" header in
      HELD requests. The LIS MAY return 501 (not implemented) errors if either
      of these HTTP features are used. In the case that the LIS receives a
      request from the Device containing an If-* (conditional) header, the LIS
      SHOULD return a 412 (precondition failed) response.</t>

      <t>The POST method is the only method REQUIRED for SigPos. If a LIS
      chooses to support GET or HEAD, it SHOULD consider the kind of
      application doing the GET. Since a SigPos Device only uses a POST
      method, the GET or HEAD MUST be either an escaped URL (e.g., somebody
      found a URL in protocol traces or log files and fed it into their
      browser) or somebody doing testing/debugging. The LIS could provide
      information in the SigPos response indicating that the URL corresponds
      to a LIS server and only responds to HELD POST requests, or the LIS
      could instead try to avoid any leak of information by returning a very
      generic HTTP error message such as 404 (not found).</t>

      <t>The HTTP status code MUST indicate a 2xx series response for all
      SigPos sigPosSubmission and sigPosRespons messages.</t>

      <t>The LIS MAY redirect a SigPos request. A Device MUST handle redirects
      by using the Location header provided by the server in a 3xx response.
      When redirecting, the Device MUST observe the delay indicated by the
      Retry-After header. The Device MUST authenticate the server that returns
      the redirect response before following the redirect, if a Device
      requires that the server is authenticated. A Device MUST authenticate
      the LIS indicated in a redirect.</t>

      <t>Implementations of SigPos MUST implement transport over TLS
      [RFC2818]. TLS provides message integrity and confidentiality between
      the Device and LIS. The Device MUST implement the server authentication
      method described in Section 3.1 of [RFC2818], with an exception in how
      wildcards are handled. The leftmost label MAY contain the wildcard
      string "*", which matches any single domain name label. Additional
      characters in this leftmost label are invalid (that is, "f*.example.com"
      is not a valid name and does not match any domain name).</t>

      <t>The Device uses the URI obtained during LIS discovery to authenticate
      the server. The details of this authentication method are provided in
      Section 3.1 of HTTPS [RFC2818]. When TLS is used, the Device SHOULD fail
      a request if server authentication fails.</t>

      <t/>
    </section>

    <section title="Security Considerations">
      <t>Location-related measurement data can be as privacy sensitive as
      location information.</t>

      <t>Survey data is effectively equivalent to location information if the
      contextual knowledge necessary to generate one from the other is readily
      accessible. Even where contextual knowledge is difficult to acquire,
      there can be no assurance that an authorized recipient of the contextual
      knowledge is also authorized to receive location information.</t>

      <t>In order to protect the privacy of the subject of location-related
      survey data, this implies that survey data is protected with a similar
      degree of protection as location information.</t>

      <t>Survey Data Privacy Model</t>

      <t>In general, survey data represents a smaller privacy risk than
      personal location information. It does however represent potential
      privacy risks especially with respect to venues which have security
      risks or wish to maintain control over the exposure of detailed location
      information.</t>

      <t>No entity is permitted to redistribute survey data except as
      specified in the data license. The Device directs other entities in how
      survey data is used and retained.</t>

      <t/>

      <section title="Assuring That the Proper LIS Has Been Contacted">
        <t>This document assumes that the LIS to be contacted is identified
        either by an IP address or a domain name, as is the case for a LIS
        discovered as described in LIS Discovery [RFC5986]. As the SigPos
        transaction is conducted using TLS [RFC5246], the LIS can authenticate
        its identity, either as a domain name or as an IP address, to the
        client by presenting a certificate containing that identifier as a
        subjectAltName (i.e., as an iPAddress or dNSName, respectively). In
        the case of the HTTP binding described above, this is exactly the
        authentication described by TLS [RFC2818]. If the client has external
        information as to the expected identity or credentials of the proper
        LIS (e.g., a certificate fingerprint), these checks MAY be omitted.
        Any binding of SigPos MUST be capable of being transacted over TLS so
        that the client can request the above authentication, and a LIS
        implementation for a binding MUST include this feature. Note that in
        order for the presented certificate to be valid at the client, the
        client must be able to validate the certificate. In particular, the
        validation path of the certificate must end in one of the
        client&rsquo;s trust anchors, even if that trust anchor is the LIS
        certificate itself.</t>

        <t/>
      </section>

      <section title="Protecting Responses from Modification">
        <t>In order to prevent a response from being modified en route,
        messages must be transmitted over an integrity-protected channel. When
        the transaction is being conducted over TLS (a required feature per
        Section 11.1), the channel will be integrity protected by appropriate
        ciphersuites. When TLS is not used, this protection will vary
        depending on the binding; in most cases, without protection from TLS,
        the response will not be protected from modification en route.</t>

        <t/>
      </section>
    </section>

    <section title="Examples">
      <t>The following sections provide examples of basic HTTP/HTTPS, a simple
      location request, and a location request for multiple location types,
      along with the relevant location responses. To focus on important
      portions of messages, the examples in Sections 10.2 and 10.3 do not show
      HTTP/HTTPS headers or the XML prologue. In addition, sections of XML not
      relevant to the example are replaced with comments.</t>

      <t/>

      <section title="Example of a WiFi Access Point Location Survey">
        <t>The examples in this section show example HTTPS messages that
        include the SigPos submission or response document.</t>

        <t><figure>
            <artwork><![CDATA[    POST /location HTTP/1.1 
    Host: sigpos.example.com:49152 
    Content-Type: application/sigpos+xml;charset=utf-8 
    Content-Length: nnn 
    <?xml version="1.0"?> <sigpos xxmlns="jones:sigpos".../>]]></artwork>
          </figure></t>

        <t>The LIS response to the request is an sigPosResponse document. The
        following response shows an example error response.</t>

        <t><figure>
            <artwork><![CDATA[    HTTP/1.1 200 OK 
    Server: Example SigPos 
    Expires: Tue, 21 Feb 2013 15:23:03 GMT 
    Cache-control: private 
    Content-Type: application/sigpos+xml;charset=utf-8 
    Content-Length: 182 

    <?xml version="1.0"?>
    <sigPosResponse xxmlns="jones:sigpos" 
                    code="success"> 
         <message xml:lang="en">Successfully validated submission 
         </message> 
     </sigPosResponse>]]></artwork>
          </figure></t>

        <t/>

        <t>A simple example of a small survey composed of two survey points is
        illustrated by the example message below. This uses the static beacon
        key survey model.</t>

        <t><figure>
            <artwork><![CDATA[
<?xml version="1.0"?>
<sigpos xmlns="jones:sigpos"
        xmlns:pidf="urn:ietf:params:xml:ns:pidf"
        xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
        xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
        xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
        xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative"
        xmlns:vc="urn:ietf:params:xml:ns:vcard-4.0"
        xmlns:ap="http://example.com/airport/5.0"
        xmlns:gml="http://www.opengis.net/gml">
 <session sessionID=?axxwe82737?>
  <venue>
     <vc:vcard>
       <vc:fn><vc:text>Example Building</vc:text></vc:fn>
       <vc:adr>
         <vc:parameters>
           <vc:type><vc:text>work</vc:text></vc:type>
           <vc:label><vc:text>Example Building
   1 South Boston Street
   Boston, MA USA 02210</vc:text></vc:label>
         </pvc:arameters>
         <vc:pobox/>
         <vc:ext/>
         <vc:street>1 South Boston Street</vc:street>
         <vc:locality>Boston</vc:locality>
         <vc:region>MA</vc:region>
         <vc:code>02210</vc:code>
         <vc:country>USA</vc:country>
       </vc:adr>
     </vc:vcard>
     <licensor>
       <vc:vcard>
         <vc:fn><text>Rober Builder</vc:text></vc:fn>
         <vc:n>
           <vc:surname>Builder</vc:surname>
           <vc:given>Robert</vc:given>
           <vc:additional/>
           <vc:prefix/>
           <vc:suffix/>
         </vc:n>
         <vc:adr>
           <vc:parameters>
             <vc:type><text>work</vc:text></vc:type>
             <vc:label><text>Rober Builder
   1 South Boston Street
   Boston, MA USA 02210</vc:text></vc:label>
           </vc:parameters>
           <vc:pobox/>
           <vc:ext/>
           <vc:street>1 South Boston Street</vc:street>
           <vc:locality>Boston</vc:locality>
           <vc:region>MA</vc:region>
           <vc:code>02210</vc:code>
           <vc:country>USA</vc:country>
         </vc:adr>
         <vc:tel>
           <vc:parameters>
             <vc:type>
               <vc:text>work</vc:text>
               <vc:text>voice</vc:text>
             </vc:type>
           </vc:parameters>
           <vc:uri>tel:+1-555-555-1212;ext=102</vc:uri>
         </vc:tel>
         <vc:email>
           <vc:parameters>
             <type><text>work</vc:text></vc:type>
           </vc:parameters>
           <vc:text>reober.builder@example.com</vc:text>
         </vc:email>
       </vc:vcard>
     </licensor>
     <license>
       <license-type>CC BY</license-type>
     </license>
  </venue>
  <survey>
   <survey-point>
     <groundtruth>
       <pidf:presence>
        <pidf:tuple id="abcd123456">
         <pidf:status>
           <gp:geopriv>
             <gp:location-info>
               <gml:Point xmlns:gml="http://opengis.net/gml">
                 <gml:pos>-34.4 150.8</gml:pos>
               </gml:Point>
               <cl:civicAddress>
                 <cl:country>US</cl:country>
                 <cl:A1>CA</cl:A1>
                 <ap:airport>LAX</ap:airport>
                 <ap:terminal>Tom Bradley</ap:terminal>
                 <ap:concourse>G</ap:concourse>
                 <ap:gate>36B</ap:gate>
               </civicAddress>
             </gp:location-info>
           </gp:geopriv>
           <pidf:timestamp>2012-02-21T14:33:58:05</pidf:timestamp>
         </pidf:status>
        </pidf:tuple>
       </pidf:presence>
    </groundtruth>
    <beacon type="wifi">
      <mac>FF00FF723CBA</mac>
      <mac>FF00FF723CBB</mac>
    </beacon>
   </survey-point>
   <survey-point>
     <groundtruth>
       <pidf:presence>
        <pidf:tuple id="abcd123456">
         <pidf:status>
           <gp:geopriv>
             <gp:location-info>
                <gml:Point xmlns:gml="http://opengis.net/gml">
                  <gml:pos>-34.35 150.83</gml:pos>
                </gml:Point>
             </gp:location-info>
           </gp:geopriv>
           <pidf:timestamp>2012-02-21T14:33:58:06</pidf:timestamp>
         </pidf:status>
        </pidf:tuple>
       </pidf:presence>
      </groundtruth>
      <beacon type="wifi">
         <mac>FF00FF723A00</mac>
      </beacon>
   </survey-point>
  </survey>
 </session>
</sigpos>
</xml>

]]></artwork>

            <postamble>802.11 WiFi Beacon Survey</postamble>
          </figure></t>

        <t/>

        <t/>
      </section>

      <section title="Example of a WiFi Signal Survey">
        <t/>

        <t>A simple example of wifi scan data conveyance using gps for ground
        truth is illustrated by the example message below.</t>

        <t><figure>
            <preamble/>

            <artwork><![CDATA[
<?xml version="1.0"?>
<sigpos xmlns="jones:sigpos"
        xmlns:pidf="urn:ietf:params:xml:ns:pidf"
        xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"
        xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
        xmlns:dyn="urn:ietf:params:xml:ns:pidf:geopriv10:dynamic"
        xmlns:rel="urn:ietf:params:xml:ns:pidf:geopriv10:relative"
        xmlns:vc="urn:ietf:params:xml:ns:vcard-4.0"
        xmlns:ap="http://example.com/airport/5.0"
        xmlns:gml="http://www.opengis.net/gml">
 <session sessionID="axxwe82737">
 <venue>
     <vc:vcard>
       <vc:fn><vc:text>Example Building</vc:text></vc:fn>
       <vc:adr>
         <vc:parameters>
           <vc:type><vc:text>work</vc:text></vc:type>
           <vc:label><vc:text>Example Building
   1 South Boston Street
   Boston, MA USA 02210</vc:text></vc:label>
         </pvc:arameters>
         <vc:pobox/>
         <vc:ext/>
         <vc:street>1 South Boston Street</vc:street>
         <vc:locality>Boston</vc:locality>
         <vc:region>MA</vc:region>
         <vc:code>02210</vc:code>
         <vc:country>USA</vc:country>
       </vc:adr>
     </vc:vcard>
     <licensor>
       <vc:vcard>
         <vc:fn><text>Rober Builder</vc:text></vc:fn>
         <vc:n>
           <vc:surname>Builder</vc:surname>
           <vc:given>Robert</vc:given>
           <vc:additional/>
           <vc:prefix/>
           <vc:suffix/>
         </vc:n>
         <vc:adr>
           <vc:parameters>
             <vc:type><text>work</vc:text></vc:type>
             <vc:label><text>Rober Builder
   1 South Boston Street
   Boston, MA USA 02210</vc:text></vc:label>
           </vc:parameters>
           <vc:pobox/>
           <vc:ext/>
           <vc:street>1 South Boston Street</vc:street>
           <vc:locality>Boston</vc:locality>
           <vc:region>MA</vc:region>
           <vc:code>02210</vc:code>
           <vc:country>USA</vc:country>
         </vc:adr>
         <vc:tel>
           <vc:parameters>
             <vc:type>
               <vc:text>work</vc:text>
               <vc:text>voice</vc:text>
             </vc:type>
           </vc:parameters>
           <vc:uri>tel:+1-555-555-1212;ext=102</vc:uri>
         </vc:tel>
         <vc:email>
           <vc:parameters>
             <type><text>work</vc:text></vc:type>
           </vc:parameters>
           <vc:text>reober.builder@example.com</vc:text>
         </vc:email>
       </vc:vcard>
     </licensor>
     <license>
       <license-type>unrestricted</license-type>
       <licenseExpiry>2012-10-29T14:33:58</licenseExpiry>
     </license>
  </venue>
  <device>
    <configuration>
      <id>00EFDA7200B004</id>
      <name>lumina</name>
      <type>smartphone</type>
      <model>900</model>
      <version>1.2</version>
    </configuration>
    <sensor>
      <configuration>
        <type>wifi</type>
        <id>ath0</id>
        <antenna>omni-directional</antenna>
        <chipset>aetheros</chipset>
        <manufacturer>newco</manufacturer>
        <capabilities>
          <standard>a,b,g,n</standard>
          <frequencyband>1-13</frequencyband>
        </capabilities>
      </configuration>
    </sensor>
    <sensor>
      <configuration>
        <type>gps</type>
        <id>gps3210</id>
        <antenna>combined</antenna>
        <chipset>qualcomm</chipset>
        <manufacturer>newco</manufacturer>
        <capabilities>
          <type>standard</type>
        </capabilities>
      </configuration>
    </sensor>
  </device>
  <survey>
   <survey-point>
     <groundtruth>
       <pidf:presence>
        <pidf:tuple id="abcd123456">
         <pidf:status>
           <gp:geopriv>
             <gp:location-info>
                <gml:Point xmlns:gml="http://opengis.net/gml">
                  <gml:pos>-34.35 150.83</gml:pos>
                </gml:Point>
             </gp:location-info>
           </gp:geopriv>
           <pidf:timestamp>2012-02-21T14:33:58:06</pidf:timestamp>
         </pidf:status>
        </pidf:tuple>
       </pidf:presence>
       <rawlocation>
         <gnss type="gps">
           <sentences>
             <type>GPGGA</type>
             <value>
$GPGGA,092750.000,5321.6802,N,00630.3372,W,1,8,1.03,61.7,M,55.2,M,,*76
             </value>
             <type>GPGSA</type>
             <value>
$GPGSA,A,3,10,07,05,02,29,04,08,13,,,,,1.72,1.03,1.38*0A
             </value>
             <type>GPSV</type>
             <value>
$GPGSV,3,1,11,10,63,137,17,07,61,098,15,05,59,290,20,08,54,157,30*70
             </value>
             <type>GPSV</type>
             <value>
$GPGSV,3,2,11,02,39,223,19,13,28,070,17,26,23,252,,04,14,186,14*79
             </value>
             <type>GPRMC</type>
             <value>
$GPRMC,092750.000,A,5321.6802,N,00630.3372,W,0.02,31.66,280511,,,A*43
             </value>
           </sentences>
         </gnss>
       </rawlocation>
     </groundtruth>
     <lm:measurements xmlns:lm="urn:ietf:params:xml:ns:geopriv:lm"
                      time="2008-04-29T14:33:58">
       <wifi xmlns="urn:ietf:params:xml:ns:geopriv:lm:wifi">
         <ap serving="true">
           <bssid>00-12-F0-A0-80-EF</bssid>
           <ssid>wlan-home</ssid>
           <rcpi>-85</rcpi>
         </ap>
         <ap>
           <bssid>00-11-F0-A0-80-EF</bssid>
           <ssid>wlan-other</ssid>
           <rcpi>-92</rcpi>
         </ap>
       </wifi>
     </lm:measurements>
   </survey-point>
  </survey>
 </session>
</sigpos>
</xml>

]]></artwork>

            <postamble>802.11 WiFi Signal Scan Survey</postamble>
          </figure></t>
      </section>
    </section>

    <section anchor="Acknowledgements" title="Acknowledgements">
      <t>This template was derived from an initial version written by Pekka
      Savola and contributed by him to the xml2rfc project. Thanks to Richard
      Barnes and St&eacute;phane Terrenoir, Adam Roach, Robin Wilton, and
      Martin Thompson for initial reviews and valuable feedback.</t>

      <t/>
    </section>

    <section anchor="IANA" title="IANA Considerations">
      <t>This section creates a registry for <xref target="LicenseType">Data
      License types</xref> and registers the namesapces and schema defined in
      the <xref target="Schemas">Schemas</xref> secction.</t>

      <t/>

      <section title="URN Sub-Namespace Registration for urn:ietf:params:xml:ns:geopriv:sigpos">
        <t>This section registers a new XML namespace,
        "urn:ietf:params:xml:ns:geopriv:sigpos", per the guidelines in
        [RFC3688].</t>

        <t>URI: urn:ietf:params:xml:ns:geopriv:sigpos</t>

        <t>Registrant Contact: IETF, &lt;TBD&gt;.</t>

        <t>XML</t>

        <t><figure>
            <artwork><![CDATA[    BEGIN
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
      <head>
        <title>SigPos Messages</title>
      </head>
      <body>
        <h1>Namespace for SigPos Messages</h1>
        <h2>urn:ietf:params:xml:ns:geopriv:sigpos</h2>
        <p>See draft-jones-geopriv-sigpos-survey</p>
      </body>
    </html>
    END]]></artwork>
          </figure></t>

        <t/>
      </section>

      <section title="XML Schema Registration">
        <t>This section registers an XML schema as per the guidelines in
        [RFC3688].</t>

        <t>URI: urn:ietf:params:xml:schema:geopriv:sigpos</t>

        <t>Registrant Contact: IETF, &lt;tbd&gt;.</t>

        <t>Schema: The XML for this schema can be found as the entirety of
        Section 9 of this document.</t>
      </section>

      <section title="MIME Media Type Registration for 'application/sigpos+xml'">
        <t>This section registers the "application/sigpos+xml" MIME type.</t>

        <t>To: ietf-types@iana.org</t>

        <t>Subject: Registration of MIME media type application/sigpos+xml</t>

        <t>MIME media type name: application</t>

        <t>MIME subtype name: sigpos+xml</t>

        <t>Required parameters: (none)</t>

        <t>Optional parameters: charset</t>

        <t>Same as the charset parameter of "application/xml" as specified in
        RFC 3023 [RFC3023], Section 3.2.</t>

        <t>Encoding considerations: Same as the encoding considerations of
        "application/xml" as specified in RFC 3023 [RFC3023], Section 3.2.</t>

        <t>Security considerations: This content type is designed to carry
        protocol data related to the location of signal beacons, which could
        include information that is considered private. Appropriate
        precautions should be taken to limit disclosure of this
        information.</t>

        <t>Interoperability considerations: This content type provides a basis
        for a protocol. There are multiple interoperable implementations of
        this protocol.</t>

        <t>Published specification: &lt;TBD&gt;</t>

        <t>Applications which use this media type: Location information
        surveyors and service providers.</t>

        <t>Additional Information:</t>

        <t>Magic Number(s): (none)</t>

        <t>File extension(s): .heldxml</t>

        <t>Macintosh File Type Code(s): "TEXT"</t>

        <t>Person &amp; email address to contact for further information:</t>

        <t>Mary Barnes &lt;tbd&gt; Intended usage: LIMITED USE</t>

        <t>Author/Change controller: The IETF</t>

        <t>Other information: This media type is a specialization of
        application/xml [RFC3023], and many of the considerations described
        there also apply to application/held+xml.</t>
      </section>

      <section title="IANA Registry for Data License Types">
        <t>This document establishes a new IANA registry for the for <xref
        target="LicenseType">Data License types</xref>. This reegistry
        includes tokens for the Data License type. Referring to the [RFC5226],
        this registry operates under "Specification Required" rules. The IESG
        will appoint an Expert Review who will advice IANA promptly on each
        request for a new or updated Data License type.</t>

        <t>Each entry in the registry requires the following information:</t>

        <t><list style="symbols">
            <t>Data License name: the name of the data license</t>

            <t>Brief Description: a brief description of the data license</t>

            <t>URI: optional URI to the license definition</t>
          </list></t>

        <t>This section pre-registers 8 new 'licenseType' tokens associated
        with the 'licenseType'</t>

        <t><list style="numbers">
            <t>unrestricted: this license allows for the use and unrestricted
            derivative products based on the data set</t>

            <t>CC BY: this license lets others distribute, remix, tweak, and
            build upon your work, even commercially, as long as they credit
            you for the original creation.</t>

            <t>CC BY-ND: this license allows for redistribution, commercial
            and non-commercial, as long as it is passed along unchanged and in
            whole, with credit to you.</t>

            <t>CC BY-NC-SA: this license lets others remix, tweak, and build
            upon your work non-commercially, as long as they credit you and
            license their new creations under the identical terms.</t>

            <t>CC BY-SA: this license lets others remix, tweak, and build upon
            your work even for commercial purposes, as long as they credit you
            and license their new creations under the identical terms.</t>

            <t>CC BY-NC: this license lets others remix, tweak, and build upon
            your work even for commercial purposes, as long as they credit you
            and license their new creations under the identical terms.</t>

            <t>CC BY-NC-ND: this license is the most restrictive of our six
            main licenses, only allowing others to download your works and
            share them with others as long as they credit you, but they can't
            change them in any way or use them commercially.</t>

            <t>private: this license is intended to provide full control over
            the usage and derivative usage of the data. Any use of the data
            would be governed under a separate agreement between the licensor
            and the party wishing to make use of the data. By default, no
            rights are granted for private data.</t>
          </list></t>

        <t/>
      </section>

      <section title="IANA Registry for sigPosResponse Codes">
        <t>This doecument establishees a new IANA registry for <xref
        target="Code">sigPosResponse Codes</xref>. This registry includes
        tokens for the sigPosRespons codes. Referring to the [RFC5226], this
        registry operates under "Specification Required" rules. The IESG will
        appoint an Expert Review who will advice IANA promptly on each request
        for a new or updated sigPosResponse code.</t>

        <t>Registrant Contact: &lt;tbd&gt;.</t>

        <t>This section registers the following five initial error codes as
        described in Section 8.3.1:</t>

        <t><list style="symbols">
            <t>success: This code indicates that the request was received and
            successfully validated.</t>

            <t>requestError: This code indicates that the request was badly
            formed in some fashion (other than the XML content).</t>

            <t>xmlError: This code indicates that the XML content of the
            request was either badly formed or invalid.</t>

            <t>generalLisError: This code indicates that an unspecified error
            occurred at the LIS.</t>

            <t>unsupportedMessage: This code indicates that an element in
            tsucche XML document for the request was not supported or
            understood by the LIS. This error code is used when a SigPos
            submission contains a document element that is not supported by
            the receiver.</t>
          </list></t>
      </section>
    </section>
  </middle>

  <!--  *****BACK MATTER ***** -->

  <back>
    <!-- References split into informative and normative -->

    <!-- There are 2 ways to insert reference entries from the citation libraries:
     1. define an ENTITY at the top, and use "ampersand character"RFC2629; here (as shown)
     2. simply use a PI "less than character"?rfc include="reference.RFC.2119.xml"?> here
        (for I-Ds: include="reference.I-D.narten-iana-considerations-rfc2434bis.xml")

     Both are cited textually in the same manner: by using xref elements.
     If you use the PI option, xml2rfc will, by default, try to find included files in the same
     directory as the including file. You can also define the XML_LIBRARY environment variable
     with a value containing a set of directories to search.  These can be either in the local
     filing system or remote ones accessed by http (http://domain/dir/... ).-->

    <references title="Normative References">
      <!--?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?-->

      &RFC2119;

      &RFC2617;

      &RFC3023;

      &RFC3688;

      &RFC4119;

      &RFC5139;

      &RFC5246;

      &RFC5491;

      &RFC5962;

      &RFC5986;

      &RFC6351;

      &I-D.ietf-geopriv-held-measurements;

      &I-D.ietf-geopriv-local-civic;

      &I-D.ietf-geopriv-relative-location;
    </references>

    <references title="Informative References">
      <!-- Here we use entities that we defined at the beginning. -->

      &RFC2818;

      &RFC5226;

      &RFC5774;

      <reference anchor="NMEA0183"
                 target="http://www.nmea.org/pub/0183/index.html">
        <front>
          <title>NMEA 0183</title>

          <author/>

          <date year="2007"/>
        </front>
      </reference>

      <reference anchor="GeoShape"
                 target="http://portal.opengeospatial.org/files/?artifact_id=17591">
        <front>
          <title>GML GeoShape Application Schema for use in internet standards
          developed by the IETF</title>

          <author/>

          <date year="2006"/>
        </front>
      </reference>

      <reference anchor="OGC-GML3.1.1"
                 target="http://www.opengeospatial.org/standards/gml">
        <front>
          <title>Geography Markup Language (GML) 3.1.1</title>

          <author/>

          <date year="2003"/>
        </front>
      </reference>

      <reference anchor="IEEE.80211.2007"
                 target="http://standards.ieee.org/getieee802/download/802.11-2007.pdf">
        <front>
          <title>Information technology - Telecommunications and information
          exchange between systems - Local and metropolitan area networks -
          Specific requirements - Part 11: Wireless LAN Medium Access Control
          (MAC) and Physical Layer (PHY) specifications</title>

          <author/>

          <date year="2007"/>
        </front>
      </reference>

      <reference anchor="CC" target="https://creativecommons.org/licenses/">
        <front>
          <title>Creative Commons LIcenses</title>

          <author>
            <organization>Creative Commons</organization>
          </author>

          <date year="2012"/>
        </front>
      </reference>
    </references>

    <!-- Change Log

v00 2006-03-15  EBD   Initial version

v01 2006-04-03  EBD   Moved PI location back to position 1 -
                      v3.1 of XMLmind is better with them at this location.
v02 2007-03-07  AH    removed extraneous nested_list attribute,
                      other minor corrections
v03 2007-03-09  EBD   Added comments on null IANA sections and fixed heading capitalization.
                      Modified comments around figure to reflect non-implementation of
                      figure indent control.  Put in reference using anchor="DOMINATION".
                      Fixed up the date specification comments to reflect current truth.
v04 2007-03-09 AH     Major changes: shortened discussion of PIs,
                      added discussion of rfc include.
v05 2007-03-10 EBD    Added preamble to C program example to tell about ABNF and alternative 
                      images. Removed meta-characters from comments (causes problems).  -->
  </back>
</rfc>
