GET Weight Restrictions
Returns all weight restriction events.
Request Information
https://511yukon.ca/api/v2/get/weightrestrictions
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
Developer Key |
string |
Required |
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
Name | Description | Type |
---|---|---|
ID |
A unique identifier. |
integer |
Organization |
The name of the organization that provided this event. |
string |
RoadwayName |
The roadway on which the event occurred. |
string |
DirectionOfTravel |
One of the following directions of travel: None, All Directions, Northbound, Eastbound, Southbound, Westbound, Inbound, Outbound, Both Directions. |
string |
Description |
The description of the item. |
string |
Reported |
The date the event was reported in Unix time. More information |
integer |
LastUpdated |
The date the item's details were last updated in Unix time. More information |
integer |
StartDate |
The start date of the event in Unix time. More information |
integer |
PlannedEndDate |
The date the event is expected to end in Unix time. More information |
integer |
LanesAffected |
Describes the lane or number of lanes affected by the event. For example: all lanes. |
string |
Latitude |
The latitude describing the location. Format: double between -90 and 90. |
double |
Longitude |
The longitude describing the location. Format: double between -180 and 180. |
double |
LatitudeSecondary |
Secondary latitude. |
double |
LongitudeSecondary |
Secondary Longitude. |
double |
EventType |
The type of event. |
string |
EventSubType |
A more detailed and descriptive event type. No fixed list of sub types. |
string |
IsFullClosure |
All lanes are closed. |
boolean |
Severity |
|
string |
EncodedPolyline |
A single string storing a series of coordinates. More information |
string |
Restrictions |
Different types of restriction: Width (metres), Height (metres), Weight (tonnes) and Speed (km/h). |
list |
DetourPolyline |
Google Encoded Polyline for the detour. |
string |
DetourInstructions |
Turn by turn instructions for the detour. |
string |
Recurrence |
Describes the schedule of the event. |
string |
RecurrenceSchedules |
More information about recurring events. Event start and end dates, times and day(s) of the week event is active. |
string |
Details |
Event details. |
string |
Response Formats
JSON
[
{
"ID": "ERS--614",
"Organization": "ERS",
"RoadwayName": "HWY-4",
"DirectionOfTravel": "Eastbound",
"Description": "25 tonnes at 15 kph on HWY-4 Eastbound near Drury Creek Bridge (km 476). Right Lane Closed. Width Restriction: 1m Height Restriction: 2m Length Restriction: 3m Single-Unit GVW Restriction: 4tonnes Two-Unit GVW Restriction: 5tonnes Vehicle Train GVW Restriction: 5tonnes Maximum GVW Restriction: 6tonnes Speed Restriction: 5km/h Additional Restrictions: No Oversized Loads, Oversize Load Restrictions",
"Reported": 1652291788,
"LastUpdated": 1652292203,
"StartDate": 1652291788,
"PlannedEndDate": null,
"LanesAffected": "Right Lane Closed",
"Latitude": 62.198968,
"Longitude": -134.560518,
"LatitudeSecondary": 0.0,
"LongitudeSecondary": 0.0,
"EventType": "restrictionClass",
"IsFullClosure": false,
"Restrictions": {
"Width": 1.0,
"Height": 2.0,
"Length": 3.0,
"Weight": null,
"Speed": 5.0
},
"DetourPolyline": null,
"DetourInstructions": null,
"Recurrence": "",
"RecurrenceSchedules": "",
"EventSubType": "weightSpecification2",
"Details": null
},
{
"ID": "ERS--792",
"Organization": "ERS",
"RoadwayName": "2nd ave test",
"DirectionOfTravel": "Both Directions",
"Description": "50% Legal axle on 2nd ave test Both Directions from Black St to Strickland St Test. Additional Restrictions: Hazmat Prohibited, Escort Vehicle Required, No Oversized Loads, All Trucks Obey Posted Signage, Oversize Load Restrictions, No Overweight Loads",
"Reported": 1679424360,
"LastUpdated": 1679436222,
"StartDate": 1679424360,
"PlannedEndDate": null,
"LanesAffected": "No Data",
"Latitude": 60.72423,
"Longitude": -135.05579,
"LatitudeSecondary": 60.72275,
"LongitudeSecondary": -135.0547,
"EventType": "restrictionClass",
"IsFullClosure": false,
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": "mesqJ`biwXpA_AhAw@jAu@~@q@",
"DetourInstructions": [
"Head south on 2nd Ave. Go for 176 m.",
"Arrive at 2nd Ave. Your destination is on the left."
],
"Recurrence": "",
"RecurrenceSchedules": "",
"EventSubType": "50legalAxle",
"Details": null
}
]
XML
<WeightRestrictionsList>
<WeightRestrictions>
<ID>ERS--614</ID>
<Organization>ERS</Organization>
<RoadwayName>HWY-4</RoadwayName>
<DirectionOfTravel>Eastbound</DirectionOfTravel>
<Description>25 tonnes at 15 kph on HWY-4 Eastbound near Drury Creek Bridge (km 476). Right Lane Closed. Width Restriction: 1m Height Restriction: 2m Length Restriction: 3m Single-Unit GVW Restriction: 4tonnes Two-Unit GVW Restriction: 5tonnes Vehicle Train GVW Restriction: 5tonnes Maximum GVW Restriction: 6tonnes Speed Restriction: 5km/h Additional Restrictions: No Oversized Loads, Oversize Load Restrictions</Description>
<Reported>1652291788</Reported>
<LastUpdated>1652292203</LastUpdated>
<StartDate>1652291788</StartDate>
<PlannedEndDate/>
<LanesAffected>Right Lane Closed</LanesAffected>
<Latitude>62.198968</Latitude>
<Longitude>-134.560518</Longitude>
<LatitudeSecondary>0</LatitudeSecondary>
<LongitudeSecondary>0</LongitudeSecondary>
<EventType>restrictionClass</EventType>
<IsFullClosure>false</IsFullClosure>
<Restrictions>
<Width>1</Width>
<Height>2</Height>
<Length>3</Length>
<Weight/>
<Speed>5</Speed>
</Restrictions>
<DetourPolyline/>
<DetourInstructions/>
<Recurrence/>
<RecurrenceSchedules/>
<EventSubType>weightSpecification2</EventSubType>
<Details/>
</WeightRestrictions>
<WeightRestrictions>
<ID>ERS--792</ID>
<Organization>ERS</Organization>
<RoadwayName>2nd ave test</RoadwayName>
<DirectionOfTravel>Both Directions</DirectionOfTravel>
<Description>50% Legal axle on 2nd ave test Both Directions from Black St to Strickland St Test. Additional Restrictions: Hazmat Prohibited, Escort Vehicle Required, No Oversized Loads, All Trucks Obey Posted Signage, Oversize Load Restrictions, No Overweight Loads</Description>
<Reported>1679424360</Reported>
<LastUpdated>1679436222</LastUpdated>
<StartDate>1679424360</StartDate>
<PlannedEndDate/>
<LanesAffected>No Data</LanesAffected>
<Latitude>60.72423</Latitude>
<Longitude>-135.05579</Longitude>
<LatitudeSecondary>60.72275</LatitudeSecondary>
<LongitudeSecondary>-135.0547</LongitudeSecondary>
<EventType>restrictionClass</EventType>
<IsFullClosure>false</IsFullClosure>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<DetourPolyline>mesqJ`biwXpA_AhAw@jAu@~@q@</DetourPolyline>
<DetourInstructions>Head south on 2nd Ave. Go for 176 m. Arrive at 2nd Ave. Your destination is on the left.</DetourInstructions>
<Recurrence/>
<RecurrenceSchedules/>
<EventSubType>50legalAxle</EventSubType>
<Details/>
</WeightRestrictions>
</WeightRestrictionsList>