Address.xid.xml 2.32 KB
<?xml version="1.0" encoding="UTF-8" ?>

<specification xmlns="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd"
               xmlns:xid="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd"
               identity="Address.xid.xml">
    <title>Address Information Definition</title>
    
  <!-- Include all known definitions -->
  <import ref="https://xid.location.studio/Tensor/V1.1/Definitions.xid.xml" local="Definitions.xid.xml" />
  
  
  <namespace name="GeoSpatial">
    <using namespace="Tensor"/>
    <!-- 
    *************************************
    * Address Definition. 
    *************************************
    -->
    <struct name="AddressInfo">
      <elem name="address1" multiplicity ="1" type="string">
        <comment>Address line #1 comprising house number and street name.</comment>
      </elem>
      <elem name="address2" multiplicity ="0..1" type="string">
        <comment>Address line #2 comprising group level.</comment>
      </elem>
      <elem name="address3" multiplicity ="0..1" type="string">
        <comment>Address line #3 comprising village level.</comment>
      </elem>
      <elem name="city" multiplicity ="1" type="string">
        <comment>Name of City or Township level.</comment>
      </elem>
      <elem name="county" multiplicity ="1" type="string">
        <comment>Name of the County or Prefectural level.</comment>
      </elem>
      <elem name="state" multiplicity ="1" type="string">
        <comment>State or region or Provincial level. Two character state definitions ok for U.S. addresses. Default is empty.</comment>
      </elem>
      <elem name="country" multiplicity ="0..1" type="string">
        <comment>The country name in long form.</comment>
      </elem>
      <elem name="countryCode" multiplicity ="1" type="string">
        <comment>The ISO 3166-1 three character country code. For example, "USA".</comment>
      </elem>
      <elem name="postal" multiplicity ="1" type="string">
        <comment>The postal code.</comment>
      </elem>
    </struct>
  </namespace>
</specification>