Road Status – Measurement Trend
Returns the trend of quantities measured by the road weather station at the Hospodárska × Študentská × Radlinského intersection (K9) in Trnava (road condition, road temperature, fog, friction) over the selected time interval – trend direction, percentage change and current value.
Publisher
Transport Department, City of Trnava
Format
API JSON
License
CC BY 4.0
Update frequency
Hourly
Last modified
3. 11. 2026
Download data
- API JSON Sample
- CSV Sample
- XML Sample
- API Documentation
Parameters
{
"itemId": [
"6544eb4a6290fa000100a5f6"
],
"type": "hourly",
"from": "2026-10-19T00:00:00.000Z",
"to": "2026-10-19T12:00:00.000Z"
}
itemId (array of strings, required) – List of station identifiers; the K9 road weather station has the ID 6544eb4a6290fa000100a5f6.
from (string, required, ISO 8601) – Start of the time interval.
to (string, required, ISO 8601) – End of the time interval.
type (string, optional) – Source values: hourly (hourly averages), daily, monthly; raw measurements if omitted.
Request
POST https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/environment/trend
Answer
[
{
"type": "roadStatus",
"trend": "no-trend",
"change": null,
"value": [
"Dry"
]
},
{
"type": "roadTemperatures",
"trend": "no-trend",
"change": null,
"value": [
{
"temperature": 10.2,
"height": 0
}
]
},
{
"type": "fog",
"trend": "no-trend",
"change": null,
"value": false
},
{
"type": "friction",
"trend": "decreasing",
"change": 0,
"value": 0.75
}
]
type – Measured quantity (roadStatus, roadTemperatures, fog, friction).
trend – Trend direction: increasing, decreasing, no-trend.
change – Change between the first and last value as % of the value range (null for non-numeric quantities).
value – Current value (list of conditions for roadStatus, list of temperatures by sensor height for roadTemperatures, true/false for fog).
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/environment/trend?outputType=csv
Answer
"type","trend","change","value.0.temperature","value.0.height"
"roadStatus","no-trend",NaN,,
"roadTemperatures","no-trend",NaN,10.2,0
type – Measured quantity (roadStatus, roadTemperatures, fog, friction).
trend – Trend direction: increasing, decreasing, no-trend.
change – Change between the first and last value as % of the value range (null for non-numeric quantities).
value – Current value (list of conditions for roadStatus, list of temperatures by sensor height for roadTemperatures, true/false for fog).
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/environment/trend?outputType=xml
Answer
<root>
<item>
<type>roadStatus</type>
<trend>no-trend</trend>
<change>NaN</change>
<value>
<item>Dry</item>
</value>
</item>
<item>
<type>roadTemperatures</type>
<trend>no-trend</trend>
<change>NaN</change>
<value>
<item>
<temperature>10.2</temperature>
<height>0</height>
</item>
</value>
</item>
<item>
<type>fog</type>
<trend>no-trend</trend>
<change>NaN</change>
<value>false</value>
</item>
<item>
<type>friction</type>
<trend>decreasing</trend>
<change>0</change>
<value>0.75</value>
</item>
</root>
type – Measured quantity (roadStatus, roadTemperatures, fog, friction).
trend – Trend direction: increasing, decreasing, no-trend.
change – Change between the first and last value as % of the value range (null for non-numeric quantities).
value – Current value (list of conditions for roadStatus, list of temperatures by sensor height for roadTemperatures, true/false for fog).