Aggregated Traffic Loads of Detectors

This dataset provides aggregated traffic load data recorded by traffic detectors in 10-minute intervals. It includes information on the number of vehicles passing through each detector within the specified time period. The data can be used for traffic intensity analysis, peak hour predictions, and traffic management optimization.

Publisher
Transport Department, City of Trnava

Format
API JSON

License
CC BY 4.0

Update frequency
Continuously updated

Last modified
3. 11. 2026

Download data

Parameters

{
  "from": "2026-10-07T06:00:00.000Z",
  "to": "2026-10-07T10:00:00.000Z",
  "itemIds": [
    "69d79e9ce3a65c0001e4755d"
  ]
}
from (string, required, ISO 8601 format) – Start time of the requested interval. Example: "2022-12-28T10:51:20.516Z".
to (string, required, ISO 8601 format) – End time of the requested interval. Example: "2022-12-29T07:51:20.516Z".
itemIds (array of strings, required) – List of object identifiers for which data should be returned.

Request

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

Answer

[
    {
        "intervalStart": "2026-10-07T06:00:00.000Z",
        "intervalEnd": "2026-10-07T06:10:00.000Z",
        "loads": []
    },
    {
        "intervalStart": "2026-10-07T06:00:00.000Z",
        "intervalEnd": "2026-10-07T06:10:00.000Z",
        "loads": []
    }
]

Request

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

Answer

"intervalStart","intervalEnd","loads"
"2026-10-07T06:00:00.000Z","2026-10-07T06:10:00.000Z",
"2026-10-07T06:00:00.000Z","2026-10-07T06:10:00.000Z",

Request

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

Answer

<root>
  <item>
    <intervalStart>2026-10-07T06:00:00.000Z</intervalStart>
    <intervalEnd>2026-10-07T06:10:00.000Z</intervalEnd>
    <loads/>
  </item>
  <item>
    <intervalStart>2026-10-07T06:00:00.000Z</intervalStart>
    <intervalEnd>2026-10-07T06:10:00.000Z</intervalEnd>
    <loads/>
  </item>
</root>