GET Events
Returns all traffic events.
Request Information
http://ctroads.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. |
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 with default value of Unknown. |
string |
Comment |
Extra information about 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 |
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 |
Response Formats
JSON
[
{
"ID": 17,
"SourceId": "-40225043",
"Organization": "ConnDOT",
"RoadwayName": "I-84",
"DirectionOfTravel": "Eastbound",
"Description": "E. HARTFORD - Road Work on I-84 Eastbound between Exits 59 and 63 (5.2 miles) in effect today until 4:00 pm.",
"Reported": 1743598430,
"LastUpdated": 1743598430,
"StartDate": 1743598430,
"PlannedEndDate": null,
"LanesAffected": "No Data",
"Latitude": 41.771723,
"Longitude": -72.598533,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "roadwork",
"EventSubType": "Planned",
"IsFullClosure": false,
"Severity": "major",
"Comment": null,
"EncodedPolyline": null,
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"Recurrence": "",
"RecurrenceSchedules": ""
},
{
"ID": 18,
"SourceId": "-40225038",
"Organization": "ConnDOT",
"RoadwayName": "I-384",
"DirectionOfTravel": "Westbound",
"Description": "BOLTON - Road Work on I-384 Westbound between Exits 8 and 1A (7.5 miles) in effect today until 3:30 pm.",
"Reported": 1743592896,
"LastUpdated": 1743592896,
"StartDate": 1743592896,
"PlannedEndDate": null,
"LanesAffected": "No Data",
"Latitude": 41.787717,
"Longitude": -72.452094,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "roadwork",
"EventSubType": "Planned",
"IsFullClosure": false,
"Severity": "major",
"Comment": null,
"EncodedPolyline": null,
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"Recurrence": "",
"RecurrenceSchedules": ""
}
]
XML
<EventList>
<Event>
<ID>17</ID>
<SourceId>-40225043</SourceId>
<Organization>ConnDOT</Organization>
<RoadwayName>I-84</RoadwayName>
<DirectionOfTravel>Eastbound</DirectionOfTravel>
<Description>E. HARTFORD - Road Work on I-84 Eastbound between Exits 59 and 63 (5.2 miles) in effect today until 4:00 pm.</Description>
<Reported>1743598430</Reported>
<LastUpdated>1743598430</LastUpdated>
<StartDate>1743598430</StartDate>
<PlannedEndDate/>
<LanesAffected>No Data</LanesAffected>
<Latitude>41.771723</Latitude>
<Longitude>-72.598533</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>roadwork</EventType>
<EventSubType>Planned</EventSubType>
<IsFullClosure>false</IsFullClosure>
<Severity>major</Severity>
<Comment/>
<EncodedPolyline/>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<Recurrence/>
<RecurrenceSchedules/>
</Event>
<Event>
<ID>18</ID>
<SourceId>-40225038</SourceId>
<Organization>ConnDOT</Organization>
<RoadwayName>I-384</RoadwayName>
<DirectionOfTravel>Westbound</DirectionOfTravel>
<Description>BOLTON - Road Work on I-384 Westbound between Exits 8 and 1A (7.5 miles) in effect today until 3:30 pm.</Description>
<Reported>1743592896</Reported>
<LastUpdated>1743592896</LastUpdated>
<StartDate>1743592896</StartDate>
<PlannedEndDate/>
<LanesAffected>No Data</LanesAffected>
<Latitude>41.787717</Latitude>
<Longitude>-72.452094</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>roadwork</EventType>
<EventSubType>Planned</EventSubType>
<IsFullClosure>false</IsFullClosure>
<Severity>major</Severity>
<Comment/>
<EncodedPolyline/>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<Recurrence/>
<RecurrenceSchedules/>
</Event>
</EventList>