GET Road Conditions

Returns current road conditions.

Request Information

https://511on.ca/api/v2/get/roadconditions

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
Condition

The condition of the road. Examples: snow packed, snow covered, bare and wet road

list
Visibility

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

string
Drifting

Yes or no indicating the presence of drifting snow.

string
AreaName

the cardinal location of the road condition. Examples: Southwestern, Northern, Central

string
RoadwayName

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

string
EncodedPolyline

A single string storing a series of coordinates. More information

string

Response Formats

JSON

Sample:
[
  {
    "LocationDescription":"From Buckley to Gros Cap",
    "Condition": [
      "Bare and wet road",
      "Partly snow covered"
    ],
    "Visibility":"Good",
    "Drifting":"No",
    "AreaName":"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"
  },
  {
    "LocationDescription":"From Prince to Pointe au Pins",
    "Condition": [
      "Bare and wet road"
    ],
    "Visibility":"Good",
    "Drifting":"No",
    "AreaName":"Northeastern",
    "RoadwayName":"565",
    "EncodedPolyline":"q_}zGjhtbOmUEwCDk@Ce[DeEIgQ?EAOCq@HC?CAME}@HA?iCA"
  }
]

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>
    <AreaName>Northeastern</AreaName>
    <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>
  </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>
    <AreaName>Northeastern</AreaName>
    <RoadwayName>565</RoadwayName>
    <EncodedPolyline>q_}zGjhtbOmUEwCDk@Ce[DeEIgQ?EAOCq@HC?CAME}@HA?iCA</EncodedPolyline>
  </RoadConditions>
</RoadConditionsList>