Detector Occupancy (every 10 minutes)

This dataset provides information about the occupancy of traffic detectors in 10-minute intervals. Occupancy represents the percentage of time a detector was activated by passing vehicles. The data can be used for traffic intensity analysis, intersection management, and planning traffic control measures. No data is available in Trnava yet (the controllers do not send detector occupancy), so the endpoint returns an empty array.

Publisher
Transport Department, City of Trnava

Format
API JSON

License
CC BY 4.0

Last modified
11. 11. 2026

Download data

Parameters

{
    "dataFrom": "2026-11-10T00:00:00.000Z",
    "dataTo": "2026-11-10T23:59:59.999Z",
    "from": 420,
    "to": 450,
    "itemId": "69d79e9ce3a65c0001e4755d"
}
dataFrom (string, required, ISO 8601 format) – Start time of the requested interval. Example: "2022-12-25T10:51:20.516Z".
dataTo (string, required, ISO 8601 format) – End time of the requested interval. Example: "2022-12-29T11: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., 450 means 07:30).
itemId (string, required) – Identifier of the monitored object.

Request

POST https://opendata.trnava.sk/api/datasets/v2/traffic-control/reports/occupancies

Answer

[
  {
    "timestamp": "2022-12-29T09:40:00Z",
    "from": "2022-12-29T09:40:00Z",
    "to": "2022-12-29T09:50:00Z",
    "D_F_K3": 42,
    "V3.2": 51,
    "DP2a": 0,
    "DP2b": 0,
    "DP3a": 18,
    "DP3b": 0,
    "V2a": 90,
    "V3a": 85,
    "D_F_ST3": 36,
    "V1.2": 12,
    "V3.1": 15,
    "D_empty": 0,
    "V1.1": 54,
    "D11.1": 0,
    "V2.1": 58,
    "V2.2": 24
  }
]

Request

GET https://opendata.trnava.sk/api/datasets/v2/traffic-control/reports/occupancies?outputType=csv

Answer

"timestamp","from","to","DAVGLo","DAVDPs","DAVDSo","DAVDLs","DAVBSo","DAVBSj","DAVAPjj","DZelPD","DZelPA","DZelPC","DZelPB","DPC","DPB","DVD2_sen","DAVDSjj","DAVDLjj","DAVCSo","DAVDPo","DAVDPj","DAVBSs","DAVAPo","DAVAPj","DSD_sen","DVC_sen","DAVGLj","DAVDPjj","DAVDSj","DAVDSs","DAVDLo","DAVDLj","DAVCSj","DAVBSjj","DAVAPs","DPD","DPA","DVG2_sen","DVG1","DKD","DVD1_sen","DVB2_sen","DVB1","DVA2_sen","DVA1_sen"
"2022-12-26T06:00:00Z","2022-12-26T06:00:00Z","2022-12-26T06:10:00Z",0,0,0,0,0,0,0,42,0,0,60,0,0,2,0,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0,0,0,0,0,1,0,0,3,1,4
"2022-12-26T06:10:00Z","2022-12-26T06:10:00Z","2022-12-26T06:20:00Z",1,0,1,0,0,0,0,41,0,0,57,0,0,1,2,0,255,0,0,0,0,0,0,0,3,0,1,3,0,0,255,0,0,0,0,0,1,3,2,1,8,0,1
"2022-12-26T06:20:00Z","2022-12-26T06:20:00Z","2022-12-26T06:30:00Z",0,0,0,0,0,0,0,43,1,0,60,0,0,8,0,1,255,0,0,0,0,0,1,0,0,0,0,0,1,1,255,0,0,0,9,1,6,2,0,0,0,1,0

Request

GET https://opendata.trnava.sk/api/datasets/v2/traffic-control/reports/occupancies?outputType=xml

Answer

[
  {
    "timestamp": "2022-12-29T09:40:00Z",
    "from": "2022-12-29T09:40:00Z",
    "to": "2022-12-29T09:50:00Z",
    "D_F_K3": 42,
    "V3.2": 51,
    "DP2a": 0,
    "DP2b": 0,
    "DP3a": 18,
    "DP3b": 0,
    "V2a": 90,
    "V3a": 85,
    "D_F_ST3": 36,
    "V1.2": 12,
    "V3.1": 15,
    "D_empty": 0,
    "V1.1": 54,
    "D11.1": 0,
    "V2.1": 58,
    "V2.2": 24
  }
]