GET Events API Documentation

Returns all traffic events.

Request Information

https://511on.ca/api/v2/get/event

URI Parameters

URI Parameters
NameDescriptionTypeAdditional 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


Resource Description
NameDescriptionType
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
Impact

Describes how traffic is affected

string

Response Formats

JSON
Sample:
[
  {
    "ID": 1963,
    "SourceId": "222249",
    "Organization": "MTO",
    "RoadwayName": "HWY 401",
    "DirectionOfTravel": "Eastbound",
    "Description": "Construction on HWY 401 Eastbound Express between KENNEDY RD -MISSISSAUGA and HWY 403. 1 Alternating Lane(s).",
    "Reported": 1744084740,
    "LastUpdated": 1742491980,
    "StartDate": 1744084740,
    "PlannedEndDate": 1761296400,
    "LanesAffected": "1 Alternating Lane(s)",
    "Latitude": 43.63599,
    "Longitude": -79.668724,
    "LatitudeSecondary": null,
    "LongitudeSecondary": null,
    "EventType": "roadwork",
    "EventSubType": null,
    "IsFullClosure": false,
    "Severity": "Unknown",
    "Comment": "Detailed closure information is as follows: All days: 23:59-05:00",
    "EncodedPolyline": null,
    "Restrictions": {
      "Width": null,
      "Height": null,
      "Length": null,
      "Weight": null,
      "Speed": null
    },
    "Recurrence": "",
    "RecurrenceSchedules": "",
    "LinkId": null,
    "Impact": null
  },
  {
    "ID": 1968,
    "SourceId": "223565",
    "Organization": "MTO",
    "RoadwayName": "HWY 400",
    "DirectionOfTravel": "Southbound",
    "Description": "Nightly Closure-Construction on HWY 400 Southbound Express between BASS PRO MILLS DRIVE and HIGHWAY 7. 4 Alternating Lane(s).",
    "Reported": 1745802000,
    "LastUpdated": 1745448660,
    "StartDate": 1745802000,
    "PlannedEndDate": 1746262800,
    "LanesAffected": "4 Alternating Lane(s)",
    "Latitude": 43.82064,
    "Longitude": -79.5456,
    "LatitudeSecondary": null,
    "LongitudeSecondary": null,
    "EventType": "roadwork",
    "EventSubType": null,
    "IsFullClosure": false,
    "Severity": "Unknown",
    "Comment": "Detailed closure information is as follows: Sun-Thurs: 21:00-06:00, Some lanes may be open during this period. Fri: 21:00-08:00, Some lanes may be open during this period. Nearby ramps may be affected.",
    "EncodedPolyline": null,
    "Restrictions": {
      "Width": null,
      "Height": null,
      "Length": null,
      "Weight": null,
      "Speed": null
    },
    "Recurrence": "",
    "RecurrenceSchedules": "",
    "LinkId": null,
    "Impact": "On-ramp from BASS PRO MILLS DRIVE WB all lanes closed"
  }
]
XML
Sample:
<EventList>
    <Event>
        <ID>1963</ID>
        <SourceId>222249</SourceId>
        <Organization>MTO</Organization>
        <RoadwayName>HWY 401</RoadwayName>
        <DirectionOfTravel>Eastbound</DirectionOfTravel>
        <Description>Construction on HWY 401 Eastbound Express between KENNEDY RD -MISSISSAUGA and HWY 403. 1 Alternating Lane(s).</Description>
        <Reported>1744084740</Reported>
        <LastUpdated>1742491980</LastUpdated>
        <StartDate>1744084740</StartDate>
        <PlannedEndDate>1761296400</PlannedEndDate>
        <LanesAffected>1 Alternating Lane(s)</LanesAffected>
        <Latitude>43.63599</Latitude>
        <Longitude>-79.668724</Longitude>
        <LatitudeSecondary/>
        <LongitudeSecondary/>
        <EventType>roadwork</EventType>
        <EventSubType/>
        <IsFullClosure>false</IsFullClosure>
        <Severity>Unknown</Severity>
        <Comment>Detailed closure information is as follows: All days: 23:59-05:00<Comment>
        <EncodedPolyline/>
        <Restrictions>
            <Width/>
            <Height/>
            <Length/>
            <Weight/>
            <Speed/>
        </Restrictions>
        <Recurrence/>
        <RecurrenceSchedules/>
        <LinkId/>
        <Impact/>
    </Event>
    <Event>
        <ID>1968</ID>
        <SourceId>223565</SourceId>
        <Organization>MTO</Organization>
        <RoadwayName>HWY 400</RoadwayName>
        <DirectionOfTravel>Southbound</DirectionOfTravel>
        <Description>Nightly Closure-Construction on HWY 400 Southbound Express between BASS PRO MILLS DRIVE and HIGHWAY 7. 4 Alternating Lane(s).</Description>
        <Reported>1745802000</Reported>
        <LastUpdated>1745448660</LastUpdated>
        <StartDate>1745802000</StartDate>
        <PlannedEndDate>1746262800</PlannedEndDate>
        <LanesAffected>4 Alternating Lane(s)</LanesAffected>
        <Latitude>43.82064</Latitude>
        <Longitude>-79.5456</Longitude>
        <LatitudeSecondary/>
        <LongitudeSecondary/>
        <EventType>roadwork</EventType>
        <EventSubType/>
        <IsFullClosure>false</IsFullClosure>
        <Severity>Unknown</Severity>
        <Comment>Detailed closure information is as follows: Sun-Thurs: 21:00-06:00, Some lanes may be open during this period. Fri: 21:00-08:00, Some lanes may be open during this period. Nearby ramps may be affected.</Comment/>
        <EncodedPolyline/>
        <Restrictions>
            <Width/>
            <Height/>
            <Length/>
            <Weight/>
            <Speed/>
        </Restrictions>
        <Recurrence/>
        <RecurrenceSchedules/>
        <LinkId/>
        <Impact>On-ramp from BASS PRO MILLS DRIVE WB all lanes closed</Impacts>
    </Event>
</EventList>