TrackingGetInfoByXY (ZWS)

Получает информацию со слоя трекинга по указанным координатам.

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

<xs:element name="zulu-server">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="Command">
                <xs:complexType>
                    <xs:choice>
                        <xs:element name="TrackingGetInfoByXY" type="typeTrackingGetInfoByXY"/>
                    </xs:choice>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
</xs:element>


<xs:complexType name="typeTrackingGetInfoByXY">
    <xs:all>
        <xs:element name="Layer" type="typeLayer"/>
        <xs:element name="Filter">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="Time">
                        <xs:complexType>
                            <xs:attribute name="begin" type="xs:string" />
                            <xs:attribute name="end" type="xs:string" />
                        </xs:complexType>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
        <xs:element name="X" type="xs:double"/>
        <xs:element name="Y" type="xs:double"/>
        <xs:element name="CRS" type="typeCRS"/>
        <xs:element name="Scale" type="xs:double"/>
    </xs:all>
</xs:complexType>
        

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

<xs:complexType name="typeTrackingGetInfoByXYResponse">
    <xs:sequence>
        <xs:element name="Element" minOccurs="0" maxOccurs="unbounded">
            <xs:complexType>
                <xs:all>
                    <xs:element name="Info" type="xs:string"/>
                    <xs:element name="Geometry" type="typeGeometry"/>
                </xs:all>
            </xs:complexType>
        </xs:element>
    </xs:sequence>
</xs:complexType>
        

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

<?xml version="1.0" encoding="UTF-8"?>
<zulu-server service="zws" version="1.0.0">
<Command>
    <TrackingGetInfoByXY>
        <Layer>People</Layer>
        <Filter>
            <Time begin="2020-01-19" end="2020-02-19"/>
        </Filter>
        <X>8380626.77</X>
        <Y>3378058.70</Y>
        <Scale>0.14</Scale>
        <CRS>EPSG:3857</CRS>
    </TrackingGetInfoByXY>
</Command>
</zulu-server>
        

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

<?xml version="1.0" encoding="UTF-8" ?>
    <zwsResponse>
    <TrackingGetInfoByXY>
        <Element>
            <Info>Tracking object UserId: 555970541 Name: Ivanov S.V. 
                Device: MI 8 Speed: 0.33 Alt: 43.70 Time: 19.02.2020 7:43:05
            </Info>
            <Geometry>
                <KML>
                    <Placemark id="555970541">
                        <name>555970541</name>
                        <Point>
                            <coordinates>30.3456176000000,59.9140495000000</coordinates>
                        </Point>
                    </Placemark>
                </KML>
            </Geometry>
         </Element>
    </TrackingGetInfoByXY>
    <RetVal>33</RetVal>
 </zwsResponse>