GET Events
Returns all traffic events.
Request Information
https://511on.ca/api/v2/get/event
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
format |
Valid values are 'xml' or 'json', default 'json'. |
string |
Optional |
lang |
Valid values are 'en' or 'fr', default 'en'. |
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 |
LinkId |
The link id on which this event occurs. |
string |
Response Formats
JSON
[
{
"ID": 21,
"SourceId": "221183",
"Organization": "MTO",
"RoadwayName": "QEW",
"DirectionOfTravel": "Outbound",
"Description": "Recurring-Construction on QEW Fort Erie Bound between HWY 10/HURONTARIO and MISSISSAUGA ROAD, Mississauga. 2 Alternating Lane(s).",
"Reported": 1739246400,
"LastUpdated": 1738965180,
"StartDate": 1739246400,
"PlannedEndDate": 1741773600,
"LanesAffected": "2 Alternating Lane(s)",
"Latitude": 43.568066,
"Longitude": -79.6,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "roadwork",
"EventSubType": null,
"IsFullClosure": false,
"Severity": "Unknown",
"Comment": "",
"EncodedPolyline": null,
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"Recurrence": "",
"RecurrenceSchedules": "",
"LinkId": "959561339"
},
{
"ID": 51,
"SourceId": "219292",
"Organization": "MTO",
"RoadwayName": "HWY 401",
"DirectionOfTravel": "Eastbound",
"Description": "Construction on HWY 401 Eastbound On-ramp between LESLIE STREET, Toronto and , . ALL LANES CLOSED.",
"Reported": 1710727200,
"LastUpdated": 1733243460,
"StartDate": 1710727200,
"PlannedEndDate": 1767175200,
"LanesAffected": "ALL LANES CLOSED",
"Latitude": 43.766285,
"Longitude": -79.36286,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "roadwork",
"EventSubType": null,
"IsFullClosure": false,
"Severity": "Unknown",
"Comment": "",
"EncodedPolyline": null,
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"Recurrence": "",
"RecurrenceSchedules": "",
"LinkId": "1276304419"
}
]
XML
<EventList>
<Event>
<ID>21</ID>
<SourceId>221183</SourceId>
<Organization>MTO</Organization>
<RoadwayName>QEW</RoadwayName>
<DirectionOfTravel>Outbound</DirectionOfTravel>
<Description>Recurring-Construction on QEW Fort Erie Bound between HWY 10/HURONTARIO and MISSISSAUGA ROAD, Mississauga. 2 Alternating Lane(s).</Description>
<Reported>1739246400</Reported>
<LastUpdated>1738965180</LastUpdated>
<StartDate>1739246400</StartDate>
<PlannedEndDate>1741773600</PlannedEndDate>
<LanesAffected>2 Alternating Lane(s)</LanesAffected>
<Latitude>43.568066</Latitude>
<Longitude>-79.6</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>roadwork</EventType>
<EventSubType/>
<IsFullClosure>false</IsFullClosure>
<Severity>Unknown</Severity>
<Comment/>
<EncodedPolyline/>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<Recurrence/>
<RecurrenceSchedules/>
<LinkId>959561339</LinkId>
</Event>
<Event>
<ID>51</ID>
<SourceId>219292</SourceId>
<Organization>MTO</Organization>
<RoadwayName>HWY 401</RoadwayName>
<DirectionOfTravel>Eastbound</DirectionOfTravel>
<Description>Construction on HWY 401 Eastbound On-ramp between LESLIE STREET, Toronto and , . ALL LANES CLOSED.</Description>
<Reported>1710727200</Reported>
<LastUpdated>1733243460</LastUpdated>
<StartDate>1710727200</StartDate>
<PlannedEndDate>1767175200</PlannedEndDate>
<LanesAffected>ALL LANES CLOSED</LanesAffected>
<Latitude>43.766285</Latitude>
<Longitude>-79.36286</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>roadwork</EventType>
<EventSubType/>
<IsFullClosure>false</IsFullClosure>
<Severity>Unknown</Severity>
<Comment/>
<EncodedPolyline/>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<Recurrence/>
<RecurrenceSchedules/>
<LinkId>1276304419</LinkId>
</Event>
</EventList>