GET Current Road Conditions

Returns current road conditions.

Request Information

https://www.udottraffic.utah.gov/api/v2/get/roadconditions

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

format

Valid values are 'xml' or 'json', default 'json'.

string

Optional

Response Information

Resource Description


Resource Description
NameDescriptionType
Id

A unique identifier.

integer
SourceId

Source Id

string
RoadCondition

Road Condition

string
WeatherCondition

Weather Condition

string
Restriction

Restriction

string
RoadwayName

The roadway which this condition affects.

string
EncodedPolyline

A single string storing a series of coordinates. More information

string
LastUpdated

The date the condition's details were last updated in Unix time. More information

integer

Response Formats

JSON

Sample:
[
  {
    "Id": 1756,
    "SourceId": "23",
    "RoadCondition": "Dry",
    "WeatherCondition": "Fair",
    "Restriction": "none",
    "RoadwayName": "I-15 Idaho Stateline to Tremonton",
    "EncodedPolyline": "cyjgFngxnTnbAi_EnDavEic@ejDj|BcxCjWouAz`AqaDli@[y@sjClqDsBxzAwaCptBulBus@oiCv^cvD",
    "LastUpdated": 1684207781
  },
  {
    "Id": 1758,
    "SourceId": "24",
    "RoadCondition": "Dry",
    "WeatherCondition": "Fair",
    "Restriction": "none",
    "RoadwayName": "I-15 Tremonton to Jct SR-240 at Honeyville",
    "EncodedPolyline": "cyjgFngxnTnbAi_EnDavEic@ejDj|BcxCjWouAz`AqaDli@[y@sjClqDsBxzAwaCptBulBus@oiCv^cvD",
    "LastUpdated": 1684207781
  }
]

XML

Sample:
<RoadConditionsList>
    <RoadConditions>
        <Id>1756</Id>
        <SourceId>23</SourceId>
        <RoadCondition>Dry</RoadCondition>
        <WeatherCondition>Fair</WeatherCondition>
        <Restriction>none</Restriction>
        <RoadwayName>I-15 Idaho Stateline to Tremonton</RoadwayName>
        <EncodedPolyline>cyjgFngxnTnbAi_EnDavEic@ejDj|BcxCjWouAz`AqaDli@[y@sjClqDsBxzAwaCptBulBus@oiCv^cvD</EncodedPolyline>
        <LastUpdated>1684207781</LastUpdated>
    </RoadConditions>
    <RoadConditions>
        <Id>1758</Id>
        <SourceId>24</SourceId>
        <RoadCondition>Dry</RoadCondition>
        <WeatherCondition>Fair</WeatherCondition>
        <Restriction>none</Restriction>
        <RoadwayName>I-15 Tremonton to Jct SR-240 at Honeyville</RoadwayName>
        <EncodedPolyline>cyjgFngxnTnbAi_EnDavEic@ejDj|BcxCjWouAz`AqaDli@[y@sjClqDsBxzAwaCptBulBus@oiCv^cvD/EncodedPolyline>
        <LastUpdated>1684207781</LastUpdated>
    </RoadConditions>
</RoadConditionsList>