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 |
Recurrence |
Plain text recurrence description. The format of the plain text data will depend on the source 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 |
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 |
Response Formats
JSON
[
{
"ID": "ERS--872",
"Organization": "ERS",
"RoadwayName": "Meridian Ave",
"DirectionOfTravel": "All Directions",
"Description": "Flooding on Meridian Ave All Directions from Hill Rd to Maple Rd .Minor. ",
"Reported": 1675186680,
"LastUpdated": 1675186799,
"StartDate": 1675186680,
"PlannedEndDate": 1675193880,
"LanesAffected": "No Data",
"Latitude": 44.580103,
"Longitude": -90.436055,
"LatitudeSecondary": 44.554544,
"LongitudeSecondary": -90.435791,
"EventType": "closures",
"IsFullClosure": false,
"Comment": "For Test",
"DetourPolyline": "s`boGjh~fPqJ@?tBCnUEtd@A`G?bSBjCHrBPtBHn@P~@Nr@Rt@Tp@Rj@b@|@f@|@h@p@p@v@hAv@HFz@d@~@f@t@Vv@Nt@Hf@Dn@FtBCbLKdDEfGGpA?fRDhA?rKBrFH`ONlAD",
"DetourInstructions": [
"Head toward US Highway 10 on Meridian Ave. Go for 0.1 mi.",
"Turn left onto US Highway 10 (US-10).",
"Arrive at Meridian Ave."
],
"EventSubType": "Flooding on Roadway",
"County": "Clark",
"Comment": "For Test",
"Recurrence": ""
},
{
"ID": "WisDOT LCS--LCS-200147-2",
"Organization": "WisDOT LCS",
"RoadwayName": "I-43",
"DirectionOfTravel": "Northbound",
"Description": "Construction - Mainline Full Closure at MILWAUKEE - OZAUKEE CO LINE",
"Reported": 1647918000,
"LastUpdated": 1647544418,
"StartDate": 1647918000,
"PlannedEndDate": 1648029600,
"LanesAffected": "Mainline Full Closure",
"Latitude": 43.17697,
"Longitude": -87.917306,
"LatitudeSecondary": 0.0,
"LongitudeSecondary": 0.0,
"EventType": "closures",
"IsFullClosure": false,
"Comment": "Daily from 03/21/2022 to 03/23/2022, 10:00 PM - 05:00 AM, M, Tu, W. Contingency: Wednesday night",
"DetourPolyline": "",
"DetourInstructions": "Brown Deer Rd. WB to STH 181 NB to Mequon Rd. EB",
"EventSubType": "construction",
"County": "Ozaukee",
"Comment": "",
"Recurrence": "3/21/22 - 3/23/22\r 10:00 PM - 5:00 AM\r Daily/Nightly"
}
]
XML
<EventList>
<Event>
<ID>ERS--872</ID>
<Organization>ERS</Organization>
<RoadwayName>Meridian Ave</RoadwayName>
<DirectionOfTravel>All Directions</DirectionOfTravel>
<Description>Flooding on Meridian Ave All Directions from Hill Rd to Maple Rd .Minor. </Description>
<Reported>1675186680</Reported>
<LastUpdated>1675186799</LastUpdated>
<StartDate>1675186680</StartDate>
<PlannedEndDate>1675193880</PlannedEndDate>
<LanesAffected>No Data</LanesAffected>
<Latitude>44.580103</Latitude>
<Longitude>-90.436055</Longitude>
<LatitudeSecondary>44.554544</LatitudeSecondary>
<LongitudeSecondary>-90.435791</LongitudeSecondary>
<EventType>closures</EventType>
<IsFullClosure>false</IsFullClosure>
<Comment>For Test</Comment>
<DetourPolyline>s`boGjh~fPqJ@?tBCnUEtd@A`G?bSBjCHrBPtBHn@P~@Nr@Rt@Tp@Rj@b@|@f@|@h@p@p@v@hAv@HFz@d@~@f@t@Vv@Nt@Hf@Dn@FtBCbLKdDEfGGpA?fRDhA?rKBrFH`ONlADn</DetourPolyline>
<DetourInstructions>Head toward US Highway 10 on Meridian Ave. Go for 0.1 mi. Turn left onto US Highway 10 (US-10).Arrive at Meridian Ave.</DetourInstructions>
<EventSubType>Flooding on Roadway</EventSubType>
<County>Clark</County>
<Comment>For Test</Comment>
<Recurrence/>
</Event>
<Event>
<ID>WisDOT LCS--LCS-200147-2</ID>
<Organization>WisDOT LCS</Organization>
<RoadwayName>I-43</RoadwayName>
<DirectionOfTravel>Northbound</DirectionOfTravel>
<Description>Construction - Mainline Full Closure at MILWAUKEE - OZAUKEE CO LINE</Description>
<Reported>1647918000</Reported>
<LastUpdated>1647544418</LastUpdated>
<StartDate>1647918000</StartDate>
<PlannedEndDate>1648029600</PlannedEndDate>
<LanesAffected>Mainline Full Closure</LanesAffected>
<Latitude>43.17697</Latitude>
<Longitude>-87.917306</Longitude>
<LatitudeSecondary>0</LatitudeSecondary>
<LongitudeSecondary>0</LongitudeSecondary>
<EventType>closures</EventType>
<IsFullClosure>false</IsFullClosure>
<Comment>Daily from 03/21/2022 to 03/23/2022, 10:00 PM - 05:00 AM, M, Tu, W. Contingency: Wednesday night</Comment>
<DetourPolyline/>
<DetourInstructions>Brown Deer Rd. WB to STH 181 NB to Mequon Rd. EB</DetourInstructions>
<EventSubType>construction</EventSubType>
<County>Ozaukee</County>
<Comment/>
<Recurrence>3/21/22 - 3/23/22 10:00 PM - 5:00 AM Daily/Nightly</Recurrence>
</Event>
</EventList>