Traffic Load of Detectors in Traffic Control System
This dataset provides data on traffic intensity recorded by traffic detectors as part of the traffic control system. It contains aggregated information on the number of vehicles passing through specific detectors within a defined time interval. The data can be used for traffic flow analysis, optimization of traffic control, infrastructure planning, and other analytical purposes.
Publisher
Transport Department, City of Trnava
Curator
trnava@trnava.sk
Format
API JSON
License
CC BY 4.0
Update frequency
Continuously updated
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"source": "eDaptiva",
"itemId": "69d79e9ce3a65c0001e4755d",
"detectorIds": [
13,
14
],
"from": "2026-11-04T10:00:01.000Z",
"to": "2026-11-04T10:20:00.000Z"
}
source (string, required) – Specifies the data source. Possible values:
"invipo" – Data from the Invipo platform
"eDaptiva" – Data from the eDaptiva platform
itemId (string, required) – Identifier of the monitored object within the system.
detectorIds (array of numbers, optional) – List of detector IDs for which data should be returned. If not specified, data for all available detectors may be returned.
from (string, required, ISO 8601 format) – Start time of the requested interval. Example: "2023-12-12T10:00:00.000Z".
to (string, required, ISO 8601 format) – End time of the requested interval. Example: "2023-12-12T15:00:00.000Z".
Request
POST https://opendata.trnava.sk/api/datasets/v1/traffic-control/detectors/loads
Answer
[
{
"loads": [
{
"id": "6aeb06eea12206480bde80a7",
"detectorId": 13,
"isProcessed": true,
"isValid": true,
"originalVehiclesPerHour": 72,
"vehiclesPerHour": 72
},
{
"id": "6aeb06eea12206480bde80a8",
"detectorId": 14,
"isProcessed": true,
"isValid": true,
"originalVehiclesPerHour": 108,
"vehiclesPerHour": 108
}
],
"intervalEnd": "2026-11-04T10:20:00.000Z",
"intervalStart": "2026-11-04T10:10:00.000Z",
"controllerId": "21da2780-7cdb-4aed-bb30-5b7c2e0024a5"
},
{
"loads": [],
"intervalEnd": "2026-11-04T10:20:00.000Z",
"intervalStart": "2026-11-04T10:10:00.000Z",
"controllerId": "2f01bd12-5152-40f2-8370-41be7d5a22d6"
}
]
Request
GET https://opendata.trnava.sk/api/datasets/v1/traffic-control/detectors/loads?outputType=csv
Answer
"loads.0.id","loads.0.detectorId","loads.0.isProcessed","loads.0.isValid","loads.0.originalVehiclesPerHour","loads.0.vehiclesPerHour","loads.1.id","loads.1.detectorId","loads.1.isProcessed","loads.1.isValid","loads.1.originalVehiclesPerHour","loads.1.vehiclesPerHour","intervalEnd","intervalStart","controllerId"
"6aeb06eea12206480bde80a7",13,true,true,72,72,"6aeb06eea12206480bde80a8",14,true,true,108,108,"2026-11-04T10:20:00.000Z","2026-11-04T10:10:00.000Z","21da2780-7cdb-4aed-bb30-5b7c2e0024a5"
,,,,,,,,,,,,"2026-11-04T10:20:00.000Z","2026-11-04T10:10:00.000Z","2f01bd12-5152-40f2-8370-41be7d5a22d6"
Request
GET https://opendata.trnava.sk/api/datasets/v1/traffic-control/detectors/loads?outputType=xml
Answer
<root>
<item>
<loads>
<item>
<id>6aeb06eea12206480bde80a7</id>
<detectorId>13</detectorId>
<isProcessed>true</isProcessed>
<isValid>true</isValid>
<originalVehiclesPerHour>72</originalVehiclesPerHour>
<vehiclesPerHour>72</vehiclesPerHour>
</item>
<item>
<id>6aeb06eea12206480bde80a8</id>
<detectorId>14</detectorId>
<isProcessed>true</isProcessed>
<isValid>true</isValid>
<originalVehiclesPerHour>108</originalVehiclesPerHour>
<vehiclesPerHour>108</vehiclesPerHour>
</item>
</loads>
<intervalEnd>2026-11-04T10:20:00.000Z</intervalEnd>
<intervalStart>2026-11-04T10:10:00.000Z</intervalStart>
<controllerId>21da2780-7cdb-4aed-bb30-5b7c2e0024a5</controllerId>
</item>
<item>
<loads/>
<intervalEnd>2026-11-04T10:20:00.000Z</intervalEnd>
<intervalStart>2026-11-04T10:10:00.000Z</intervalStart>
<controllerId>2f01bd12-5152-40f2-8370-41be7d5a22d6</controllerId>
</item>
</root>