Road Status – Measurement History
Returns historical values from the road weather station at the Hospodárska × Študentská × Radlinského intersection (K9) in Trnava – road condition, road surface temperature, fog occurrence and friction coefficient – aggregated hourly, daily or monthly for the selected time interval.
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-19T04:00:00.000Z",
"to": "2026-10-19T07:00:00.000Z"
}
itemId (array of strings, required) – List of station identifiers; the K9 road weather station has the ID 6544eb4a6290fa000100a5f6.
type (string, required) – Aggregation: hourly (hourly averages), daily, monthly.
from (string, required, ISO 8601) – Start of the time interval (inclusive).
to (string, required, ISO 8601) – End of the time interval (inclusive).
measurements (array of strings, optional) – Limit to selected quantities, e.g. roadStatus, roadTemperatures, fog, friction.
Request
POST https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/history
Answer
[
{
"timestamp": "2026-10-19T04:00:00.000Z",
"roadStatus": [
"Dry"
],
"roadTemperatures": [
{
"height": 0,
"temperature": 7.459999999999999
}
],
"fog": false,
"friction": 0.75
},
{
"timestamp": "2026-10-19T05:00:00.000Z",
"roadStatus": [
"Dry"
],
"roadTemperatures": [
{
"height": 0,
"temperature": 7.42
}
],
"fog": false,
"friction": 0.75
},
{
"timestamp": "2026-10-19T06:00:00.000Z",
"roadStatus": [
"Dry"
],
"roadTemperatures": [
{
"height": 0,
"temperature": 8.11
}
],
"fog": false,
"friction": 0.746
}
]
timestamp – Start of the aggregation interval (ISO 8601, UTC).
roadStatus – List of road conditions detected in the interval (Dry, Damp, Wet, Ice, SnowIce, ChemicallyWet, CriticallyWet, Snow, DeepWater, Unknown).
roadTemperatures.height – Height/depth of the road temperature sensor (0 = surface).
roadTemperatures.temperature – Average road temperature (°C).
fog – Fog occurrence in the interval (true/false).
friction – Average road friction coefficient (0–1).
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/history?outputType=csv
Answer
"timestamp","roadStatus.0","roadTemperatures.0.height","roadTemperatures.0.temperature","fog","friction"
"2026-10-19T04:00:00.000Z","Dry",0,7.459999999999999,false,0.75
"2026-10-19T05:00:00.000Z","Dry",0,7.42,false,0.75
timestamp – Start of the aggregation interval (ISO 8601, UTC).
roadStatus – List of road conditions detected in the interval (Dry, Damp, Wet, Ice, SnowIce, ChemicallyWet, CriticallyWet, Snow, DeepWater, Unknown).
roadTemperatures.height – Height/depth of the road temperature sensor (0 = surface).
roadTemperatures.temperature – Average road temperature (°C).
fog – Fog occurrence in the interval (true/false).
friction – Average road friction coefficient (0–1).
Request
GET https://opendata.trnava.sk/api/datasets/v2/environment-monitoring/history?outputType=xml
Answer
<root>
<item>
<timestamp>2026-10-19T04:00:00.000Z</timestamp>
<roadStatus>
<item>Dry</item>
</roadStatus>
<roadTemperatures>
<item>
<height>0</height>
<temperature>7.459999999999999</temperature>
</item>
</roadTemperatures>
<fog>false</fog>
<friction>0.75</friction>
</item>
<item>
<timestamp>2026-10-19T05:00:00.000Z</timestamp>
<roadStatus>
<item>Dry</item>
</roadStatus>
<roadTemperatures>
<item>
<height>0</height>
<temperature>7.42</temperature>
</item>
</roadTemperatures>
<fog>false</fog>
<friction>0.75</friction>
</item>
<item>
<timestamp>2026-10-19T06:00:00.000Z</timestamp>
<roadStatus>
<item>Dry</item>
</roadStatus>
<roadTemperatures>
<item>
<height>0</height>
<temperature>8.11</temperature>
</item>
</roadTemperatures>
<fog>false</fog>
<friction>0.746</friction>
</item>
</root>
timestamp – Start of the aggregation interval (ISO 8601, UTC).
roadStatus – List of road conditions detected in the interval (Dry, Damp, Wet, Ice, SnowIce, ChemicallyWet, CriticallyWet, Snow, DeepWater, Unknown).
roadTemperatures.height – Height/depth of the road temperature sensor (0 = surface).
roadTemperatures.temperature – Average road temperature (°C).
fog – Fog occurrence in the interval (true/false).
friction – Average road friction coefficient (0–1).