GET Asset/{assetid}/GeoFenceStates/{start}/{end}

Get most recent GeoFenceStates by Asset ID.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
assetid

ID of the asset.

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.

GeoFenceStateRestResult
NameDescriptionTypeAdditional information
RestItems

Collection of GeoFenceStateRestItem

None.

Response Formats

application/json, text/json

Sample:
{
  "RestItems": [
    {
      "Id": 1,
      "DeviceId": 2,
      "AssetId": 3,
      "GeoFenceId": 4,
      "StateChangeDateTime": "2024-04-29T23:04:54.480966+02:00",
      "HasLeft": true,
      "HasEntered": true,
      "GeoFenceLabel": "sample string 8",
      "HasPassedThrough": true
    },
    {
      "Id": 1,
      "DeviceId": 2,
      "AssetId": 3,
      "GeoFenceId": 4,
      "StateChangeDateTime": "2024-04-29T23:04:54.480966+02: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>2024-04-29T23:04:54.480966+02: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>2024-04-29T23:04:54.480966+02:00</StateChangeDateTime>
    </GeoFenceStateRestItem>
  </RestItems>
</GeoFenceStateRestResult>