git_bsmd/nsw/Source/bsmd.herberg.FormService/Service References/ServiceReferenceHerberg/route.xsd
2015-03-29 13:31:25 +00:00

88 lines
4.0 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="qualified" targetNamespace="http://www.fleettracker.de/api/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<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 minOccurs="0" maxOccurs="1" name="name" type="xsd:string">
<xsd:annotation>
<xsd:documentation>This is an optional name of this waypoint.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element minOccurs="0" maxOccurs="1" name="nextwp" type="xsd:int">
<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 minOccurs="1" maxOccurs="1" name="lat" type="xsd:int">
<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 minOccurs="1" maxOccurs="1" name="lon" type="xsd:int">
<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 minOccurs="1" maxOccurs="1" name="sog" type="xsd:float">
<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>
</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 minOccurs="1" name="imono" type="xsd:int">
<xsd:annotation>
<xsd:documentation>This is the IMO number of the vessel this route belongs to.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element minOccurs="1" name="created" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation>This is the timestamp in UTC when the route has been created.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element minOccurs="1" name="eta" type="xsd:dateTime">
<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 minOccurs="0" maxOccurs="unbounded" name="waypoint" type="tns:WaypointData">
<xsd:annotation>
<xsd:documentation>This is the list of waypoints.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>