GET Events
Returns all traffic events.
Request Information
https://511ny.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 |
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 |
County |
The name of the county. |
string |
State |
|
string |
Response Formats
JSON
[
{
"ID": "MTO--125020",
"Organization": "MTO",
"RoadwayName": "Highway 400",
"DirectionOfTravel": "Southbound",
"Description": "Recurring-Maintenance on HWY 400 Southbound between SEVERN RIVER BRIDGE and HWY 11 JCT. 1 Alternating Lane(s).",
"Reported": 1580756400,
"LastUpdated": 1580399529,
"StartDate": 1580756400,
"PlannedEndDate": 1581123600,
"LanesAffected": "1 Alternating Lane(s)",
"Latitude": 44.79979,
"Longitude": -79.722084,
"LatitudeSecondary": 0,
"LongitudeSecondary": 0,
"EventType": "roadwork",
"IsFullClosure": false,
"LinkId": "33838518",
"Comment": "Detailed closure information is as follows: MON: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; TUE: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; WED: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; THU: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; FRI: 1st Lane Closed at 09:00, 1st Lane Opened at 12:00;"
},
{
"ID": "MTO--125019",
"Organization": "MTO",
"RoadwayName": "Highway 11",
"DirectionOfTravel": "Northbound",
"Description": "Recurring-Maintenance on HWY 11 Northbound between HWY 400 and TOWNLINE ROAD 12-13. All lanes closed.",
"Reported": 1580756400,
"LastUpdated": 1580399225,
"StartDate": 1580756400,
"PlannedEndDate": 1581123600,
"LanesAffected": "All lanes closed",
"Latitude": 44.422604,
"Longitude": -79.65403,
"LatitudeSecondary": 0,
"LongitudeSecondary": 0,
"EventType": "closures",
"IsFullClosure": true,
"LinkId": "881201907",
"Comment": "Detailed closure information is as follows: MON: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; TUE: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; WED: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; THU: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; FRI: 1st Lane Closed at 09:00, 1st Lane Opened at 12:00;"
"RecurrenceSchedules": [
{
"StartDate": "12/23/2022 1:59:00 PM-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"
]
}
],
}
]
XML
<EventList>
<Event>
<ID>MTO--125020</ID>
<Organization>MTO</Organization>
<RoadwayName>Highway 400</RoadwayName>
<DirectionOfTravel>Southbound</DirectionOfTravel>
<Description>
Recurring-Maintenance on HWY 400 Southbound between SEVERN RIVER BRIDGE and HWY 11 JCT. 1 Alternating Lane(s).
</Description>
<Reported>1580756400</Reported>
<LastUpdated>1580399529</LastUpdated>
<StartDate>1580756400</StartDate>
<PlannedEndDate>1581123600</PlannedEndDate>
<LanesAffected>1 Alternating Lane(s)</LanesAffected>
<Latitude>44.79979</Latitude>
<Longitude>-79.722084</Longitude>
<LatitudeSecondary>0</LatitudeSecondary>
<LongitudeSecondary>0</LongitudeSecondary>
<EventType>roadwork</EventType>
<IsFullClosure>false</IsFullClosure>
<LinkId>33838518</LinkId>
<Comment>
Detailed closure information is as follows: MON: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; TUE: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; WED: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; THU: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; FRI: 1st Lane Closed at 09:00, 1st Lane Opened at 12:00;
</Comment>
</Event>
<Event>
<ID>MTO--125019</ID>
<Organization>MTO</Organization>
<RoadwayName>Highway 11</RoadwayName>
<DirectionOfTravel>Northbound</DirectionOfTravel>
<Description>
Recurring-Maintenance on HWY 11 Northbound between HWY 400 and TOWNLINE ROAD 12-13. All lanes closed.
</Description>
<Reported>1580756400</Reported>
<LastUpdated>1580399225</LastUpdated>
<StartDate>1580756400</StartDate>
<PlannedEndDate>1581123600</PlannedEndDate>
<LanesAffected>All lanes closed</LanesAffected>
<Latitude>44.422604</Latitude>
<Longitude>-79.65403</Longitude>
<LatitudeSecondary>0</LatitudeSecondary>
<LongitudeSecondary>0</LongitudeSecondary>
<EventType>closures</EventType>
<IsFullClosure>true</IsFullClosure>
<LinkId>881201907</LinkId>
<Comment>
Detailed closure information is as follows: MON: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; TUE: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; WED: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; THU: 1st Lane Closed at 09:00, 1st Lane Opened at 15:00; FRI: 1st Lane Closed at 09:00, 1st Lane Opened at 12:00;
</Comment>
</Event>
</EventList>