GET Events
Returns all traffic events.
Request Information
https://511.idaho.gov/api/v2/get/event
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. |
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 |
A summary of the event details which often includes type of event, dates and lanes affected. |
string |
Reported |
The date the event was reported in Unix time. More information |
integer |
LastUpdated |
The date the event'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. One of the following: roadwork, closures or accidentsAndIncidents. |
string |
IsFullClosure |
True if all lanes are blocked for this event. |
boolean |
Comment |
Extra information about the event |
string |
Restrictions |
Different types of restriction: Width (Feet), Height (Feet), Weight (Tons) and Speed (Mph). |
list |
Response Formats
JSON
{ "ID": "ERS--21", "Organization": "ERS", "RoadwayName": "I-84", "DirectionOfTravel": "Eastbound", "Description": "Minor Road Construction on I-84 Eastbound at I-84-BL. Width Restriction: 22ft Height Restriction: 10ft Speed Restriction: 45mph Additional Restrictions: Hazmat Prohibited", "Reported": 1665694920, "LastUpdated": 1665695167, "StartDate": 1665694920, "PlannedEndDate": 1665695700, "LanesAffected": "No Data", "Latitude": 43.171401, "Longitude": -115.735211, "LatitudeSecondary": 0.0, "LongitudeSecondary": 0.0, "EventType": "roadwork", "IsFullClosure": false, "Comment": null, "Restrictions": { "Width": 22.0, "Height": 10.0, "Length": null, "Weight": null, "Speed": 45.0 } }, { "ID": "ERS--65", "Organization": "ERS", "RoadwayName": "ID-55", "DirectionOfTravel": "None", "Description": "Minor Accident on ID-55 near Shafer Meadow Ln", "Reported": 1663509471, "LastUpdated": 1665516768, "StartDate": 1663509471, "PlannedEndDate": null, "LanesAffected": "No Data", "Latitude": 43.593428, "Longitude": -116.241031, "LatitudeSecondary": 0.0, "LongitudeSecondary": 0.0, "EventType": "closures", "IsFullClosure": false, "Comment": null, "Restrictions": { "Width": null, "Height": null, "Length": null, "Weight": null, "Speed": null } } ]
XML
<EventList> <Event> <ID>ERS--21</ID> <Organization>ERS</Organization> <RoadwayName>I-84</RoadwayName> <DirectionOfTravel>Eastbound</DirectionOfTravel> <Description>Minor Road Construction on I-84 Eastbound at I-84-BL. Width Restriction: 22ft Height Restriction: 10ft Speed Restriction: 45mph Additional Restrictions: Hazmat Prohibited</Description> <Reported>1665694920</Reported> <LastUpdated>1665695167</LastUpdated> <StartDate>1665694920</StartDate> <PlannedEndDate>1665695700</PlannedEndDate> <LanesAffected>No Data</LanesAffected> <Latitude>43.171401</Latitude> <Longitude>-115.735211</Longitude> <LatitudeSecondary>0</LatitudeSecondary> <LongitudeSecondary>0</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Comment/> <Restrictions> <Width>22</Width> <Height>10</Height> <Length/> <Weight/> <Speed>45</Speed> </Restrictions> </Event> <Event> <ID>ERS--65</ID> <Organization>ERS</Organization> <RoadwayName>ID-55</RoadwayName> <DirectionOfTravel>None</DirectionOfTravel> <Description>Minor Accident on ID-55 near Shafer Meadow Ln</Description> <Reported>1663509471</Reported> <LastUpdated>1665516768</LastUpdated> <StartDate>1663509471</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>43.593428</Latitude> <Longitude>-116.241031</Longitude> <LatitudeSecondary>0</LatitudeSecondary> <LongitudeSecondary>0</LongitudeSecondary> <EventType>closures</EventType> <IsFullClosure>false</IsFullClosure> <Comment/> <Restrictions> <Width/> <Height/> <Length/> <Weight/> <Speed/> </Restrictions> </Event> </EventList>