Note: Please enter all relevant restriction and permit information for every event.

GET Events

Returns all traffic events.

Request Information

https://az511.com/api/v2/get/event

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

format

Valid values are 'xml' or 'json', default 'json'.

string

Optional

Response Information

Resource Description


Resource Description
NameDescriptionType
ID

A unique identifier.

integer
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

Sample:
[
	{
		"ID": "1",
		"Organization": "Tucson",
		"RoadwayName": "BRIDGE IMPROVEMENT PROJECT",
		"DirectionOfTravel": null,
		"Description": "BRIDGE IMPROVEMENT PROJECT - SILVERBELL ROAD BRIDGE OVER THE BLANCO WASH - Due to the work entailed in the project, the bridge will be closed throughout the project. The traveling public is asked to seek alternative routes.",
		"Reported": 1702278000,
		"LastUpdated": 1701732055,
		"StartDate": 1702278000,
		"PlannedEndDate": 1738306800,
		"LanesAffected": "No Data",
		"Latitude": 32.466901,
		"Longitude": -111.337274,
		"LatitudeSecondary": null,
		"LongitudeSecondary": null,
		"EventType": "roadwork",
        "EventSubType":null,
		"IsFullClosure": false,
        "Severity":"",
        "EncodedPolyline":"epraEfdpdTCtSEpC"
		"Restrictions": {
			"Width": null,
			"Height": null,
			"Length": null,
			"Weight": null,
			"Speed": null
		},
		"DetourPolyline": "",
		"DetourInstructions": "",
		"Recurrence": "",
		"RecurrenceSchedules": "",
        "Details":"",
        "LaneCount":null
	},
	{
		"ID": "2",
		"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": 11711403411,
		"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":"epraEfdpdTCtSEpC"
		"Restrictions": {
			"Width": null,
			"Height": null,
			"Length": null,
			"Weight": null,
			"Speed": null
		},
		"DetourPolyline": "",
		"DetourInstructions": "",
		"Recurrence": "",
		"RecurrenceSchedules": "",
        "Details":"",
        "LaneCount":null
	}
]

XML

Sample:
<EventList>
    <Event>
        <ID>1</ID>
        <Organization>Tucson</Organization>
        <RoadwayName>BRIDGE IMPROVEMENT PROJECT</RoadwayName>
        <DirectionOfTravel/>
        <Description>BRIDGE IMPROVEMENT PROJECT - SILVERBELL ROAD BRIDGE OVER THE BLANCO WASH - Due to the work entailed in the project, the bridge will be closed throughout the project. The traveling public is asked to seek alternative routes.</Description>
        <Reported>1702278000</Reported>
        <LastUpdated>1701732055</LastUpdated>
        <StartDate>1702278000</StartDate>
        <PlannedEndDate>1738306800</PlannedEndDate>
        <LanesAffected>No Data</LanesAffected>
        <Latitude>32.466901</Latitude>
		<Longitude>-111.337274</Longitude>
		<LatitudeSecondary/>
		<LongitudeSecondary/>
		<EventType>roadwork</EventType>
		<EventSubType/>
		<IsFullClosure>false</IsFullClosure>
		<Severity/>
		<EncodedPolyline>epraEfdpdTCtSEpC</EncodedPolyline>
        <Restrictions>
            <Width/>
            <Height/>
            <Length/>
            <Weight/>
            <Speed/>
        </Restrictions>
        <DetourPolyline/>
		<DetourInstructions/>
		<Recurrence/>
		<RecurrenceSchedules/>
		<Details/>
		<LaneCount/>
    </Event>
    <Event>
        <ID>2</ID>
        <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>epraEfdpdTCtSEpC</EncodedPolyline>
		<Restrictions>
		<Width/>
		<Height/>
		<Length/>
		<Weight/>
		<Speed/>
		</Restrictions>
		<DetourPolyline/>
		<DetourInstructions/>
		<Recurrence/>
		<RecurrenceSchedules/>
		<Details/>
		<LaneCount/>
    </Event>
</EventList>