183 lines
7.2 KiB
XML
183 lines
7.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsd:schema xmlns="http://www.fleettracker.de/api/1.0" xmlns:tns="http://www.fleettracker.de/api/1.0" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.fleettracker.de/api/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
<xsd:include schemaLocation="position.xsd" />
|
|
<xsd:complexType name="InlandDistance">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the distance on a river.</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="distanceValue" type="xsd:double">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the current value in the given unit.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="1" maxOccurs="1" default="METER" name="distanceUnit">
|
|
<xsd:simpleType>
|
|
<xsd:restriction base="xsd:string">
|
|
<xsd:enumeration value="METER" />
|
|
<xsd:enumeration value="STATMILE" />
|
|
<xsd:enumeration value="KM" />
|
|
<xsd:enumeration value="NAUTICALMILE" />
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="InlandSpeed">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the speed of a target.</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="speedValue" type="xsd:double">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the current value in the given unit.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="1" maxOccurs="1" default="METER_PER_SECOND" name="speedUnit">
|
|
<xsd:simpleType>
|
|
<xsd:restriction base="xsd:string">
|
|
<xsd:enumeration value="METER_PER_SECOND" />
|
|
<xsd:enumeration value="STATMILES_PER_HOUR" />
|
|
<xsd:enumeration value="KM_PER_HOUR" />
|
|
<xsd:enumeration value="KNOTS" />
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="River">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents a river.</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="rivername" type="xsd:string">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the river name.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="riverabbr" type="xsd:string">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the river abbreviation.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="MilesMarker">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents a miles marker entry.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="miles" type="xsd:float">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the river mile or kilometer.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="0" maxOccurs="1" default="STATMILES" name="unit">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the unit of the miles.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:simpleType>
|
|
<xsd:restriction base="xsd:string">
|
|
<xsd:enumeration value="STATMILES" />
|
|
<xsd:enumeration value="KM" />
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="river" type="tns:River">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the river.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="MilesMarkerWithPosition">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents a miles marker entry with a
|
|
geographic position.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:complexContent mixed="false">
|
|
<xsd:extension base="tns:MilesMarker">
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="position" type="tns:Position">
|
|
<xsd:annotation>
|
|
<xsd:documentation>The geographic position of this miles marker
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:extension>
|
|
</xsd:complexContent>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="MilesMarkerWithPositionList">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents a set of miles marker entry with a
|
|
geographic position.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="0" maxOccurs="unbounded" name="entries" type="tns:MilesMarkerWithPosition">
|
|
<xsd:annotation>
|
|
<xsd:documentation>A set of miles marker entries with positions.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="NoPassingZone">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents a no passing zone.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="id" type="xsd:int">
|
|
<xsd:annotation>
|
|
<xsd:documentation>The mandatory unique id
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="0" maxOccurs="1" name="name" type="xsd:string">
|
|
<xsd:annotation>
|
|
<xsd:documentation>The optional name for identification.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="start" type="tns:MilesMarker">
|
|
<xsd:annotation>
|
|
<xsd:documentation>The begin of the no passing zone. This is always
|
|
the lower mile marker.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element minOccurs="1" maxOccurs="1" name="end" type="tns:MilesMarker">
|
|
<xsd:annotation>
|
|
<xsd:documentation>The end of the no passing zone. This is always
|
|
the higher mile marker.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
<xsd:complexType name="NoPassingZoneList">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents a set of no passing zones
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element minOccurs="0" maxOccurs="unbounded" name="entries" type="tns:NoPassingZone">
|
|
<xsd:annotation>
|
|
<xsd:documentation>A set of NoPassingZone objects.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:schema> |