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
LocationDescription

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

string
Primary Condition

string
Secondary Conditions

list
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":"From Buckley to Gros Cap",
    "Condition": [
      "Bare and wet road",
      "Partly snow covered"
    ],
    "Visibility":"Good",
    "Drifting":"No",
    "Region":"Northeastern",
    "RoadwayName":"550",
    "EncodedPolyline":"ev~zG~hgcObD{SrAcI^mDF{ABsDC}EBoL?}QAmKFkD@QTsCFm@ZcBdA{Er@_Dd@mCB]JgATkD@KL{FJ{ABiBNeDFcDn@sQF}CGsFq@gFeAyDoD{L]mBWuBO{BC}BAuLB}CCgDBaBAwZM}HOsB_@sBg@oBOc@e@gAaAaBeAsAs@q@mHaFeBcBiA_Bs@oAi@iAeAgDUwAQiAWeCKkDFiEPwEXyEBoANmC@oCoAwW{Bma@CiCWeC{@ePEiBYoBsBeIAAQmBGsB?smBFoEGqA@a`BOwR",
	"LastUpdated":1556649906
  },
  {
    "LocationDescription":"From Prince to Pointe au Pins",
    "Condition": [
      "Bare and wet road"
    ],
    "Visibility":"Good",
    "Drifting":"No",
    "Region":"Northeastern",
    "RoadwayName":"565",
    "EncodedPolyline":"q_}zGjhtbOmUEwCDk@Ce[DeEIgQ?EAOCq@HC?CAME}@HA?iCA",
	"LastUpdated":1556120700
  }
]

XML

Sample:
<RoadConditionsList>
  <RoadConditions>
    <LocationDescription>From Buckley to Gros Cap</LocationDescription>
    <Condition>
     <Condition>Bare and wet road</Condition>
     <Condition>Partly snow covered</Condition>
    </Condition>
    <Visibility>Good</Visibility>
    <Drifting>No</Drifting>
    <Region>Northeastern</Region>
    <RoadwayName>550</RoadwayName>
    <EncodedPolyline>
      ev~zG~hgcObD{SrAcI^mDF{ABsDC}EBoL?}QAmKFkD@QTsCFm@ZcBdA{Er@_Dd@mCB]JgATkD@KL{FJ{ABiBNeDFcDn@sQF}CGsFq@gFeAyDoD{L]mBWuBO{BC}BAuLB}CCgDBaBAwZM}HOsB_@sBg@oBOc@e@gAaAaBeAsAs@q@mHaFeBcBiA_Bs@oAi@iAeAgDUwAQiAWeCKkDFiEPwEXyEBoANmC@oCoAwW{Bma@CiCWeC{@ePEiBYoBsBeIAAQmBGsB?smBFoEGqA@a`BOwR
    </EncodedPolyline>
	<LastUpdated>1557147600</LastUpdated>
  </RoadConditions>
  <RoadConditions>
    <LocationDescription>From Prince to Pointe au Pins</LocationDescription>
    <Condition>
     <Condition>Bare and wet road</Condition>
     <Condition>Partly snow covered</Condition>
    </Condition>
    <Visibility>Good</Visibility>
    <Drifting>No</Drifting>
    <Region>Northeastern</Region>
    <RoadwayName>565</RoadwayName>
    <EncodedPolyline>q_}zGjhtbOmUEwCDk@Ce[DeEIgQ?EAOCq@HC?CAME}@HA?iCA</EncodedPolyline>
	<LastUpdated>1556649906</LastUpdated>
  </RoadConditions>
</RoadConditionsList>