GET Events
Returns all traffic events.
Request Information
https://az511.com/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 |
EncodedPolyline |
A single string storing a series of coordinates. More information |
string |
Details |
Event Details |
string |
Severity |
Describes the severity of the event |
string |
Response Formats
JSON
[ { "ID": "ERS--40081", "Organization": "ERS", "RoadwayName": "I-10", "DirectionOfTravel": "Westbound", "Description": "2 left Narrow lanes on I-10 Westbound 0.5 Mi Beyond Jackrabbit Trail (123)", "Reported": 1658335020, "LastUpdated": 1658337402, "StartDate": 1658335020, "PlannedEndDate": null, "LanesAffected": "No Data", "Latitude": 33.462391, "Longitude": -112.463876, "LatitudeSecondary": 0.0, "LongitudeSecondary": 0.0, "EventType": "roadwork", "IsFullClosure": false, "Restrictions": { "Width": null, "Height": null, "Length": null, "Weight": null, "Speed": null }, "DetourPolyline": null, "DetourInstructions": null, "Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active all day<br/><br/>", "RecurrenceSchedules": [ { "StartDate": "7/20/2022 9:37:00 AM-07:00:00", "EndDate": null, "Times": [ { "StartTime": "00:00:00-07:00:00", "EndTime": "23:59:59-07:00:00" } ], "DaysOfWeek": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ] } ], "EventSubType": "narrowLanes", "EncodedPolyline": "", "Details": "", "Severity": "major" }, { "ID": "ERS--41955", "Organization": "ERS", "RoadwayName": "I-10", "DirectionOfTravel": "Westbound", "Description": "Bridge maintenance operations on I-10 Westbound from Roosevelt Canal (MP 135) to 99th Ave (MP 133) Width Restriction: 5ft 2in Height Restriction: 6ft 3in Length Restriction: 7ft 4in Weight Restriction: 60ton Speed Restriction: 40mph", "Reported": 1659545280, "LastUpdated": 1675964742, "StartDate": 1659545280, "PlannedEndDate": null, "LanesAffected": "No Data", "Latitude": 33.462425, "Longitude": -112.242074, "LatitudeSecondary": 33.461595, "LongitudeSecondary": -112.280827, "EventType": "roadwork", "IsFullClosure": false, "Restrictions": { "Width": 5.17, "Height": 6.25, "Length": 7.33, "Weight": 60.0, "Speed": 40.0 }, "DetourPolyline": null, "DetourInstructions": null, "Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active all day<br/><br/>", "RecurrenceSchedules": [ { "StartDate": "8/3/2022 9:48:00 AM-07:00:00", "EndDate": null, "Times": [ { "StartTime": "00:00:00-07:00:00", "EndTime": "23:59:59-07:00:00" } ], "DaysOfWeek": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ] } ], "EventSubType": "bridgeMaintenance", "EncodedPolyline": "csfkE|galTErJ?p@AbD?|CC~QArC?lC@nBAfJ@bD?|BBpD?d@BhAB`CRpLH~DDfCDfBBz@BpAFjDFbER`LFfENbINxHFnEJzK?d@BtIB~O@bBD|L@jB?l@?r@", "Details": "", "Severity": "minor" } ]
XML
<EventList> <Event> <ID>ERS--40081</ID> <Organization>ERS</Organization> <RoadwayName>I-10</RoadwayName> <DirectionOfTravel>Westbound</DirectionOfTravel> <Description>2 left Narrow lanes on I-10 Westbound 0.5 Mi Beyond Jackrabbit Trail (123)</Description> <Reported>1658335020</Reported> <LastUpdated>1658337402</LastUpdated> <StartDate>1658335020</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>33.462391</Latitude> <Longitude>-112.463876</Longitude> <LatitudeSecondary>0</LatitudeSecondary> <LongitudeSecondary>0</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Restrictions> <Width/> <Height/> <Length/> <Weight/> <Speed/> </Restrictions> <DetourPolyline/> <DetourInstructions/> <Recurrence> <b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b> <br/>Active all day <br/> <br/> </Recurrence> <RecurrenceSchedules> <Schedule> <StartDate>7/20/2022 9:37:00 AM-07:00:00</StartDate> <EndDate/> <Times> <Schedule> <StartTime>00:00:00-07:00:00</StartTime> <EndTime>23:59:59-07:00:00</EndTime> </Schedule> </Times> <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek> </Schedule> </RecurrenceSchedules> <EventSubType>narrowLanes</EventSubType> <EncodedPolyline/> <Details/> <Severity>major</Severity> </Event> <Event> <ID>ERS--41955</ID> <Organization>ERS</Organization> <RoadwayName>I-10</RoadwayName> <DirectionOfTravel>Westbound</DirectionOfTravel> <Description>Bridge maintenance operations on I-10 Westbound from Roosevelt Canal (MP 135) to 99th Ave (MP 133) Width Restriction: 5ft 2in Height Restriction: 6ft 3in Length Restriction: 7ft 4in Weight Restriction: 60ton Speed Restriction: 40mph</Description> <Reported>1659545280</Reported> <LastUpdated>1675964742</LastUpdated> <StartDate>1659545280</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>33.462425</Latitude> <Longitude>-112.242074</Longitude> <LatitudeSecondary>33.461595</LatitudeSecondary> <LongitudeSecondary>-112.280827</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Restrictions> <Width>5.17</Width> <Height>6.25</Height> <Length>7.33</Length> <Weight>60</Weight> <Speed>40</Speed> </Restrictions> <DetourPolyline/> <DetourInstructions/> <Recurrence> <b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b> <br/>Active all day <br/> <br/> </Recurrence> <RecurrenceSchedules> <Schedule> <StartDate>8/3/2022 9:48:00 AM-07:00:00</StartDate> <EndDate/> <Times> <Schedule> <StartTime>00:00:00-07:00:00</StartTime> <EndTime>23:59:59-07:00:00</EndTime> </Schedule> </Times> <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek> </Schedule> </RecurrenceSchedules> <EventSubType>bridgeMaintenance</EventSubType> <EncodedPolyline>csfkE|galTErJ?p@AbD?|CC~QArC?lC@nBAfJ@bD?|BBpD?d@BhAB`CRpLH~DDfCDfBBz@BpAFjDFbER`LFfENbINxHFnEJzK?d@BtIB~O@bBD|L@jB?l@?r@</EncodedPolyline> <Details/> <Severity>minor</Severity> </Event> </EventList>