TrackingSetPosition (ZWS)

Передаёт информацию о текущем местоположении и времени на сервер.

Схема запроса:

<xs:element name="zulu-server">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="Command">
                <xs:complexType>
                    <xs:choice>
                        <xs:element name="TrackingSetPosition"/>               
                    </xs:choice>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>
   
<xs:complexType name="typeTrackingSetPosition">
    <xs:all>
        <xs:element name="Layer" type="typeLayer"/>
        <xs:element name="DeviceID" type="xs:double"/>
        <xs:element name="Locations" minOccurs="0">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="Location" minOccurs="0" maxOccurs="unbounded">
                        <xs:complexType>
                            <xs:all>
                                <xs:element name="Lat" type="xs:double"/>
                                <xs:element name="Lon" type="xs:double"/>
                                <xs:element name="Alt" type="xs:double"/>
                                <xs:element name="Speed" type="xs:double"/>
                                <xs:element name="Bearing" type="xs:double"/>
                                <xs:element name="Time" type="xs:string"/>
                            </xs:all>
                        </xs:complexType>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
    </xs:all>
</xs:complexType>

Схема ответа:

         
<xs:element name="zwsResponse">
     <xs:complexType>
         <xs:sequence>
             <xs:choice minOccurs="0">
                 <xs:element name="TrackingSetPosition"
             </xs:choice>
             <xs:element name="RetVal" type="xs:integer"/>
         </xs:sequence>
     </xs:complexType>
</xs:element>
       

Пример запроса:

    
<?xml version="1.0" encoding="UTF-8"?>
<zulu-server service="zws" version="1.0.0">
  <Command>
    <TrackingSetPosition>
      <Layer>Cars</Layer>
      <DeviceID>275678249</DeviceID>
      <Locations>
        <Location>
          <Lat>59.9147648</Lat>
          <Lon>30.3464818</Lon>
          <Alt>43.599998474121094</Alt>
          <Speed>2.6939237</Speed>
          <Bearing>235.2125</Bearing>
          <Time>2020-03-02T11:47:13+0300</Time>
        </Location>
        <Location>
          <Lat>59.9146085</Lat>
          <Lon>30.3463041</Lon>
          <Alt>42.89999771118164</Alt>
          <Speed>0.6695312</Speed>
          <Bearing>241.32149</Bearing>
          <Time>2020-03-02T11:47:25+0300</Time>
        </Location>
        <Location>
          <Lat>59.9145729</Lat>
          <Lon>30.3462612</Lon>
          <Alt>42.89999771118164</Alt>
          <Speed>0.2816815</Speed>
          <Bearing>207.60417</Bearing>
          <Time>2020-03-02T11:47:28+0300</Time>
        </Location>        
      </Locations>
    </TrackingSetPosition>
  </Command>
</zulu-server>
       

Пример ответа:

<?xml version="1.0" encoding="UTF-8" ?>
    <zwsResponse>
        <TrackingSetPosition />
        <RetVal>0</RetVal>
    </zwsResponse>