This request will deliver movement data of LightRadar sensors.
lightRadar
GET
-
format=json|xml
You may access data of several devices by comma delimited serial numbers. No comma at the beginning or end of this string.
Cannot be used in combination with parameter "customer".
serial=0474303,0478304
You may access data of all devices of one or more customers by comma delimited slcID of customers. No comma at the beginning or end of this string.
Cannot be used in combination with parameter "serial".
customer=104,105,304
You may restrict the number of records each device will return. You will always get the newest records first. Default limit is 10'000.
limit=100
You may restrict the recordset by start time and/oder end time. Timeconstraints are local time.
from=2017-11-25T08:00:35 to=2017-11-25T15:00:35
<?xml version="1.0" encoding="UTF-8" ?> <slControl> <lightRadar serial="4053795" customer="4"> <dataset date="2018-10-02 17:52:22"> <approaching total="1365"> <truck>0</truck> <car>541</car> <motorbike>17</motorbike> <bicycle>13</bicycle> <person>773</person> <unknown>21</unknown> </approaching> <receding total="1019"> <truck>0</truck> <car>546</car> <motorbike>12</motorbike> <bicycle>15</bicycle> <person>436</person> <unknown>10</unknown> </receding> </dataset> <dataset date="2018-10-02 17:37:12"> <approaching total="1365"> <truck>0</truck> <car>541</car> <motorbike>17</motorbike> <bicycle>13</bicycle> <person>773</person> <unknown>21</unknown> </approaching> <receding total="1019"> <truck>0</truck> <car>546</car> <motorbike>12</motorbike> <bicycle>15</bicycle> <person>436</person> <unknown>10</unknown> </receding> </dataset> </lightRadar> </slControl>
JSON-Format is structurally identical.
{ "lightRadar": { "@attributes": { "serial": "4053795", "customer": "4" }, "dataset": [{ "@attributes": { "date": "2018-10-02 17:52:22" }, "approaching": { "@attributes": { "total": "1365" }, "truck": "0", "car": "541", "motorbike": "17", "bicycle": "13", "person": "773", "unknown": "21" }, "receding": { "@attributes": { "total": "1019" }, "truck": "0", "car": "546", "motorbike": "12", "bicycle": "15", "person": "436", "unknown": "10" } }, { "@attributes": { "date": "2018-10-02 17:37:12" }, "approaching": { "@attributes": { "total": "1365" }, "truck": "0", "car": "541", "motorbike": "17", "bicycle": "13", "person": "773", "unknown": "21" }, "receding": { "@attributes": { "total": "1019" }, "truck": "0", "car": "546", "motorbike": "12", "bicycle": "15", "person": "436", "unknown": "10" } }] } }