GET Weight Restrictions API Documentation
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 |
| SourceId |
SourceId of the item |
string |
| 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 |
Describes the severity of the item with default value of None |
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
[
{
"ID": 234,
"SourceId": "534",
"Organization": "ERS",
"RoadwayName": "HWY-6",
"DirectionOfTravel": "Unknown",
"Description": "50% Legal axle on HWY-6 from Rose River Bridge #1 (km 168) to 3.42 Km Before Lapie River Bridge #2. ",
"Reported": 1650568740,
"LastUpdated": 1759227631,
"StartDate": 1650568740,
"PlannedEndDate": null,
"LanesAffected": "No Data",
"Latitude": 61.69208,
"Longitude": -133.06843,
"LatitudeSecondary": 61.9003981405863,
"LongitudeSecondary": -132.662257437655,
"EventType": "restrictionClass",
"EventSubType": "50legalAxle",
"IsFullClosure": false,
"Severity": "None",
"EncodedPolyline": "g@Cg@Gi@Ic@i@mCSmAg@mDWeCUeCQmAQgAWmASkA]{BWsAQy@Mo@Ko@K{@e@wEc@kDe@iDcAaGi@uCu@kDOs@O{@OsAIcAK{@SgAY_B_@_BSkASmASwAg@eEa@sCW_BYeBSkAMu@",
"Restrictions": {
"Width": 5.50,
"Height": 7.20,
"Length": 10.50,
"Weight": null,
"Speed": null,
"SingleUnitGVW": 28.6,
"TwoUnitGVW": 32.5,
"VehicleTrainGVW": 42.7,
"MaximumGVW": 50.8
},
"DetourPolyline": "{Fm@kGQmAQgAWmASkA]{Bw@}DKo@q@sGiAuIcAaGi@uCeA_FO{@e@sEm@gD_@_BSkAg@eDUmBs@kFsAgI",
"DetourInstructions": [
"Head north on HWY-6. Go for 39.6 km.",
"Arrive at HWY-6."
],
"Recurrence": "",
"RecurrenceSchedules": "",
"Details": null
}
]
<WeightRestrictionsList>
<WeightRestrictions>
<ID>234</ID>
<SourceId>534</SourceId>
<Organization>ERS</Organization>
<RoadwayName>HWY-6</RoadwayName>
<DirectionOfTravel>Unknown</DirectionOfTravel>
<Description>50% Legal axle on HWY-6 from Rose River Bridge #1 (km 168) to 3.42 Km Before Lapie River Bridge #2. </Description>
<Reported>1650568740</Reported>
<LastUpdated>1759227631</LastUpdated>
<StartDate>1650568740</StartDate>
<PlannedEndDate />
<LanesAffected>No Data</LanesAffected>
<Latitude>61.69208</Latitude>
<Longitude>-133.06843</Longitude>
<LatitudeSecondary>61.9003981405863</LatitudeSecondary>
<LongitudeSecondary>-132.662257437655</LongitudeSecondary>
<EventType>restrictionClass</EventType>
<EventSubType>50legalAxle</EventSubType>
<IsFullClosure>false</IsFullClosure>
<Severity>None</Severity>
<EncodedPolyline>@sCW_BYeBSkAMu@</EncodedPolyline>
<Restrictions>
<Width>5.50</Width>
<Height>7.20</Height>
<Length>10.50</Length>
<Weight/>
<Speed/>
<SingleUnitGVW>28.6</SingleUnitGVW>
<TwoUnitGVW>32.5</TwoUnitGVW>
<VehicleTrainGVW>42.7</VehicleTrainGVW>
<MaximumGVW>50.8</MaximumGVW>
</Restrictions>
<DetourPolyline>DKo@q@sGiAuIcAaGi@uCeA_FO{@e@sEm@gD_@_BSkAg@eDUmBs@kFsAgI</DetourPolyline>
<DetourInstructions>Head north on HWY-6. Go for 39.6 km. Arrive at HWY-6.</DetourInstructions>
<Recurrence></Recurrence>
<RecurrenceSchedules></RecurrenceSchedules>
<Details />
</WeightRestrictions>
</WeightRestrictionsList>