Request
GET https://opendata.zilina.sk/api/datasets/v2/traffic-control/reports/occupancy-summary?outputType=xml
Parameters
{
"from": 420,
"to": 480,
"dataFrom": "2022-12-21T10:51:20.516Z",
"dataTo": "2022-12-29T07:51:20.516Z",
"itemId": "611a65374203550001c13789"
}
dataFrom (string, required, ISO 8601 format) – Start time of the requested interval. Example: "2022-12-21T10:51:20.516Z".
dataTo (string, required, ISO 8601 format) – End time of the requested interval. Example: "2022-12-29T07:51:20.516Z".
from (number, optional) – Start minute of the day (e.g., 420 means 07:00).
to (number, optional) – End minute of the day (e.g., 480 means 08:00).
itemId (string, required) – Identifier of the monitored object.
USER GUIDE
Detailed instructions for querying datasets are available here.
Answer
{
"V1.1": {
"sum": 5622,
"min": 6,
"max": 306,
"avg": 117.125
},
"V1.2": {
"sum": 5454,
"min": 12,
"max": 246,
"avg": 113.625
}
}