GET Asset/{id}/Stop/{start}/{end}/{firstLoad}
Get all stops by asset.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Internal Id to the asset. |
integer |
Required |
start |
Start of daterange to search in. |
integer |
Required |
end |
End of daterange to search in. |
integer |
Required |
firstLoad |
Indicates most recent stops should be loaded. Start/End date will be ignored. |
boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
A enumeration of StopsRestItem objects.
StopRestResultName | Description | Type | Additional information |
---|---|---|---|
BeginDateTime | date |
None. |
|
EndDateTime | date |
None. |
|
Stops | Collection of StopRestItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "BeginDateTime": "2025-01-05T02:34:46.098025+01:00", "EndDateTime": "2025-01-05T02:34:46.098025+01:00", "Stops": [ { "StopId": 1, "DeviceId": 2, "BeginDateTime": "2025-01-05T02:34:46.098025+01:00", "EndDateTime": "2025-01-05T02:34:46.098025+01:00", "Latitude": 1.1, "Longitude": 1.1, "HasEpisodes": true }, { "StopId": 1, "DeviceId": 2, "BeginDateTime": "2025-01-05T02:34:46.098025+01:00", "EndDateTime": "2025-01-05T02:34:46.098025+01:00", "Latitude": 1.1, "Longitude": 1.1, "HasEpisodes": true } ] }
application/xml, text/xml
Sample:
<StopRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models"> <BeginDateTime>2025-01-05T02:34:46.098025+01:00</BeginDateTime> <EndDateTime>2025-01-05T02:34:46.098025+01:00</EndDateTime> <Stops> <StopRestItem> <BeginDateTime>2025-01-05T02:34:46.098025+01:00</BeginDateTime> <DeviceId>2</DeviceId> <EndDateTime>2025-01-05T02:34:46.098025+01:00</EndDateTime> <HasEpisodes>true</HasEpisodes> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <StopId>1</StopId> </StopRestItem> <StopRestItem> <BeginDateTime>2025-01-05T02:34:46.098025+01:00</BeginDateTime> <DeviceId>2</DeviceId> <EndDateTime>2025-01-05T02:34:46.098025+01:00</EndDateTime> <HasEpisodes>true</HasEpisodes> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <StopId>1</StopId> </StopRestItem> </Stops> </StopRestResult>