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 |
EventSubType |
A more detailed and descriptive event type. No fixed list of sub types. |
string |
Details |
Event Details |
string |
Response Formats
JSON
[ { "ID": "RADS--mesaazgov-mTrac18986", "Organization": "RADS", "RoadwayName": "Gilbert", "DirectionOfTravel": "None", "Description": "3565 N Gilbert - Construction - Alternating northbound and southbound lane restrictions for MCDOT bridge rehab by Archer Western. TTCP Number: TTC22-03126", "Reported": 1672736400, "LastUpdated": 1675809906, "StartDate": 1672736400, "PlannedEndDate": 1682935140, "LanesAffected": "No Data", "Latitude": 33.47394, "Longitude": -111.787278, "LatitudeSecondary": 0.0, "LongitudeSecondary": 0.0, "EventType": "roadwork", "IsFullClosure": false, "Comment": null, "Restrictions": { "Width": null, "Height": null, "Length": null, "Weight": null, "Speed": null }, "DetourPolyline": "", "DetourInstructions": "", "Details": "" }, { "ID": "ERS--55341", "Organization": "ERS", "RoadwayName": "I-10", "DirectionOfTravel": "Westbound", "Description": "Construction zone on I-10 Westbound from W Salome Rd (MP 82) to W Salome Rd (MP 82)", "Reported": 1675697280, "LastUpdated": 1675701750, "StartDate": 1675697280, "PlannedEndDate": null, "LanesAffected": "No Data", "Latitude": 33.533522, "Longitude": -113.135739, "LatitudeSecondary": 33.536039, "LongitudeSecondary": -113.146879, "EventType": "roadwork", "IsFullClosure": false, "Comment": null, "Restrictions": { "Width": null, "Height": null, "Length": null, "Weight": null, "Speed": null }, "DetourPolyline": null, "DetourInstructions": null, "EventSubType": "roadConstruction", "Details": "" } ]
XML
<EventList> <Event> <ID>RADS--mesaazgov-mTrac18986</ID> <Organization>RADS</Organization> <RoadwayName>Gilbert</RoadwayName> <DirectionOfTravel>None</DirectionOfTravel> <Description>3565 N Gilbert - Construction - Alternating northbound and southbound lane restrictions for MCDOT bridge rehab by Archer Western. TTCP Number: TTC22-03126</Description> <Reported>1672736400</Reported> <LastUpdated>1675809906</LastUpdated> <StartDate>1672736400</StartDate> <PlannedEndDate>1682935140</PlannedEndDate> <LanesAffected>No Data</LanesAffected> <Latitude>33.47394</Latitude> <Longitude>-111.787278</Longitude> <LatitudeSecondary>0</LatitudeSecondary> <LongitudeSecondary>0</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Comment/> <Restrictions> <Width/> <Height/> <Length/> <Weight/> <Speed/> </Restrictions> <DetourPolyline/> <DetourInstructions/> <Details/> </Event> <Event> <ID>ERS--55341</ID> <Organization>ERS</Organization> <RoadwayName>I-10</RoadwayName> <DirectionOfTravel>Westbound</DirectionOfTravel> <Description>Construction zone on I-10 Westbound from W Salome Rd (MP 82) to W Salome Rd (MP 82)</Description> <Reported>1675697280</Reported> <LastUpdated>1675701750</LastUpdated> <StartDate>1675697280</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>33.533522</Latitude> <Longitude>-113.135739</Longitude> <LatitudeSecondary>33.536039</LatitudeSecondary> <LongitudeSecondary>-113.146879</LongitudeSecondary> <EventType>roadwork</EventType> <IsFullClosure>false</IsFullClosure> <Comment/> <Restrictions> <Width/> <Height/> <Length/> <Weight/> <Speed/> </Restrictions> <DetourPolyline/> <DetourInstructions/> <EventSubType>roadConstruction</EventSubType> <Details/> </Event> </EventList>