GET api/v1/devices/{deviceId}/location/current
Get the devices current location (Not implemented
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| deviceId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
LocationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Friendly name for the location |
string |
None. |
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| Elevation | decimal number |
None. |
|
| WellKnownLocationId | globally unique identifier |
None. |
|
| LastUpdated | date |
None. |
Response Formats
application/json, text/json, application/senml+json
Sample:
{
"Name": "sample string 1",
"Latitude": 2.1,
"Longitude": 3.1,
"Elevation": 4.1,
"WellKnownLocationId": "74aed554-b14b-4c7e-bb2f-16f56f7b4425",
"LastUpdated": "2025-10-29T08:43:59.4915937+00:00"
}
application/xml, text/xml
Sample:
<LocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared"> <Elevation>4.1</Elevation> <LastUpdated>2025-10-29T08:43:59.4915937+00:00</LastUpdated> <Latitude>2.1</Latitude> <Longitude>3.1</Longitude> <Name>sample string 1</Name> <WellKnownLocationId>74aed554-b14b-4c7e-bb2f-16f56f7b4425</WellKnownLocationId> </LocationDto>