GET api/Zone/{id}
Returns Zone at index id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Index of the Zone |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Zone| Name | Description | Type | Additional information |
|---|---|---|---|
| corners |
Corners of the Zone |
Collection of Location |
None. |
| id |
Id of the Zone |
string |
None. |
| name |
Name of the Zone |
string |
None. |
| type |
Type of the Zone |
string |
None. |
| displayType |
Display Type of the Zone |
string |
None. |
| openOrClosed |
Whether the Zone is Open or Close |
boolean |
None. |
| assetsAndGroup |
Assets and Group associated with the Zone |
Collection of Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"corners": [
{
"currentLat": 1.1,
"currentLon": 1.1,
"lastLat": 1.1,
"lastLon": 1.1,
"finalLat": 1.1,
"finalLon": 1.1,
"time": "2025-11-05T02:52:12.2019835+00:00",
"altitude": 1.1
},
{
"currentLat": 1.1,
"currentLon": 1.1,
"lastLat": 1.1,
"lastLon": 1.1,
"finalLat": 1.1,
"finalLon": 1.1,
"time": "2025-11-05T02:52:12.2019835+00:00",
"altitude": 1.1
}
],
"id": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"displayType": "sample string 4",
"openOrClosed": true,
"assetsAndGroup": [
[
1,
2
],
[
1,
2
]
]
}
application/xml, text/xml
Sample:
<Zone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAVRADServer.Models">
<ID>sample string 1</ID>
<assetsAndGroup xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:ArrayOfint>
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</d2p1:ArrayOfint>
<d2p1:ArrayOfint>
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</d2p1:ArrayOfint>
</assetsAndGroup>
<corners>
<Location>
<altitude>1.1</altitude>
<currentLat>1.1</currentLat>
<currentLon>1.1</currentLon>
<finalLat>1.1</finalLat>
<finalLon>1.1</finalLon>
<lastLat>1.1</lastLat>
<lastLon>1.1</lastLon>
<time>2025-11-05T02:52:12.2019835+00:00</time>
</Location>
<Location>
<altitude>1.1</altitude>
<currentLat>1.1</currentLat>
<currentLon>1.1</currentLon>
<finalLat>1.1</finalLat>
<finalLon>1.1</finalLon>
<lastLat>1.1</lastLat>
<lastLon>1.1</lastLon>
<time>2025-11-05T02:52:12.2019835+00:00</time>
</Location>
</corners>
<displayType>sample string 4</displayType>
<name>sample string 2</name>
<openOrClosed>true</openOrClosed>
<type>sample string 3</type>
</Zone>