Indoor POIs

A point of interest represents any entity that occupies a certain geographical location. More details here.
The indoor POI object
id integer
Indoor POI identifier
building_id integer
Building identifier (retrieve all you buildings to know their identifiers)
name string
Indoor POI name
category_id integer
POIs can be differenciated by categories. More details in POI categories
created_at datetime
Time when the indoor POI was created
updated_at datetime
Last time when the indoor POI was updated
info text
Indoor POI aditional information
position object
Indoor POI position
Child attributes
floor_id integer
Floor identifier where the indoor POI is located
radius float
Indoor POI radius in meters
georeferences object
Indoor POI position in geographic coordinates
The location data are represented in WGS84 coordinate system
Child attributes
lat float
Geographic latitude
lng float
Geographic longitude
cartesians object
Indoor POI position in cartesian coordinates taking the bottomleft corner as the origin
More details here
Coordinates in meters
Child attributes
x float
x coordinate
y float
y coordinate
custom_fields array of objects
List of custom key-value pairs. More details in Custom fields
Custom field attributes
key string
Custom field key
value string
Custom field value
Example Response
{
  "id": 1110,
  "building_id": 98,
  "name": "Salida de emergencia",
  "category_id": null,
  "created_at": "2016-06-23T09:13:44.238+02:00",
  "updated_at": "2016-06-23T09:13:44.238+02:00",
  "info": "<p>Office information</p>",
  "position": {
    "floor_id": 250,
    "radius": 5,
    "georeferences": {
      "lat": 42.8888740652095,
      "lng": -8.52679516919729
    },
    "cartesians": {
      "x": 118.195381193397,
      "y": 83.5619519803241
    }
  },
  "custom_fields": [
    {
      "key": "active",
      "value": "false"
    }
  ]
}

Returns the indoor POIs of a building

An indoor POI refers to a Point of Interest that has been placed inside the floorplan of the building. Usually, this may be used to indicate the location of indoor elements such as toilets, elevators, shops, information points, etc.
Parameters
X-API-EMAIL required
The email of the user
X-API-KEY required
The API key of the user
building_id required path param
Building identifier (retrieve all your buildings to know their identifiers)
Returns
Returns an array of indoor POI objects.
Error Status Codes
Request url
https://dashboard.situm.es/api/v1/buildings/:building_id/pois
*Deprecated: https://dashboard.situm.es/api/v1/projects/:building_id/points_of_interest (supported until SDK 4.0)
Curl
curl -H 'Content-Type: application/json' -H 'X-API-EMAIL: user@example.com' -H 'X-API-KEY: T9NP2lzk+jSI/Oi5DG6ODk57O0pZXdx4' "https://dashboard.situm.es/api/v1/buildings/:building_id/pois"
Response body
[
  {
    "id": 1110,
    "building_id": 98,
    "name": "Exit",
    "category_id": null,
    "created_at": "2016-06-23T09:13:44.238+02:00",
    "updated_at": "2016-06-23T09:13:44.238+02:00",
    "info": "<p>Office information</p>",
    "position": {
      "floor_id": 250,
      "radius": 5,
      "georeferences": {
        "lat": 42.8888740652095,
        "lng": -8.52679516919729
      },
      "cartesians": {
        "x": 118.195381193397,
        "y": 83.5619519803241
      }
    },
    "custom_fields": [
      {
        "key": "active",
        "value": "false"
      }
    ],
  },
  {
    "id": 1118,
    "building_id": 98,
    "name": "Exit",
    "category_id": null,
    "created_at": "2016-06-23T09:13:44.266+02:00",
    "updated_at": "2016-06-23T09:13:44.266+02:00",
    "info": "",
    "position": {
      "floor_id": 291,
      "radius": 5,
      "georeferences": {
        "lat": 42.8894319925544,
        "lng": -8.5260591928676
      },
      "cartesians": {
        "x": 129.095022842987,
        "y": 169.219519297874
      }
    },
    "custom_fields": [],
  },
  {
    "id": 1119,
    "building_id": 98,
    "name": "Exit",
    "category_id": null,
    "created_at": "2016-06-23T09:13:44.270+02:00",
    "updated_at": "2016-06-23T09:13:44.270+02:00",
    "info": "",
    "position": {
      "floor_id": 290,
      "radius": 5,
      "georeferences": {
        "lat": 42.8897241027706,
        "lng": -8.52650635612187
      },
      "cartesians": {
        "x": 80.4020133517356,
        "y": 173.258695282861
      }
    },
    "custom_fields": [],
  }
]