Locations.xsd

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
targetNamespace="https://developer.precisely.com/apis/schema/v1" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="https://developer.precisely.com/apis/schema/v1">
<xs:include schemaLocation="https://developer.precisely.com/apis/schema/v1/xsd/CommonObjects.xsd"/> 
  <xs:element name="locations">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="location" maxOccurs="unbounded" minOccurs="0">
		  <xs:complexType>
            <xs:sequence>
			<xs:element name="match" minOccurs="0">
								<xs:complexType>
									<xs:sequence>
										<xs:element type="xs:byte" name="precisionLevel"/>
										<xs:element type="xs:string" name="locationCode"/>
										<xs:element type="xs:string" name="matchCode"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
			<xs:element name="address" type="address" minOccurs="0"/>
			<xs:element name="place" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="name" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="langType" use="optional"/>
                            <xs:attribute type="xs:string" name="langISOCode" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:byte" name="level"/>
                  <xs:attribute type="xs:string" name="levelName"/>
                </xs:complexType>
              </xs:element>
              <xs:element type="xs:string" name="dataset" minOccurs="0"/>
              <xs:element name="poi" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="name"/>
                    <xs:element type="xs:string" name="alias"/>
                    <xs:element type="xs:string" name="brandName"/>
                    <xs:element type="xs:int" name="categoryCode"/>
                    <xs:element type="xs:string" name="open24Hours"/>
                    <xs:element name="contactDetails">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="address" type="address"/>
                          <xs:element type="xs:string" name="phone"/>
                          <xs:element type="xs:string" name="fax"/>
                          <xs:element type="xs:string" name="email"/>
                          <xs:element type="xs:anyURI" name="url"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="langISOCode" use="optional"/>
                  <xs:attribute type="xs:string" name="langType" use="optional"/>
                </xs:complexType>
              </xs:element>
              <xs:element name="distance" minOccurs="0">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:float">
                      <xs:attribute type="xs:string" name="unit" use="optional"/>
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="geometry" type="geometry" minOccurs="0"/>
              </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>