GET Bridge Restrictions

Returns all bridge restriction events.

Request Information

https://511yukon.ca/api/v2/get/bridgerestrictions

URI Parameters

URI Parameters
NameDescriptionTypeAdditional 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


Resource Description
NameDescriptionType
ID

A unique identifier.

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
IsFullClosure

All lanes are closed.

boolean
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
EventSubType

A more detailed and descriptive event type. No fixed list of sub types.

string
EncodedPolyline

A single string storing a series of coordinates. More information

string
Details

Event details.

string

Response Formats

JSON

Sample:
[
    {
        "ID": "ERS--566",
        "Organization": "ERS",
        "RoadwayName": "HWY-1",
        "DirectionOfTravel": "Unknown",
        "Description": "Bridge Restriction on HWY-1 at Nisutlin Bay Bridge (1244 km). Width Restriction: 8m Height Restriction: 6.3m Length Restriction: 11.8m Single-Unit GVW Restriction: 25tonnes Two-Unit GVW Restriction: 14tonnes Speed Restriction: 30km/h  Additional Restrictions: All Trucks Obey Posted Signage",
        "Reported": 1651592304,
        "LastUpdated": 1651617360,
        "StartDate": 1651592304,
        "PlannedEndDate": null,
        "LanesAffected": "No Data",
        "Latitude": 60.164161,
        "Longitude": -132.705463,
        "LatitudeSecondary": 0.0,
        "LongitudeSecondary": 0.0,
        "EventType": "bridgeRestrictions",
        "IsFullClosure": false,
        "Restrictions": {
            "Width": 8.0,
            "Height": 6.3,
            "Length": 11.8,
            "Weight": null,
            "Speed": 30.0
        },
        "DetourPolyline": null,
        "DetourInstructions": null,
        "Recurrence": "",
        "RecurrenceSchedules": "",
        "EventSubType": "BridgeRestrictionDefault",
        "Details": null
    },
    {
        "ID": "ERS--748",
        "Organization": "ERS",
        "RoadwayName": "Rowlinson Dr",
        "DirectionOfTravel": "Unknown",
        "Description": "30 tonnes on Rowlinson Dr near Klaza Rd.",
        "Reported": 1678815660,
        "LastUpdated": 1678817618,
        "StartDate": 1678815660,
        "PlannedEndDate": null,
        "LanesAffected": "No Data",
        "Latitude": 62.090447,
        "Longitude": -136.298333,
        "LatitudeSecondary": 0.0,
        "LongitudeSecondary": 0.0,
        "EventType": "bridgeRestrictions",
        "IsFullClosure": false,
        "Restrictions": {
            "Width": null,
            "Height": null,
            "Length": null,
            "Weight": null,
            "Speed": null
        },
        "DetourPolyline": "w|}yJdq{~X}@lD[^_@Aa@c@sCwFk@oA",
        "DetourInstructions": [
            "Head northwest on Rowlinson Dr. Go for 250 m.",
            "Arrive at Rowlinson Dr."
        ],
        "Recurrence": "",
        "RecurrenceSchedules": "",
        "EventSubType": "bridgeRestrictions2",
        "Details": "checking comments"
    }	
]

XML

Sample:
<BridgeRestrictionsList>
    <BridgeRestrictions>
        <ID>ERS--566</ID>
        <Organization>ERS</Organization>
        <RoadwayName>HWY-1</RoadwayName>
        <DirectionOfTravel>Unknown</DirectionOfTravel>
        <Description>Bridge Restriction on HWY-1 at Nisutlin Bay Bridge (1244 km). Width Restriction: 8m Height Restriction: 6.3m Length Restriction: 11.8m Single-Unit GVW Restriction: 25tonnes Two-Unit GVW Restriction: 14tonnes Speed Restriction: 30km/h  Additional Restrictions: All Trucks Obey Posted Signage</Description>
        <Reported>1651592304</Reported>
        <LastUpdated>1651617360</LastUpdated>
        <StartDate>1651592304</StartDate>
        <PlannedEndDate />
        <LanesAffected>No Data</LanesAffected>
        <Latitude>60.164161</Latitude>
        <Longitude>-132.705463</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>bridgeRestrictions</EventType>
        <IsFullClosure>false</IsFullClosure>
        <Restrictions>
            <Width>8</Width>
            <Height>6.3</Height>
            <Length>11.8</Length>
            <Weight />
            <Speed>30</Speed>
        </Restrictions>
        <DetourPolyline />
        <DetourInstructions />
        <Recurrence></Recurrence>
        <RecurrenceSchedules></RecurrenceSchedules>
        <EventSubType>BridgeRestrictionDefault</EventSubType>
        <Details />
    </BridgeRestrictions>
    <BridgeRestrictions>
        <ID>ERS--748</ID>
        <Organization>ERS</Organization>
        <RoadwayName>Rowlinson Dr</RoadwayName>
        <DirectionOfTravel>Unknown</DirectionOfTravel>
        <Description>30 tonnes on Rowlinson Dr near Klaza Rd.</Description>
        <Reported>1678815660</Reported>
        <LastUpdated>1678817618</LastUpdated>
        <StartDate>1678815660</StartDate>
        <PlannedEndDate />
        <LanesAffected>No Data</LanesAffected>
        <Latitude>62.090447</Latitude>
        <Longitude>-136.298333</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>bridgeRestrictions</EventType>
        <IsFullClosure>false</IsFullClosure>
        <Restrictions>
            <Width />
            <Height />
            <Length />
            <Weight />
            <Speed />
        </Restrictions>
        <DetourPolyline>w|}yJdq{~X}@lD[^_@Aa@c@sCwFk@oA</DetourPolyline>
        <DetourInstructions>Head northwest on Rowlinson Dr. Go for 250 m. Arrive at Rowlinson Dr.</DetourInstructions>
        <Recurrence></Recurrence>
        <RecurrenceSchedules></RecurrenceSchedules>
        <EventSubType>bridgeRestrictions2</EventSubType>
        <Details>checking comments </Details>
    </BridgeRestrictions>
</BridgeRestrictionsList>