Request
POST https://opendata.zilina.sk/api/datasets/v1/traffic-counters/vehicles/stations
Parameters
{
"period": "week",
"itemIds": [
"6513ca7947e2470001752a8a"
],
"includeItemDetail": true
}
period (string, optional) – Time period for aggregation. Possible values:
"day" – last 24 hours (default)
"week" – last 7 days
"month" – last 30 days
"year" – last 12 months
itemIds (array of string, optional) – List of traffic station identifiers. If not provided, data for all available stations is returned.
includeItemDetail (boolean, optional) – If true, the response also includes station name and geographic position.
Answer
[
{
"count": 10738,
"itemId": "6513cb5547e2470001752ac2",
"name": "Merač rýchlosti Štefánikova",
"position": {
"type": "Point",
"coordinates": [
18.753189,
49.220901
]
}
}
]
itemId (string) – Identifier of the traffic counting station.
count (number) – Total number of recorded vehicles within the selected time period.
name (string) – Name of the traffic station or device. Available only if includeItemDetail is set to true.
position (object) – Geographic location of the station. Available only if includeItemDetail is set to true.
position.type (string) – Geometry type (e.g. "Point").
position.coordinates (array of numbers) – Coordinates in format [longitude, latitude].
Each object in the array represents one station and the total number of vehicles recorded during the specified period.
Note
Data is aggregated as a sum of totalCount values from the source collection.
Results are grouped by itemId (station).
Time range is dynamically calculated based on the period parameter.