GET Events
Returns all traffic events.
Request Information
https://511wi.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 |
DetourPolyline |
Google Encoded Polyline for the detour |
string |
DetourInstructions |
Turn by turn instructions for the detour |
string |
EventSubType |
A more detailed and descriptive event type. No fixed list of sub types. |
string |
County |
The name of the county. |
string |
Restrictions |
Different types of restriction: Width (Feet), Height (Feet), Weight (Tons) and Speed (Mph). |
list |
Recurrence |
Plain text recurrence description. The format of the plain text data will depend on the source of the event. |
string |
Response Formats
JSON
[ { "ID": "WisDOT LCS--LCS-159696-1", "Organization": "WisDOT LCS", "RoadwayName": "WIS 27", "DirectionOfTravel": "Northbound", "Description": "Permit - Mainline Right Shoulder Closed from NEMO AVE to MASCOTT AVE", "Reported": 1646830800, "LastUpdated": 1646857848, "StartDate": 1646830800, "PlannedEndDate": 1649451600, "LanesAffected": "Mainline Right Shoulder Closed", "Latitude": 43.767054, "Longitude": -90.798122, "LatitudeSecondary": 43.80012, "LongitudeSecondary": -90.776739, "EventType": "roadwork", "IsFullClosure": false, "Comment": null, "EventSubType": "permit", "County": "Monroe", "Comment": "", "DetourPolyline": "ipbqG~d{lPi@_AaBcESIKQ{@eBMQSIUVSRq@RE}@Cc@?gA???m@mA_Gq@{DMMk@??`MAZQl@c@]aBaAq@_@kAq@q@_@uBiA}@g@", "DetourInstructions": [ "Head northeast on WI-124. Go for 423 ft.", "Turn slightly left onto Grandview Dr. Go for 112 ft.", "Turn left onto Flame Dr.", "Go for 0.2 mi." ], "Recurrence": "3/9/22 - 4/8/22\r 7:00 AM - 4:00 PM\r Daily/Nightly" } ]
XML
<EventList> <Event> <ID>WisDOT LCS--LCS-159696-1</ID> <Organization>WisDOT LCS</Organization> <RoadwayName>WIS 27</RoadwayName> <DirectionOfTravel>Northbound</DirectionOfTravel> <Description>Permit - Mainline Right Shoulder Closed from NEMO AVE to MASCOTT AVE</Description> <Reported>1646830800</Reported> <LastUpdated>1646857848</LastUpdated> <StartDate>1646830800</StartDate> <PlannedEndDate>1649451600</PlannedEndDate> <LanesAffected>Mainline Right Shoulder Closed</LanesAffected> <Latitude>43.767054</Latitude> <Longitude>-90.798122</Longitude> <LatitudeSecondary>43.80012</LatitudeSecondary> <LongitudeSecondary>-90.776739</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Comment/> <EventSubType>permit</EventSubType> <County>Monroe</County> <Comment/> <DetourPolyline>ipbqG~d{lPi@_AaBcESIKQ{@eBMQSIUVSRq@RE}@Cc@?gA???m@mA_Gq@{DMMk@??`MAZQl@c@]aBaAq@_@kAq@q@_@uBiA}@g@<DetourPolyline/> <DetourInstructions>Head northeast on WI-124. Go for 423 ft.Turn slightly left onto Grandview Dr. Go for 112 ft. Turn left onto Flame Dr.Go for 0.2<DetourInstructions/> <Recurrence>3/9/22 - 4/8/22 7:00 AM - 4:00 PM Daily/Nightly</Recurrence> </Event> </EventList>