GET Events
Returns all traffic events.
Request Information
https://511la.org/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 |
Response Formats
JSON
[ { "ID": "ERS--2777", "Organization": "ERS", "RoadwayName": "Government St", "DirectionOfTravel": "Both Directions", "Description": "Paving Operations on Government St Both Directions from Cloud Dr to S 10th St . Lanes Alternating.", "Reported": 1525168800, "LastUpdated": 1551197941, "StartDate": 1525168800, "PlannedEndDate": 1609412444, "LanesAffected": "No Data", "Latitude": 30.44469, "Longitude": -91.131298, "LatitudeSecondary": 30.44353, "LongitudeSecondary": -91.17986, "EventType": "roadwork" }, { "ID": "ERS--4246", "Organization": "ERS", "RoadwayName": "LA-4", "DirectionOfTravel": "Both Directions", "Description": "Bridge Maintenance Operations on LA-4 Both Directions near Bob Neal Rd . Lane Closed. Starting 4/16/2019 3:38 PM ", "Reported": 1555447134, "LastUpdated": 1555447294, "StartDate": 1555447134, "PlannedEndDate": null, "LanesAffected": "No Data", "Latitude": 32.276368, "Longitude": -93.083073, "LatitudeSecondary": 0.0, "LongitudeSecondary": 0.0, "EventType": "closures" } ]
XML
<EventList> <Event> <ID>ERS--2777</ID> <Organization>ERS</Organization> <RoadwayName>Government St</RoadwayName> <DirectionOfTravel>Both Directions</DirectionOfTravel> <Description> Paving Operations on Government St Both Directions from Cloud Dr to S 10th St . Lanes Alternating. </Description> <Reported>1525168800</Reported> <LastUpdated>1551197941</LastUpdated> <StartDate>1525168800</StartDate> <PlannedEndDate>1609412444</PlannedEndDate> <LanesAffected>No Data</LanesAffected> <Latitude>30.44469</Latitude> <Longitude>-91.131298</Longitude> <LatitudeSecondary>30.44353</LatitudeSecondary> <LongitudeSecondary>-91.17986</LongitudeSecondary> <EventType>roadwork</EventType> </Event> <Event> <ID>ERS--4246</ID> <Organization>ERS</Organization> <RoadwayName>LA-4</RoadwayName> <DirectionOfTravel>Both Directions</DirectionOfTravel> <Description> Bridge Maintenance Operations on LA-4 Both Directions near Bob Neal Rd . Lane Closed. Starting 4/16/2019 3:38 PM </Description> <Reported>1555447134</Reported> <LastUpdated>1555447294</LastUpdated> <StartDate>1555447134</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>32.276368</Latitude> <Longitude>-93.083073</Longitude> <LatitudeSecondary>0.0</LatitudeSecondary> <LongitudeSecondary>0.0</LongitudeSecondary> <EventType>closures</EventType> </Event> </EventList>