97 lines
3.9 KiB
XML
97 lines
3.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsd:schema elementFormDefault="qualified"
|
|
attributeFormDefault="unqualified"
|
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
xmlns="http://www.fleettracker.de/api/1.0"
|
|
xmlns:tns="http://www.fleettracker.de/api/1.0"
|
|
targetNamespace="http://www.fleettracker.de/api/1.0"
|
|
>
|
|
<!-- ####################################################################### -->
|
|
<xsd:complexType name="WaypointData">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents a waypoint of a planned route.</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element name="id" type="xsd:int">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is a unique id of the waypoint within the route.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="name" type="xsd:string" minOccurs="0" maxOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is an optional name of this waypoint.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="nextwp" type="xsd:int" minOccurs="0" maxOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the unique id of the NEXT
|
|
waypoint within the route. This element is not set
|
|
for the last waypoint.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="lat" type="xsd:int" minOccurs="1" maxOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the latitude of this waypoint in minutes x 1000 (= degrees x 60000).
|
|
Positive = North, Negative = South.
|
|
Example: 12 deg 23.4 min North = (12 * 60 + 23.4) * 1000 = 743400
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="lon" type="xsd:int" minOccurs="1" maxOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the longitude of this waypoint in minutes x 1000 (= degrees x 60000).
|
|
Positive = East, Negative = West.
|
|
Example: 122 deg 23.4 min West = -(122 * 60 + 23.4) * 1000 = -7343400
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="sog" type="xsd:float" minOccurs="1" maxOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the planned speed over ground (SOG) in knots TO this waypoint.
|
|
So the ship will calculate to go from the previous waypoint to this
|
|
waypoint at this speed.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
<!-- Attributes -->
|
|
</xsd:complexType>
|
|
<!-- ####################################################################### -->
|
|
<xsd:complexType name="RouteData">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This represents the planned ship route.</xsd:documentation>
|
|
</xsd:annotation>
|
|
<xsd:sequence>
|
|
<xsd:element name="id" type="xsd:int">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is a unique id of the route. The ID has to be unique
|
|
for the vessel.
|
|
</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="imono" type="xsd:int" minOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the IMO number of the vessel this route belongs to.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="created" type="xsd:dateTime" minOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the timestamp in UTC when the route has been created.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="eta" type="xsd:dateTime" minOccurs="1">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the ETA in local time when the ship is calculated to
|
|
reach the final waypoint of this route.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
<xsd:element name="waypoint" type="tns:WaypointData" minOccurs="0" maxOccurs="unbounded">
|
|
<xsd:annotation>
|
|
<xsd:documentation>This is the list of waypoints.</xsd:documentation>
|
|
</xsd:annotation>
|
|
</xsd:element>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
</xsd:schema> |