Definition Type: ComplexType
Name: Distance
Namespace: http://www.opentravel.org/OTM/Common/v4
Type: ota2-0400:NonNegativeInteger
Containing Schema: Common_4_0_0.xsd
Abstract
Documentation:
Used to provide distance and direction information.
Collapse XSD Schema Diagram:
Drilldown into unitOfMeasureCode in schema common_4_0_0_xsd Drilldown into distanceMax in schema common_4_0_0_xsd Drilldown into direction in schema common_4_0_0_xsd Drilldown into distanceMeasure in schema common_4_0_0_xsdXSD Diagram of Distance in schema common_4_0_0_xsd (Open Travel (OTA))
Collapse XSD Schema Code:
<xsd:complexType name="Distance">
    <xsd:annotation>
        <xsd:documentation source="Description">Used to provide distance and direction information.</xsd:documentation>
        <xsd:appinfo>
            <otm:OTA2Entity type="ValueWithAttributes" xmlns:otm="http://www.OpenTravel.org/ns/OTA2/AppInfo_v01_00">Distance</otm:OTA2Entity>
        </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleContent>
        <xsd:extension base="ota2-0400:NonNegativeInteger">
            <xsd:attribute name="distanceMeasure" type="ota2-0400:StringTiny" use="optional">
                <xsd:annotation>
                    <xsd:documentation source="Description">When the Distance attribute contains a value, (presumably a numerical value), the unit of measure is a string value that indicate what units are used for the value.</xsd:documentation>
                    <xsd:documentation source="Implementer">Assigned XSD Type: {http://www.w3.org/2001/XMLSchema}StringLength1to16</xsd:documentation>
                </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="direction" type="ota2-0400:StringTiny" use="optional">
                <xsd:annotation>
                    <xsd:documentation source="Description">An optional string value used to indicate the compass point(s) direction, e.g.: S, SE (South, Southeast), FROM the Reference Point TO the hotel location if the search is not a full circumference from the reference point.</xsd:documentation>
                    <xsd:documentation source="Implementer">Assigned XSD Type: {http://www.w3.org/2001/XMLSchema}StringLength1to8</xsd:documentation>
                </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="distanceMax" type="xsd:positiveInteger" use="optional">
                <xsd:annotation>
                    <xsd:documentation source="Description">An optional attribute indicating the maximum distance to/from a reference point.</xsd:documentation>
                    <xsd:documentation source="Implementer">Assigned XSD Type: {http://www.w3.org/2001/XMLSchema}NumericStringLength1to16</xsd:documentation>
                </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="unitOfMeasureCode" type="ota2-0300:UnitOfMeasure_Enum" use="optional">
                <xsd:annotation>
                    <xsd:documentation source="Description">The unit of measure in a code format. Refer to OpenTravel Code List Unit of Measure Code (UOM).</xsd:documentation>
                    <xsd:documentation source="Implementer">Assigned XSD Type: {http://www.w3.org/2001/XMLSchema}OTA_CodeType</xsd:documentation>
                </xsd:annotation>
            </xsd:attribute>
        </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>
Collapse Child Attributes:
Name Type Default Value Use
distanceMeasure ota2-0400:distanceMeasure Optional
direction ota2-0400:direction Optional
distanceMax ota2-0400:distanceMax Optional
unitOfMeasureCode ota2-0400:unitOfMeasureCode Optional
Collapse Derivation Tree: