GET Road Conditions

Returns current road conditions.

Request Information

https://511.alberta.ca/api/v2/get/winterroads

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
format

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

string

Optional

lang

Valid values are 'en' or 'fr', default 'en'.

string

Optional

Response Information

Resource Description


Resource Description
NameDescriptionType
Id

A unique identifier.

integer
LocationDescription

A description of the location that is affected. Often described as from one road to another.

string
Primary Condition

Represents the primary condition of the winter road condition.

string
Secondary Conditions

Represents the secondary conditions of the winter road condition.

string
Visibility

A short description of how the visibility on the road. Examples: Good, fair

string
AreaName

Area name.

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": 645,
		"LocationDescription": "St. Julien Way to Tunnel Mountain Rd",
		"Primary Condition": "Closed",
		"Secondary Conditions": [],
		"Visibility": null,
		"AreaName": "BANFF",
		"RoadwayName": "Tunnel Mountain Dr",
		"EncodedPolyline": "oe~eIvmsuTi@V??}CvA}EzB??m@b@??_Bp@cA\\s",
		"LastUpdated": 1572077163
	},
	{
                "Id": 647,
		"LocationDescription": "Lake Minnewanka to Johnson Lake",
		"Primary Condition": "Closed",
		"Secondary Conditions": [],
		"Visibility": null,
		"AreaName": "BANFF",
		"RoadwayName": "Johnson Lake Road",
                "EncodedPolyline": "@YkAe@gA_@m@O_ASsAQm@EmAEsCAoF?ds@f_@cD}E",
		"LastUpdated": 1576485655
	}
]

XML

Sample:
<WinterRoadsList>
	<WinterRoads>
                <Id>645</Id>
		<LocationDescription>St. Julien Way to Tunnel Mountain Rd</LocationDescription>
		<Primary-Condition>Closed</Primary-Condition>
		<Secondary-Conditions/>
		<Visibility/>
		<AreaName>BANFF</AreaName>
		<RoadwayName>Tunnel Mountain Dr</RoadwayName>
		<EncodedPolyline>oe~eIvmsuTi@V??}CvA}EzB??m@b@??_Bp@cA\\s</EncodedPolyline>
		<LastUpdated>1572077163</LastUpdated>
	</WinterRoads>
	<WinterRoads>
                <Id>647</Id>
		<LocationDescription>Lake Minnewanka to Johnson Lake</LocationDescription>
		<Primary-Condition>Closed</Primary-Condition>
		<Secondary-Conditions/>
		<Visibility/>
		<AreaName>BANFF</AreaName>
		<RoadwayName>Johnson Lake Road</RoadwayName>
		<EncodedPolyline>@YkAe@gA_@m@O_ASsAQm@EmAEsCAoF?ds@f_@cD}E</EncodedPolyline>
		<LastUpdated>1576485655</LastUpdated>
	</WinterRoads>
</WinterRoadsList>