zoneconfiguration

Location Management- Zone Configuration

The visitor distribution graph plots the total number of visitors for each day at the selected location for the specified duration. The data displayed on the graph for each time splice is based on the time zone set for the location selected in the tree. That is to say, you select a node with multiple locations under it.
The graph plots the total number of visitors for each day (based on the duration selected). The
graph also plots the total number visitors during a specific time period of the day (time splice).
The total number of visitor for a specific time splice is calculated by aggregating the visitor count
during the said time splice for each location, based on the time zone of the location.

JSON Table

Parameter Data Type Description Mandatory Default/Sample Value
success boolean Whether the API call was successful or not.
message String A message indicating the API success or failure.
data application/json A JSON object for the response data.
data/totalCount int The total number of records fetched.
data/floorConfig application/json An array of JSON objects for all the configurations is fetched.
data/floorConfig/config application/json This contains the config details of the locations.
data/floorConfig/config/server_id int This is an int value specifying the server on which it is connected. Mandatory 1
data/floorConfig/config/location_id int This id specifies the id of the location . Mandatory 20
data/floorConfig/config/layout application/json This generates the layout of the location zone.
data/floorConfig/config/layout/length int This is the length of the location area.
data/floorConfig/config/layout/width int This is the width of the location area.
data/floorConfig/config/layout/unit int This is the unit in which the area of the location is measured and noted.
data/floorConfig/config/range application/json This depicts the range of the area of the location varying from its maximum value to minimum values.
data/floorConfig/config/range/     footfall application/json This depicts the footfall table for the area.
data/floorConfig/config/range/min int This is the minimum value of the footfall area of the room.
data/floorConfig/config/range/max int This is the maximum value of the footfall area of the room
data/floorConfig/config/range/ dwell_time int This specifies the dwell time intervals.
data/floorConfig/options application/json This is the options that need to be specified.
data/floorConfig/options/durations int The duration intervals need to be specified. On what instances the details are required:7 days, 14 days, 30 days or so on.
data/floorConfig/options/  subDurations int The sub-durations give you the list of the days as per the duration selected.
data/campaign/active_landing_page/ page_id int This is the system generated id for the active landing page.
data/floorConfig/options/subDurations/ subDurationSections int The subduration section will contain the subdurations in time slots.

Copy Sample JSON
Sample JSON
[{
    "success": true,
    "message": "Record Found",
    "data": {
        "totalCount": 1,
        "floorConfig": {
            "config": {
                "server_id": "1",
                "location_id": "20",
                "layout": {
                    "length": "1000.0",
                    "width": "1000.0",
                    "unit": "METER"
                },
                "range": {
                    "footfall": {
                        "min": 10,
                        "max": 100
                    },
                    "dwell_time": [
                        5,
                        15,
                        30,
                        45,
                        60
                    ]
                }
            },
            "options": {
                "durations": [
                    7,
                    14,
                    30,
                    60,
                    90,
                    180,
                    365
                ],
                "subDurations": {
                    "7": [
                        "16/01/2018",
                        "17/01/2018",
                        "18/01/2018",
                        "19/01/2018",
                        "20/01/2018",
                        "21/01/2018",
                        "22/01/2018",
                        "all"
                    ],
                    "14": [
                        "09/01/2018",
                        "10/01/2018",
                        "11/01/2018",
                        "12/01/2018",
                        "13/01/2018",
                        "14/01/2018",
                        "15/01/2018",
                        "16/01/2018",
                        "17/01/2018",
                        "18/01/2018",
                        "19/01/2018",
                        "20/01/2018",
                        "21/01/2018",
                        "22/01/2018",
                        "all"
                    ],
                    "30": [
                        "24/12/2017",
                        "25/12/2017",
                        "26/12/2017",
                        "27/12/2017",
                        "28/12/2017",
                        "29/12/2017",
                        "30/12/2017",
                        "31/12/2017",
                        "01/01/2018",
                        "02/01/2018",
                        "03/01/2018",
                        "04/01/2018",
                        "05/01/2018",
                        "06/01/2018",
                        "07/01/2018",
                        "08/01/2018",
                        "09/01/2018",
                        "10/01/2018",
                        "11/01/2018",
                        "12/01/2018",
                        "13/01/2018",
                        "14/01/2018",
                        "15/01/2018",
                        "16/01/2018",
                        "17/01/2018",
                        "18/01/2018",
                        "19/01/2018",
                        "20/01/2018",
                        "21/01/2018",
                        "22/01/2018",
                        "all"
                    ],
                    "60": [
                        [
                            "24/11/2017",
                            "26/11/2017"
                        ],
                        [
                            "27/11/2017",
                            "03/12/2017"
                        ],
                        [
                            "04/12/2017",
                            "10/12/2017"
                        ],
                        [
                            "11/12/2017",
                            "17/12/2017"
                        ],
                        [
                            "18/12/2017",
                            "24/12/2017"
                        ],
                        [
                            "25/12/2017",
                            "31/12/2017"
                        ],
                        [
                            "01/01/2018",
                            "07/01/2018"
                        ],
                        [
                            "08/01/2018",
                            "14/01/2018"
                        ],
                        [
                            "15/01/2018",
                            "21/01/2018"
                        ],
                        [
                            "22/01/2018",
                            "22/01/2018"
                        ],
                        "all"
                    ],
                    "90": [
                        [
                            "25/10/2017",
                            "29/10/2017"
                        ],
                        [
                            "30/10/2017",
                            "05/11/2017"
                        ],
                        [
                            "06/11/2017",
                            "12/11/2017"
                        ],
                        [
                            "13/11/2017",
                            "19/11/2017"
                        ],
                        [
                            "20/11/2017",
                            "26/11/2017"
                        ],
                        [
                            "27/11/2017",
                            "03/12/2017"
                        ],
                        [
                            "04/12/2017",
                            "10/12/2017"
                        ],
                        [
                            "11/12/2017",
                            "17/12/2017"
                        ],
                        [
                            "18/12/2017",
                            "24/12/2017"
                        ],
                        [
                            "25/12/2017",
                            "31/12/2017"
                        ],
                        [
                            "01/01/2018",
                            "07/01/2018"
                        ],
                        [
                            "08/01/2018",
                            "14/01/2018"
                        ],
                        [
                            "15/01/2018",
                            "21/01/2018"
                        ],
                        [
                            "22/01/2018",
                            "22/01/2018"
                        ],
                        "all"
                    ],
                    "180": [
                        [
                            "27/07/2017",
                            "30/07/2017"
                        ],
                        [
                            "31/07/2017",
                            "06/08/2017"
                        ],
                        [
                            "07/08/2017",
                            "13/08/2017"
                        ],
                        [
                            "14/08/2017",
                            "20/08/2017"
                        ],
                        [
                            "21/08/2017",
                            "27/08/2017"
                        ],
                        [
                            "28/08/2017",
                            "03/09/2017"
                        ],
                        [
                            "04/09/2017",
                            "10/09/2017"
                        ],
                        [
                            "11/09/2017",
                            "17/09/2017"
                        ],
                        [
                            "18/09/2017",
                            "24/09/2017"
                        ],
                        [
                            "25/09/2017",
                            "01/10/2017"
                        ],
                        [
                            "02/10/2017",
                            "08/10/2017"
                        ],
                        [
                            "09/10/2017",
                            "15/10/2017"
                        ],
                        [
                            "16/10/2017",
                            "22/10/2017"
                        ],
                        [
                            "23/10/2017",
                            "29/10/2017"
                        ],
                        [
                            "30/10/2017",
                            "05/11/2017"
                        ],
                        [
                            "06/11/2017",
                            "12/11/2017"
                        ],
                        [
                            "13/11/2017",
                            "19/11/2017"
                        ],
                        [
                            "20/11/2017",
                            "26/11/2017"
                        ],
                        [
                            "27/11/2017",
                            "03/12/2017"
                        ],
                        [
                            "04/12/2017",
                            "10/12/2017"
                        ],
                        [
                            "11/12/2017",
                            "17/12/2017"
                        ],
                        [
                            "18/12/2017",
                            "24/12/2017"
                        ],
                        [
                            "25/12/2017",
                            "31/12/2017"
                        ],
                        [
                            "01/01/2018",
                            "07/01/2018"
                        ],
                        [
                            "08/01/2018",
                            "14/01/2018"
                        ],
                        [
                            "15/01/2018",
                            "21/01/2018"
                        ],
                        [
                            "22/01/2018",
                            "22/01/2018"
                        ],
                        "all"
                    ],
                    "365": [
                        "01/2017",
                        "02/2017",
                        "03/2017",
                        "04/2017",
                        "05/2017",
                        "06/2017",
                        "07/2017",
                        "08/2017",
                        "09/2017",
                        "10/2017",
                        "11/2017",
                        "12/2017",
                        "01/2018",
                        "all"
                    ]
                },
                "subDurationSections": [
                    "12am-8am",
                    "8am-11am",
                    "11am-1pm",
                    "1pm-4pm",
                    "4pm-8pm",
                    "8pm-12am",
                    "all"
                ]
            }
        }
    }
}]
API Calls

/v1.14/analytics/graphs/locationtracking/zones/ap/config

/v1.14/analytics/graphs/locationtracking/zones/ap/config

Get Zone Configuration

Description This API fetches the analytic data for the zones according to the duration that is mentioned. It might vary from a week, 2 weeks or a month.
Syntax
GET <Base_URL>/api/v1.14/analytics/graphs/locationtracking/zones/ap/config?server_id=<value>&
location_id=<value>& node_type=<value>
Sample code
GET https://marketverticalanalytics.airtightnw.com/api/v1.14/analytics/graphs/
locationtracking/zones/ap/config?server_id=1&location_id=20&node_type=location
Request Body This API call does not require any request body parameters.
Response Body The API returns the floor map details of the location of the AP, duration for which a user was connected and the dwell time of users.
The response is in the application/json format.

Edit Zone Configuration

Description This API helps to update changes in the location tracking based on the server id and location id.
Syntax
PUT <Base_URL>/api/v1.14/analytics/graphs/locationtracking/zones/ap/config?server_id=<value>&
location_id=<value>&node_type=<value>
Sample code
PUT https://marketverticalanalytics.airtightnw.com/api/v1.14/analytics/graphs/
locationtracking/zones/ap/config?server_id=1&location_id=20&node_type=location
Request Body This request body contains parameters that define the zone. Possible values of node type can be location, zone or data.

 {
    server_id:1,
    location_id:21,
   "node_type":"location"
}
Response Body The API returns the details of the location and zone configurations.
The response is in the application/json format.