GET Road Conditions

Returns current road conditions.

Request Information

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

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


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

string
Secondary Conditions

string
Visibility

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

string
AreaName

Area name.

string
RoadwayName

the number associated with the road. Example: 401, 77

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:
[
	{
		"LocationDescription": "St. Julien Way to Tunnel Mountain Rd",
		"Primary Condition": "Closed",
		"Secondary Conditions": [],
		"Visibility": null,
		"AreaName": "BANFF",
		"RoadwayName": "Tunnel Mountain Dr",
		"EncodedPolyline": "kuiwHf}h`Uy@H{@Za@L_BlA_@H[Ak@Ma@Am@RaLvG??_@LSROZ[l@UP]LSHUTsBlBa@Ng@Fo@QwBkA]U]C_@Aq@i@g@w@o@_Bc@qB]iA]a@e@Sa@GY[Ko@GgAKsA]eAU{@?s@Lg@X]v@}@Vu@F_AGmAuAwK]_DiAeG??Oo@U[e@i@a@c@{@eAe@Ye@Io@CoAR",
		"LastUpdated": 1572077163
	},
	{
		"LocationDescription": "Lake Minnewanka to Johnson Lake",
		"Primary Condition": "Closed",
		"Secondary Conditions": [],
		"Visibility": null,
		"AreaName": "BANFF",
		"RoadwayName": "Johnson Lake Road",
		"EncodedPolyline": "m|nwH|q{_Uu_@`HkAFoGIy@F_Ah@q@|@YvAKnA@lAPfAd@vAt@fAvGvFl@zARlA?jBk@hC{@`BcAhAaBv@wCv@sC~@yU`L]b@Oh@?t@",
		"LastUpdated": 1576485655
	}
]

XML

Sample:
<WinterRoadsList>
	<WinterRoads>
		<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>
			kuiwHf}h`Uy@H{@Za@L_BlA_@H[Ak@Ma@Am@RaLvG??_@LSROZ[l@UP]LSHUTsBlBa@Ng@Fo@QwBkA]U]C_@Aq@i@g@w@o@_Bc@qB]iA]a@e@Sa@GY[Ko@GgAKsA]eAU{@?s@Lg@X]v@}@Vu@F_AGmAuAwK]_DiAeG??Oo@U[e@i@a@c@{@eAe@Ye@Io@CoAR
		</EncodedPolyline>
		<LastUpdated>1572077163</LastUpdated>
	</WinterRoads>
	<WinterRoads>
		<LocationDescription>Lake Minnewanka to Johnson Lake</LocationDescription>
		<Primary-Condition>Closed</Primary-Condition>
		<Secondary-Conditions/>
		<Visibility/>
		<AreaName>BANFF</AreaName>
		<RoadwayName>Johnson Lake Road</RoadwayName>
		<EncodedPolyline>
			m|nwH|q{_Uu_@`HkAFoGIy@F_Ah@q@|@YvAKnA@lAPfAd@vAt@fAvGvFl@zARlA?jBk@hC{@`BcAhAaBv@wCv@sC~@yU`L]b@Oh@?t@
		</EncodedPolyline>
		<LastUpdated>1576485655</LastUpdated>
	</WinterRoads>
</WinterRoadsList>