Query Space Details

Last Updated on : 2023-06-15 06:05:03

Query the details of a specified space.

API address

GET: /v1.0/iot-02/community/space

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringquerytrueThe ID of a community.
tree_idStringquerytrueThe ID of the node.

Return parameter

Parameter nameTypeDescription
resultHighwayBuildingDetailResponse

Description of result

Parameter nameTypeDescription
parent_tree_idStringThe ID of a specified parent node.
building_typeIntegerThe type of building.
  • 1: Commercial building.
  • 2: Residential building.
  • 3: Commercial and residential building.
building_towardIntegerThe direction of a specified building.
  • 1: East.
  • 2: South.
  • 3: West.
  • 4: North.
building_addressStringThe address of a specified building.
tree_idStringThe ID of a specified node.
space_tree_nameStringThe name of the space.
full_valueStringThe full name.
valueStringThe value.
meta_idStringThe ID of the space type.
meta_codeStringSpace type.
    area: the area.
  • building: the building.
  • unit: the unit.
  • floor: the floor.
  • house: the room.

Request example

GET: /v1.0/iot-02/community/space?block_id=137209001211933xxxx

Return example

{
    "fullValue": "Building 1",
    "metaCode": "building",
    "treeId": "137209008422933xxxx",
    "parentTreeId": "137209118422933xxxx",
    "value": "Building 1"
}

Error code

For more information, see error code.