improved
API - Additional info included from the location endpoint
December 7th, 2021
✨ Improvements
Get location endpoint now returns more information.
GET /locations/{locationId}
{
"id": "00000000-0000-0000-0000-0000000000",
"name": "Office",
"labels": {},
"devices": [
{
"id": "2920000000",
"deviceType": "WAVE_MINI",
"segment": {
"id": "00000000-0000-0000-0000-0000000000",
"name": "Mini",
"started": "2019-03-13T13:37:37",
"active": true
}
},
{
"id": "2920001111",
"deviceType": "WAVE_MINI",
"segment": {
"id": "00000000-0000-0000-0000-0000000001",
"name": "Mini reception",
"started": "2019-03-13T13:37:37",
"active": true
}
},
{
"id": "2820002222",
"deviceType": "HUB",
"segment": {
"id": "00000000-0000-0000-0000-0000000002",
"name": "TestHub",
"started": "2021-12-07T12:43:41",
"active": true
}
}
],
"address": "Oslo, Norway",
"countryCode": "NO",
"lat": 59.913868,
"lng": 10.752245,
"buildingType": "Office",
"buildingYear": 2000,
"ventilationType": "Balanced",
"timezone": "Europe/Oslo",
"usageHours": {
"friday": {
"closed": false,
"from": "07:00",
"to": "17:00"
},
"monday": {
"closed": false,
"from": "07:00",
"to": "17:00"
},
"saturday": {
"closed": true
},
"sunday": {
"closed": true
},
"thursday": {
"closed": false,
"from": "08:00",
"to": "17:00"
},
"tuesday": {
"closed": false,
"from": "07:00",
"to": "17:00"
},
"wednesday": {
"closed": false,
"from": "07:00",
"to": "20:00"
}
},
"buildingHeight": 5.0,
"buildingSize": 190.0,
"buildingVolume": 907986.0,
"floors": 2
}