GET devices/{deviceId}/lastlocation
This method is now obsolete. Please use the GetDevice method with OData instead. Searches for a device's last location.
Remarks
C4M Error Code returned:
null Location returned successfully.
DeviceNotFound The requested device does not exist on this environment.
NoInformationAvailable There's no location for the informed device.
403 - Forbidden The authenticated user doesn't have permission to access the resource.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
deviceId | Device identifier. |
Define this parameter in the request URI. |
Response Information
Last location of a device as DeviceLocationResponseDto.
Response body formats
application/json, text/json
Sample:
{ "lastCommunicationDate": "2020-05-15T17:03:27.6960553-03:00", "receivedDate": "2020-05-15T17:03:27.6960553-03:00", "accuracy": 1.1, "altitude": 1.1, "bearing": 1.1, "coordinate": { "latitude": 1.0, "longitude": 2.0 }, "deviceDate": { "date": "2020-05-15T17:03:27.6960553-03:00", "timeZoneId": "E. South America Standard Time", "utcOffset": -180 }, "speed": 1.1 }