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 |
IsFullClosure |
True if all lanes are blocked for this event. |
boolean |
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 |
Describes the schedule 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 |
Details |
Event Details |
string |
Response Formats
JSON
[ { "ID":"ERS--9323", "Organization":"ERS", "RoadwayName":"La Highway 1", "DirectionOfTravel":"Unknown", "Description":"Construction Work on 6th from 6th Street to LA - 1","Reported":1672859940, "LastUpdated":1672860202, "StartDate":1672859940, "PlannedEndDate":null, "LanesAffected":"No Data", "Latitude":30.35279, "Longitude":-91.25897, "LatitudeSecondary":30.3543, "LongitudeSecondary":-91.25941, "EventType":"roadwork", "IsFullClosure":false, "Restrictions": { "Width":null, "Height":null, "Length":null, "Weight":null, "Speed":null }, "DetourPolyline":null, "DetourInstructions":null, "Recurrence":"<b>Wed, Thu, Fri, Sat, Sun, Mon, Tue:</b><br/>Active all day<br/><br/>", "RecurrenceSchedules": [{ "StartDate":"1/4/2023 7:19:00 PM-06:00:00", "EndDate":null, "Times": [{ "StartTime":"00:00:00-06:00:00", "EndTime":"23:59:59-06:00:00" }], "DaysOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] }], "EventSubType":"constructionwork", "Details":"" }, { "ID":"ERS--11495", "Organization":"ERS", "RoadwayName":"LA-8", "DirectionOfTravel":"Northbound", "Description":"Floodgate Closed on LA-8 Northbound near Firetower Rd. Starting 2/21/2023 2:08 PM", "Reported":1677010080, "LastUpdated":1677010190, "StartDate":1677010080, "PlannedEndDate":null, "LanesAffected":"No Data", "Latitude":31.345545, "Longitude":-92.895173, "LatitudeSecondary":0.0, "LongitudeSecondary":0.0, "EventType":"roadwork", "IsFullClosure":false, "Restrictions": { "Width":100.0, "Height":100.0, "Length":100.0, "Weight":200.0, "Speed":55.0 }, "DetourPolyline":"aph~Dvc_vPuEiE}@y@WW{@u@cA{@aCcBeCcBeJcGm]eU", "DetourInstructions": [ "Head northeast on Highway 8 (LA-8). Go for 0.8 mi.","Arrive at Highway 8 (LA-8)." ], "Recurrence":"<b>Tue, Wed, Thu, Fri, Sat, Sun, Mon:</b><br/>Active all day<br/><br/>", "RecurrenceSchedules": [{ "StartDate":"2/21/2023 8:08:00 PM-06:00:00", "EndDate":null, "Times": [{ "StartTime":"00:00:00-06:00:00", "EndTime":"23:59:59-06:00:00" }], "DaysOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] }], "EventSubType":"floodgateClosed", "Details":"" } ]
XML
<EventList> <Event> <ID>ERS--9323</ID> <Organization>ERS</Organization> <RoadwayName>La Highway 1</RoadwayName> <DirectionOfTravel>Unknown</DirectionOfTravel> <Description>Construction Work on 6th from 6th Street to LA - 1</Description> <Reported>1672859940</Reported> <LastUpdated>1672860202</LastUpdated> <StartDate>1672859940</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>30.35279</Latitude> <Longitude>-91.25897</Longitude> <LatitudeSecondary>30.3543</LatitudeSecondary> <LongitudeSecondary>-91.25941</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Restrictions> <Width/> <Height/> <Length/> <Weight/> <Speed/> </Restrictions> <DetourPolyline/> <DetourInstructions/> <Recurrence><b>Wed, Thu, Fri, Sat, Sun, Mon, Tue:</b><br/>Active all day<br/><br/></Recurrence> <RecurrenceSchedules> <Schedule> <StartDate>1/4/2023 7:19:00 PM-06:00:00</StartDate> <EndDate/> <Times> <Schedule> <StartTime>00:00:00-06:00:00</StartTime> <EndTime>23:59:59-06:00:00</EndTime> </Schedule> </Times> <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek> </Schedule> </RecurrenceSchedules> <EventSubType>constructionwork</EventSubType> <Details/> </Event> <Event> <ID>ERS--11495</ID> <Organization>ERS</Organization> <RoadwayName>LA-8</RoadwayName> <DirectionOfTravel>Northbound</DirectionOfTravel> <Description>Floodgate Closed on LA-8 Northbound near Firetower Rd. Starting 2/21/2023 2:08 PM</Description> <Reported>1677010080</Reported> <LastUpdated>1677010190</LastUpdated> <StartDate>1677010080</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>31.345545</Latitude> <Longitude>-92.895173</Longitude> <LatitudeSecondary>0</LatitudeSecondary> <LongitudeSecondary>0</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Restrictions> <Width>100</Width> <Height>100</Height> <Length>100</Length> <Weight>200</Weight> <Speed>55</Speed> </Restrictions> <DetourPolyline>aph~Dvc_vPuEiE}@y@WW{@u@cA{@aCcBeCcBeJcGm]eU</DetourPolyline> <DetourInstructions>Head northeast on Highway 8 (LA-8). Go for 0.8 mi. Arrive at Highway 8 (LA-8).</DetourInstructions> <Recurrence><b>Tue, Wed, Thu, Fri, Sat, Sun, Mon:</b><br/>Active all day<br/><br/></Recurrence> <RecurrenceSchedules> <Schedule> <StartDate>2/21/2023 8:08:00 PM-06:00:00</StartDate> <EndDate/> <Times> <Schedule> <StartTime>00:00:00-06:00:00</StartTime> <EndTime>23:59:59-06:00:00</EndTime> </Schedule> </Times> <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek> </Schedule> </RecurrenceSchedules> <EventSubType>floodgateClosed</EventSubType> <Details/> </Event> </EventList>