Device - GET Get Device Locations
Fetches all saved locations to assign devices to specific areas or zones.
Gethttps://api.iotstadium.com/ext/locations
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
{
"message": "success",
"code": 200,
"data": {
"locations": [
{
"id": 147,
"location_name": "parkiran stasiun mojokerto",
"description": "",
"address": "",
"coord_lat": "-7.4719639235296",
"coord_long": "112.43526293448",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 238,
"key": "Sanrio swalayan 2 edit dari apps",
"parent_id": null,
"child": [
{
"id": 239,
"key": "rak-1",
"parent_id": 238,
"child": [
{
"id": 240,
"key": "rak-1-1",
"parent_id": 239,
"child": []
}
]
}
]
},
{
"id": 249,
"key": "polygonmaps",
"parent_id": null,
"child": []
}
]
},
{
"id": 143,
"location_name": "stasiun mojokerto 2",
"description": "",
"address": "test update",
"coord_lat": "-7.4724465",
"coord_long": "112.43425244369",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": []
},
{
"id": 56,
"location_name": "mitra keluarga",
"description": null,
"address": null,
"coord_lat": "-7.2685432",
"coord_long": "112.6876724",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": []
},
{
"id": 41,
"location_name": "Genteng Kali 8",
"description": null,
"address": null,
"coord_lat": "-7.256218491662293",
"coord_long": "112.74325293885572",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 58,
"key": "Lantai",
"parent_id": null,
"child": []
},
{
"id": 198,
"key": "aaa",
"parent_id": null,
"child": []
}
]
},
{
"id": 40,
"location_name": "Wowrack Tukwila",
"description": null,
"address": null,
"coord_lat": "47.49327955435766",
"coord_long": "-122.29369094492262",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 245,
"key": "igw1",
"parent_id": null,
"child": [
{
"id": 246,
"key": "room 1",
"parent_id": 245,
"child": []
}
]
}
]
},
{
"id": 38,
"location_name": "Intiland Tower",
"description": "",
"address": "",
"coord_lat": "-7.2729286777658",
"coord_long": "112.74283428098",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "a.ronaldo@iotstadium.com"
},
"custom_field": [
{
"id": 199,
"key": "aaa",
"parent_id": null,
"child": []
},
{
"id": 200,
"key": "test",
"parent_id": null,
"child": []
},
{
"id": 231,
"key": "aaa",
"parent_id": null,
"child": []
},
{
"id": 232,
"key": "sss",
"parent_id": null,
"child": []
},
{
"id": 242,
"key": "aaa",
"parent_id": null,
"child": []
},
{
"id": 233,
"key": "Test Layer A",
"parent_id": null,
"child": [
{
"id": 234,
"key": "111",
"parent_id": 233,
"child": []
},
{
"id": 235,
"key": "111",
"parent_id": 233,
"child": []
},
{
"id": 236,
"key": "111",
"parent_id": 233,
"child": [
{
"id": 237,
"key": "222",
"parent_id": 236,
"child": []
}
]
},
{
"id": 243,
"key": "AAA",
"parent_id": 233,
"child": []
},
{
"id": 244,
"key": "AAA",
"parent_id": 233,
"child": []
}
]
},
{
"id": 36,
"location_name": "Wowrack Indonesia",
"description": null,
"address": null,
"coord_lat": "-7.256340892381929",
"coord_long": "112.74343531508396",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": []
},
{
"id": 35,
"location_name": "Random Coordinate",
"description": null,
"address": null,
"coord_lat": "-6.1961313343626205",
"coord_long": "106.89121044312053",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "test.admin@iotstadium.com"
},
"custom_field": []
},
{
"id": 28,
"location_name": "SBY",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 54,
"key": "xxx",
"parent_id": null,
"child": []
}
]
},
{
"id": 19,
"location_name": "SBY",
"description": "Surabaya",
"address": "Jl. Tunjungan",
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 48,
"key": "No.",
"parent_id": null,
"child": []
},
{
"id": 47,
"key": "Blok",
"parent_id": null,
"child": []
}
]
},
{
"id": 16,
"location_name": "Denpasar",
"description": "Denpasar Bali",
"address": "Jalan Denpasar No 1",
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 40,
"key": "Block",
"parent_id": null,
"child": []
},
{
"id": 41,
"key": "Number",
"parent_id": null,
"child": []
},
{
"id": 42,
"key": "Place",
"parent_id": null,
"child": []
},
{
"id": 39,
"key": "Room",
"parent_id": null,
"child": []
}
]
},
{
"id": 9,
"location_name": "Malang",
"description": "Kantor Malang",
"address": "Kab. Malang",
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": [
{
"id": 27,
"key": "Room",
"parent_id": null,
"child": []
},
{
"id": 28,
"key": "Table",
"parent_id": null,
"child": []
}
]
},
{
"id": 6,
"location_name": "Mojokerto",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": []
},
{
"id": 5,
"location_name": "Malang",
"description": null,
"address": null,
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": []
},
{
"id": 2,
"location_name": "Intiland Building",
"description": "Gedung Intiland",
"address": "Gubeng, Surabaya",
"coord_lat": "",
"coord_long": "",
"created_by": {
"first_name": "Test",
"last_name": "QA",
"id": 78,
"email": "owner@gmail.com"
},
"custom_field": []
}
]
}
}
{
"message": "Unauthorized (token isn’t provided, or is invalid)",
"code": 401,
"errors": {
"message": "Unauthorized (token isn’t provided, or is invalid)",
"field": "iot API"
}
}