Heatmaps

Get All Active Users

Returns all active users on map for selected period of time. Support requests: GET & POST;

GET SERVER_URL/heatmapVisitors?userHash={userHash}&sublocationId={sublocationId}&deltaTime={deltaTime}

Request Parameters

Parameter Value
{userHash} id of the registered user
{sublocationId} ID of the sublocation, for which you want to get the heatmap archive
{deltaTime} Time as HH:mm from which to curent time server will return data

JSON Response Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
    "visitors": [
        {
            "kx": "0.62911", # x coordinate (relative)
            "ky": "0.24248", # y coordinate (relative)
            "zone_id": "1865", # sublocation id
            "mobile_uuid": "D2FF00041B7F", # tracking object id
            "datetime": "2017-04-03 05:25:48", # datetime measurment was taken
            "x": 1069.487, # x coordinate (in pixels)
            "y": 412.216 # y coordinate (in pixels)
        },
        {
            "kx": "0.39376",
            "ky": "0.17634",
            "zone_id": "1865",
            "mobile_uuid": "D2FF00041B7D",
            "datetime": "2017-04-03 05:25:48",
            "x": 669.392,
            "y": 299.778
        },
        ...
    ],
    "w": "1700.00000", # map width (in pixels)
    "h":"1700.00000" # map height (in pixels)
}

Get Heatmap

Enables you to get a selected heatmap archive.

GET SERVER_URL/graphic/heatmapRelative?userHash={userHash}&sublocationId={sublocationId}&dateTimeFrom={dateTimeFrom}&dateTimeTo={dateTimeTo}

Request Parameters

Parameter Value
{sublocationId} ID of the sublocation, for which you want to get the heatmap archive
{dateTimeFrom} Start from <date in DD-MM-YYYY+HH:mm format>
{dateTimeTo} End with <date in DD-MM-YYYY+HH:mm format>
{userHash} id of the registered user

JSON Request Example

1
2
3
4
5
6
{
    "sublocationId": 18,
    "dateFrom": "02-04-2017+00:00",
    "dateTo": "02-04-2017+23:59",
    "userHash": "AAAA-BBBB-CCCC-DDDD"
}

JSON Response Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
    "w":"11.08369",
    "h":"15.83859",
    "imageUrl":"files\\/741\\/1092\\/3193\\/new\_version\\/glonassunion.15th\_floor.png",
    "heatmap":[
        {
            "kx":"0.463",
            "ky":"0.093",
            "u":"62253C99-BA3C-47B9-86A0-D2F9ABCFB500",
            "weight":"0.13"
        },
          ...
    ]
}