GET Device/{deviceId}/GeoFenceStates/{start}/{end}
Get most recent GeoFenceStates by Device ID.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
deviceId |
ID of the device. |
integer |
Required |
start |
Begin of period to return data from. Value indicates seconds since epoch. |
integer |
Required |
end |
End of period to return data from. Value indicates seconds since epoch. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A enumeration of GeoFenceState objects.
GeoFenceStateRestResultName | Description | Type | Additional information |
---|---|---|---|
RestItems | Collection of GeoFenceStateRestItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "RestItems": [ { "Id": 1, "DeviceId": 2, "AssetId": 3, "GeoFenceId": 4, "StateChangeDateTime": "2025-01-05T02:40:06.277627+01:00", "HasLeft": true, "HasEntered": true, "GeoFenceLabel": "sample string 8", "HasPassedThrough": true }, { "Id": 1, "DeviceId": 2, "AssetId": 3, "GeoFenceId": 4, "StateChangeDateTime": "2025-01-05T02:40:06.277627+01:00", "HasLeft": true, "HasEntered": true, "GeoFenceLabel": "sample string 8", "HasPassedThrough": true } ] }
application/xml, text/xml
Sample:
<GeoFenceStateRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models"> <RestItems> <GeoFenceStateRestItem> <AssetId>3</AssetId> <DeviceId>2</DeviceId> <GeoFenceId>4</GeoFenceId> <GeoFenceLabel>sample string 8</GeoFenceLabel> <HasEntered>true</HasEntered> <HasLeft>true</HasLeft> <HasPassedThrough>true</HasPassedThrough> <Id>1</Id> <StateChangeDateTime>2025-01-05T02:40:06.277627+01:00</StateChangeDateTime> </GeoFenceStateRestItem> <GeoFenceStateRestItem> <AssetId>3</AssetId> <DeviceId>2</DeviceId> <GeoFenceId>4</GeoFenceId> <GeoFenceLabel>sample string 8</GeoFenceLabel> <HasEntered>true</HasEntered> <HasLeft>true</HasLeft> <HasPassedThrough>true</HasPassedThrough> <Id>1</Id> <StateChangeDateTime>2025-01-05T02:40:06.277627+01:00</StateChangeDateTime> </GeoFenceStateRestItem> </RestItems> </GeoFenceStateRestResult>