Request
POST https://opendata.zilina.sk/api/datasets/v1/traffic-counters/vehicles/stations?outputType=xml
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
<root>
<item>
<count>40944</count>
<itemId>6513ca7947e2470001752a8a</itemId>
<name>Merač intenzity dopravy Hôrky</name>
<position>
<type>Point</type>
<coordinates>
<item>18.709254</item>
<item>49.207455</item>
</coordinates>
</position>
</item>
</root>
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.