GET Restrictions

Returns all weight restriction events.

Request Information

https://511.idaho.gov/api/v2/get/truckrestrictions

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

format

Valid values are 'xml' or 'json', default 'json'.

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
Comment

Extra information about the event

string
Restrictions

Different types of restriction: Width (Feet), Height (Feet), Weight (Tons) and Speed (Mph).

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
Severity

Describes the severity of the event with default value of Unknown.

string
Cause

string

Response Formats

JSON

Sample:
[
{
    "ID": "ERS--286",
    "Organization": "ERS",
    "RoadwayName": "US-93-SCENIC",
    "DirectionOfTravel": "Unknown",
    "Description": "Long term road construction on US-93-SCENIC near mile marker 263.  11/30/2022 7:31 AM  Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day Width Restriction: 2ft ",
    "Reported": 1669818660,
    "LastUpdated": 1669818733,
    "StartDate": 1669818660,
    "PlannedEndDate": null,
    "LanesAffected": "No Data",
    "Latitude": 44.682607,
    "Longitude": -114.062262,
    "LatitudeSecondary": 0.0,
    "LongitudeSecondary": 0.0,
    "EventType": "roadwork",
    "IsFullClosure": false,
    "Comment": null,
    "Restrictions": {
        "Width": 2.0,
        "Height": null,
        "Length": null,
        "Weight": null,
        "Speed": null
    },
    "DetourPolyline": null,
    "DetourInstructions": null,
    "Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active all day<br/><br/>",
    "RecurrenceSchedules": [
        {
            "StartDate": "11/30/2022 7:31:00 AM-07:00:00",
            "EndDate": null,
            "Times": [
                {
                    "StartTime": "00:00:00-07:00:00",
                    "EndTime": "23:59:59-07:00:00"
                }
            ],
            "DaysOfWeek": [
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday",
                "Sunday"
            ]
        }
    ],
    "EventSubType": "longTermRoadConstruction",
    "EncodedPolyline": "",
    "Severity": "Unknown",
    "Cause": "roadwork"
},
{
    "ID": "ERS--295",
    "Organization": "ERS",
    "RoadwayName": "ID-55",
    "DirectionOfTravel": "Unknown",
    "Description": "Major road construction on ID-55 near mile marker 55. Right Lane Closed. 11/30/2022 1:31 PM  Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day Width Restriction: 13ft  Height Restriction: 0ft  Length Restriction: 0ft  Weight Restriction: 0lbs Speed Restriction: 20mph Additional Restrictions: Escort Vehicle Required Activities: pilot car in operation. Expect Delays: Under 30 minutes",
    "Reported": 1669840260,
    "LastUpdated": 1670000151,
    "StartDate": 1669840260,
    "PlannedEndDate": null,
    "LanesAffected": "Right Lane Closed",
    "Latitude": 43.814506,
    "Longitude": -116.26523,
    "LatitudeSecondary": 0.0,
    "LongitudeSecondary": 0.0,
    "EventType": "roadwork",
    "IsFullClosure": false,
    "Comment": "test data",
    "Restrictions": {
        "Width": 13.0,
        "Height": 0.0,
        "Length": 0.0,
        "Weight": 0.0,
        "Speed": 20.0
    },
    "DetourPolyline": null,
    "DetourInstructions": null,
    "Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active all day<br/><br/>",
    "RecurrenceSchedules": [
        {
            "StartDate": "11/30/2022 1:31:00 PM-07:00:00",
            "EndDate": null,
            "Times": [
                {
                    "StartTime": "00:00:00-07:00:00",
                    "EndTime": "23:59:59-07:00:00"
                }
            ],
            "DaysOfWeek": [
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday",
                "Sunday"
            ]
        }
    ],
    "EventSubType": "majorRoadConstruction",
    "EncodedPolyline": "",
    "Severity": "Unknown",
    "Cause": "roadwork"
}
]

XML

Sample:
<TruckRestrictionsList>
 <TruckRestrictions>
        <ID>ERS--286</ID>
        <Organization>ERS</Organization>
        <RoadwayName>US-93-SCENIC</RoadwayName>
        <DirectionOfTravel>Unknown</DirectionOfTravel>
        <Description>Long term road construction on US-93-SCENIC near mile marker 263.  11/30/2022 7:31 AM  Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day Width Restriction: 2ft </Description>
        <Reported>1669818660</Reported>
        <LastUpdated>1669818733</LastUpdated>
        <StartDate>1669818660</StartDate>
        <PlannedEndDate />
        <LanesAffected>No Data</LanesAffected>
        <Latitude>44.682607</Latitude>
        <Longitude>-114.062262</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>roadwork</EventType>
        <IsFullClosure>false</IsFullClosure>
        <Comment />
        <Restrictions>
            <Width>2</Width>
            <Height />
            <Length />
            <Weight />
            <Speed />
        </Restrictions>
        <DetourPolyline />
        <DetourInstructions />
        <Recurrence>&lt;b&gt;Mon, Tue, Wed, Thu, Fri, Sat, Sun:&lt;/b&gt;&lt;br/&gt;Active all day&lt;br/&gt;&lt;br/&gt;</Recurrence>
        <RecurrenceSchedules>
            <Schedule>
                <StartDate>11/30/2022 7:31:00 AM-07:00:00</StartDate>
                <EndDate />
                <Times>
                    <Schedule>
                        <StartTime>00:00:00-07:00:00</StartTime>
                        <EndTime>23:59:59-07:00:00</EndTime>
                    </Schedule>
                </Times>
                <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek>
            </Schedule>
        </RecurrenceSchedules>
        <EventSubType>longTermRoadConstruction</EventSubType>
        <EncodedPolyline></EncodedPolyline>
        <Severity>Unknown</Severity>
        <Cause>roadwork</Cause>
    </TruckRestrictions>
    <TruckRestrictions>
        <ID>ERS--295</ID>
        <Organization>ERS</Organization>
        <RoadwayName>ID-55</RoadwayName>
        <DirectionOfTravel>Unknown</DirectionOfTravel>
        <Description>Major road construction on ID-55 near mile marker 55. Right Lane Closed. 11/30/2022 1:31 PM  Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day Width Restriction: 13ft  Height Restriction: 0ft  Length Restriction: 0ft  Weight Restriction: 0lbs Speed Restriction: 20mph Additional Restrictions: Escort Vehicle Required Activities: pilot car in operation. Expect Delays: Under 30 minutes</Description>
        <Reported>1669840260</Reported>
        <LastUpdated>1670000151</LastUpdated>
        <StartDate>1669840260</StartDate>
        <PlannedEndDate />
        <LanesAffected>Right Lane Closed</LanesAffected>
        <Latitude>43.814506</Latitude>
        <Longitude>-116.26523</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>roadwork</EventType>
        <IsFullClosure>false</IsFullClosure>
        <Comment>test data</Comment>
        <Restrictions>
            <Width>13</Width>
            <Height>0</Height>
            <Length>0</Length>
            <Weight>0</Weight>
            <Speed>20</Speed>
        </Restrictions>
        <DetourPolyline />
        <DetourInstructions />
        <Recurrence>&lt;b&gt;Mon, Tue, Wed, Thu, Fri, Sat, Sun:&lt;/b&gt;&lt;br/&gt;Active all day&lt;br/&gt;&lt;br/&gt;</Recurrence>
        <RecurrenceSchedules>
            <Schedule>
                <StartDate>11/30/2022 1:31:00 PM-07:00:00</StartDate>
                <EndDate />
                <Times>
                    <Schedule>
                        <StartTime>00:00:00-07:00:00</StartTime>
                        <EndTime>23:59:59-07:00:00</EndTime>
                    </Schedule>
                </Times>
                <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek>
            </Schedule>
        </RecurrenceSchedules>
        <EventSubType>majorRoadConstruction</EventSubType>
        <EncodedPolyline></EncodedPolyline>
        <Severity>Unknown</Severity>
        <Cause>roadwork</Cause>
    </TruckRestrictions>
</TruckRestrictionsList>