GET Weather Stations
Returns all weather stations.
Request Information
https://www.udottraffic.utah.gov/api/v2/get/weatherstations
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
Developer Key |
string |
Required |
format |
Valid values are 'xml' or 'json', default 'json'. |
string |
Optional |
Response Information
Resource Description
Name | Description | Type |
---|---|---|
Id |
A unique identifier. |
integer |
Latitude |
The latitude describing the location. Format: double between -90 and 90. |
double |
Longitude |
The longitude describing the location. Format: double between -180 and 180. |
double |
StationName |
The name of the weather station. |
string |
AirTemperature |
The temperature in fahrenheit of the air measured at approximately eight feet above the ground. For example: 42.8 °F |
double |
RelativeHumidity |
The ratio in percentage of the existing vapor pressure to the saturation vapor pressure with respect to water at the current temperature. For example: 26 % |
double |
WindDirection |
The direction for the wind value. Possible values are: N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW |
string |
WindSpeedAvg |
Average wind speed in miles per hour |
double |
WindSpeedGust |
Wind gusts speed in mile per hour |
double |
Precipitation |
Precipitation status as a string. For eample: Light, Moderate, or null |
string |
SurfaceTemp |
Temperature of the surface in degrees fahrenheit, or null |
double |
SurfaceStatus |
Surface status as a string. For example: Dry, Wet, or null |
string |
DefaultViewURL |
URL for tabular view of weather station observation information |
string |
CameraId |
Camera Id associated with this weather station as a string if weather station has a camera otherwise hull |
string |
LastUpdated |
The date the item's details were last updated in Unix time. More information |
integer |
Response Formats
JSON
[ { "Id": -81497836, "Latitude": 40.95, "Longitude": -111.892, "StationName": "I-15 @ Centerville", "AirTemperature": 87.0, "RelativeHumidity": 22.0, "WindDirection": "SW", "WindSpeedAvg": 4.0, "WindSpeedGust": 8.0, "Precipitation": null, "SurfaceTemp": 104.0, "SurfaceStatus": "Dry", "DefaultViewURL": "http://mesowest.utah.edu/cgi-bin/droman/meso_base.cgi?product=roads&stn=cen", "CameraId": null, "LastUpdated": 1692041400 }, { "Id": -80785687, "Latitude": 41.886, "Longitude": -112.169, "StationName": "I-15 @ Plymouth", "AirTemperature": 85.0, "RelativeHumidity": 23.0, "WindDirection": "SE", "WindSpeedAvg": 10.0, "WindSpeedGust": 17.0, "Precipitation": null, "SurfaceTemp": 102.0, "SurfaceStatus": "Dry", "DefaultViewURL": "http://mesowest.utah.edu/cgi-bin/droman/meso_base.cgi?product=roads&stn=ut29", "CameraId": "10833--1", "LastUpdated": 1692041400 } ]
XML
<WeatherStationsList> <WeatherStations> <Id>-81497836</Id> <Latitude>40.95</Latitude> <Longitude>-111.892</Longitude> <StationName>I-15 @ Centerville</StationName> <AirTemperature>87</AirTemperature> <RelativeHumidity>22</RelativeHumidity> <WindDirection>SW</WindDirection> <WindSpeedAvg>4</WindSpeedAvg> <WindSpeedGust>8</WindSpeedGust> <Precipitation /> <SurfaceTemp>104</SurfaceTemp> <SurfaceStatus>Dry</SurfaceStatus> <DefaultViewURL>http://mesowest.utah.edu/cgi-bin/droman/meso_base.cgi?product=roads&stn=cen</DefaultViewURL> <CameraId /> <LastUpdated>1692041400</LastUpdated> </WeatherStations> <WeatherStations> <Id>-80785687</Id> <Latitude>41.886</Latitude> <Longitude>-112.169</Longitude> <StationName>I-15 @ Plymouth</StationName> <AirTemperature>85</AirTemperature> <RelativeHumidity>23</RelativeHumidity> <WindDirection>SE</WindDirection> <WindSpeedAvg>10</WindSpeedAvg> <WindSpeedGust>17</WindSpeedGust> <Precipitation /> <SurfaceTemp>102</SurfaceTemp> <SurfaceStatus>Dry</SurfaceStatus> <DefaultViewURL>http://mesowest.utah.edu/cgi-bin/droman/meso_base.cgi?product=roads&stn=ut29</DefaultViewURL> <CameraId>10833--1</CameraId> <LastUpdated>1692041400</LastUpdated> </WeatherStations> </WeatherStationsList>