GET Road Conditions
Returns current road conditions.
Request Information
https://511nl.ca/api/v3/get/winterroads
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key |
Developer Key |
string |
Required |
| format |
Valid values are 'xml' or 'json', default 'json'. |
string |
Optional |
Response Information
Resource Description
| Name | Description | Type |
|---|---|---|
| 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
[
{
"Id": 25,
"LocationDescription": "From Intersection Route 210 to Bay L'Argent",
"Primary Condition": "No Report",
"Secondary Conditions": [],
"Visibility": null,
"AreaName": "Central",
"RoadwayName": "HWY-212",
"EncodedPolyline": ["k~v~GppjeIrAPx@L|AV`AP|@PvA\XJ\Nt@f@lAbAj@f@pAnAd@b@f@b@n@l@r@x@`BnBd@b@r@n@"],
"LastUpdated": 1660917301
},
{
"Id": 27,
"LocationDescription": "From Eastport Junction to Eastport Park Boundary",
"Primary Condition": "No Report",
"Secondary Conditions": [],
"Visibility": null,
"AreaName": "Central",
"RoadwayName": "HWY-310",
"EncodedPolyline": ["k~v~GppjeIrAPx@L|AV`AP|@PvA\XJ\Nt@f@lAbAj@f@pAnAd@b@f@b@n@l@r@x@`BnBd@b@r@n@"],
"LastUpdated": 1660917321
}
]
XML
<WinterRoadsList>
<WinterRoads>
<Id>25</Id>
<LocationDescription>From Intersection Route 210 to Bay L'Argent</LocationDescription>
<Primary-Condition>No Report</Primary-Condition>
<Secondary-Conditions/>
<Visibility/>
<AreaName>Central</AreaName>
<RoadwayName>HWY-212</RoadwayName>
<EncodedPolyline>k~v~GppjeIrAPx@L|AV`AP|@PvA\XJ\Nt@f@lAbAj@f@pAnAd@b@f@b@n@l@r@x@`BnBd@b@r@n@</EncodedPolyline>
<LastUpdated>1660917301</LastUpdated>
</WinterRoads>
<WinterRoads>
<Id>27</Id>
<LocationDescription>From Eastport Junction to Eastport Park Boundary</LocationDescription>
<Primary-Condition>No Report</Primary-Condition>
<Secondary-Conditions/>
<Visibility/>
<AreaName>Central</AreaName>
<RoadwayName>HWY-310</RoadwayName>
<EncodedPolyline>k~v~GppjeIrAPx@L|AV`AP|@PvA\XJ\Nt@f@lAbAj@f@pAnAd@b@f@b@n@l@r@x@`BnBd@b@r@n@</EncodedPolyline>
<LastUpdated>1660917321</LastUpdated>
</WinterRoads>
</WinterRoadsList>