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. |
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 |
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 |
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 |
Details |
Event Details |
string |
LaneCount |
The number of lanes on the affected road |
integer |
Response Formats
JSON
[
{
"ID": 2,
"SourceId": "347507",
"Organization": "Tucson",
"RoadwayName": "AJO WASH BRIDGE CLOSURE, AJO ARIZONA, TUESDAY, MARCH 26",
"DirectionOfTravel": null,
"Description": "AJO WASH BRIDGE CLOSURE, AJO ARIZONA, TUESDAY, MARCH 26 - Traffic control devices and signage are on-site. Please approach the area with caution and obey all traffic control devices.",
"Reported": 1711350000,
"LastUpdated": 1711403411,
"StartDate": 1711350000,
"PlannedEndDate": 1830236400,
"LanesAffected": "No Data",
"Latitude": 32.373894,
"Longitude": -112.866019,
"LatitudeSecondary": 32.37308,
"LongitudeSecondary": -112.865976,
"EventType": "roadwork",
"EventSubType": null,
"IsFullClosure": false,
"Severity": "",
"EncodedPolyline": "wzqdElc{oTaDH",
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": "",
"DetourInstructions": "",
"Recurrence": "",
"RecurrenceSchedules": "",
"Details": "",
"LaneCount": null
},
{
"ID": 3,
"SourceId": "359004",
"Organization": "Tucson",
"RoadwayName": "TWIN PEAKS ROAD, RATTLESNAKE PASS WIDENING PROJECT",
"DirectionOfTravel": null,
"Description": "TWIN PEAKS ROAD, RATTLESNAKE PASS WIDENING PROJECT - The speed limit will be reduced for the duration of the project. Watch for message boards in advance of traffic changes.",
"Reported": 1721026800,
"LastUpdated": 1720807312,
"StartDate": 1721026800,
"PlannedEndDate": 1788159600,
"LanesAffected": "No Data",
"Latitude": 32.380865,
"Longitude": -111.169412,
"LatitudeSecondary": 32.377459,
"LongitudeSecondary": -111.146903,
"EventType": "roadwork",
"EventSubType": null,
"IsFullClosure": false,
"Severity": "",
"EncodedPolyline": "sksdExwoeTAoG",
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": "",
"DetourInstructions": "",
"Recurrence": "",
"RecurrenceSchedules": "",
"Details": "",
"LaneCount": null
}
]
XML
<EventList>
<Event>
<ID>2</ID>
<SourceId>347507</SourceId>
<Organization>Tucson</Organization>
<RoadwayName>AJO WASH BRIDGE CLOSURE, AJO ARIZONA, TUESDAY, MARCH 26</RoadwayName>
<DirectionOfTravel/>
<Description>AJO WASH BRIDGE CLOSURE, AJO ARIZONA, TUESDAY, MARCH 26 - Traffic control devices and signage are on-site. Please approach the area with caution and obey all traffic control devices.</Description>
<Reported>1711350000</Reported>
<LastUpdated>1711403411</LastUpdated>
<StartDate>1711350000</StartDate>
<PlannedEndDate>1830236400</PlannedEndDate>
<LanesAffected>No Data</LanesAffected>
<Latitude>32.373894</Latitude>
<Longitude>-112.866019</Longitude>
<LatitudeSecondary>32.37308</LatitudeSecondary>
<LongitudeSecondary>-112.865976</LongitudeSecondary>
<EventType>roadwork</EventType>
<EventSubType/>
<IsFullClosure>false</IsFullClosure>
<Severity/>
<EncodedPolyline>wzqdElc{oTaDH</EncodedPolyline>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<DetourPolyline/>
<DetourInstructions/>
<Recurrence/>
<RecurrenceSchedules/>
<Details/>
<LaneCount/>
</Event>
<Event>
<ID>3</ID>
<SourceId>359004</SourceId>
<Organization>Tucson</Organization>
<RoadwayName>TWIN PEAKS ROAD, RATTLESNAKE PASS WIDENING PROJECT</RoadwayName>
<DirectionOfTravel/>
<Description>TWIN PEAKS ROAD, RATTLESNAKE PASS WIDENING PROJECT - The speed limit will be reduced for the duration of the project. Watch for message boards in advance of traffic changes.</Description>
<Reported>1721026800</Reported>
<LastUpdated>1720807312</LastUpdated>
<StartDate>1721026800</StartDate>
<PlannedEndDate>1788159600</PlannedEndDate>
<LanesAffected>No Data</LanesAffected>
<Latitude>32.380865</Latitude>
<Longitude>-111.169412</Longitude>
<LatitudeSecondary>32.377459</LatitudeSecondary>
<LongitudeSecondary>-111.146903</LongitudeSecondary>
<EventType>roadwork</EventType>
<EventSubType/>
<IsFullClosure>false</IsFullClosure>
<Severity/>
<EncodedPolyline>sksdExwoeTAoG</EncodedPolyline>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<DetourPolyline/>
<DetourInstructions/>
<Recurrence/>
<RecurrenceSchedules/>
<Details/>
<LaneCount/>
</Event>
</EventList>