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. |
integer |
| SourceId |
The source id of the event. |
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 |
| EventSubType |
A more detailed and descriptive event type. No fixed list of sub types. |
string |
| IsFullClosure |
True if all lanes are blocked for this event. |
boolean |
| Severity |
Describes the severity of the event with default value of Unknown. |
string |
| Comment |
Extra information about the event |
string |
| EncodedPolyline |
A single string storing a series of coordinates. More information |
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 |
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 |
| County |
The name of the county. |
string |
Response Formats
JSON
[
{
"ID": 155,
"SourceId": "986",
"Organization": "ERS",
"RoadwayName": "I-94",
"DirectionOfTravel": "West",
"Description": "Accident blocking lanes on I-94 Westbound near Frontage Rd N.",
"Reported": 1713896640,
"LastUpdated": 1714127181,
"StartDate": 1713896640,
"PlannedEndDate": null,
"LanesAffected": "No Data",
"Latitude": 43.0848210327052,
"Longitude": -88.650704925941,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "accidentsAndIncidents",
"EventSubType": "accidentsAndIncidents",
"IsFullClosure": false,
"Severity": "None",
"Comment": null,
"EncodedPolyline": null,
"Restrictions": {
"Width": null,
"Height": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": "",
"DetourInstructions": "",
"Recurrence": "",
"RecurrenceSchedules": "",
"County": "Jefferson"
},
{
"ID": 156,
"SourceId": "1004",
"Organization": "ERS",
"RoadwayName": "Pray Rd",
"DirectionOfTravel": "Both",
"Description": "Jackknifed vehicle on Pray Rd Both Directions near Thiel Rd. All lanes closed.",
"Reported": 1714479420,
"LastUpdated": 1747740791,
"StartDate": 1714479420,
"PlannedEndDate": null,
"LanesAffected": "All lanes closed",
"Latitude": 44.417621232192,
"Longitude": -90.4972532319968,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "closures",
"EventSubType": "accidentsAndIncidents",
"IsFullClosure": true,
"Severity": "None",
"Comment": null,
"EncodedPolyline": null,
"Restrictions": {
"Width": null,
"Height": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": "oxanGdgjgP{PKmHBaSA",
"DetourInstructions": [
"Head north on Pray Rd. Go for 0.5 mi.",
"Arrive at Pray Rd."
],
"Recurrence": "",
"RecurrenceSchedules": "",
"County": "Jackson"
}
]
XML
<EventList>
<Event>
<ID>155</ID>
<SourceId>986</SourceId>
<Organization>ERS</Organization>
<RoadwayName>I-94</RoadwayName>
<DirectionOfTravel>West</DirectionOfTravel>
<Description>Accident blocking lanes on I-94 Westbound near Frontage Rd N.</Description>
<Reported>1713896640</Reported>
<LastUpdated>1714127181</LastUpdated>
<StartDate>1713896640</StartDate>
<PlannedEndDate/>
<LanesAffected>No Data</LanesAffected>
<Latitude>43.0848210327052</Latitude>
<Longitude>-88.650704925941</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>accidentsAndIncidents</EventType>
<EventSubType>accidentsAndIncidents</EventSubType>
<IsFullClosure>false</IsFullClosure>
<Severity>None</Severity>
<Comment/>
<EncodedPolyline/>
<Restrictions>
<Width/>
<Height/>
<Weight/>
<Speed/>
</Restrictions>
<DetourPolyline/>
<DetourInstructions/>
<Recurrence/>
<RecurrenceSchedules/>
<County>Jefferson</County>
</Event>
<Event>
<ID>156</ID>
<SourceId>1004</SourceId>
<Organization>ERS</Organization>
<RoadwayName>Pray Rd</RoadwayName>
<DirectionOfTravel>Both</DirectionOfTravel>
<Description>Jackknifed vehicle on Pray Rd Both Directions near Thiel Rd. All lanes closed.</Description>
<Reported>1714479420</Reported>
<LastUpdated>1747740791</LastUpdated>
<StartDate>1714479420</StartDate>
<PlannedEndDate/>
<LanesAffected>All lanes closed</LanesAffected>
<Latitude>44.417621232192</Latitude>
<Longitude>-90.4972532319968</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>closures</EventType>
<EventSubType>accidentsAndIncidents</EventSubType>
<IsFullClosure>true</IsFullClosure>
<Severity>None</Severity>
<Comment/>
<EncodedPolyline/>
<Restrictions>
<Width/>
<Height/>
<Weight/>
<Speed/>
</Restrictions>
<DetourPolyline>oxanGdgjgP{PKmHBaSA</DetourPolyline>
<DetourInstructions>Head north on Pray Rd. Go for 0.5 mi. Arrive at Pray Rd.</DetourInstructions>
<Recurrence/>
<RecurrenceSchedules/>
<County>Jackson</County>
</Event>
</EventList>