GET Events

Returns all traffic events.

Request Information

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

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


NameDescriptionType
ID

A unique identifier.

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
LinkId

The link id on which this event occurs.

string
Comment

Extra information about the event

string

Response Formats

JSON

Sample:
[
	{
		"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",
		"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. 1 Alternating Lane(s).",
		"Reported": 1580756400,
		"LastUpdated": 1580399225,
		"StartDate": 1580756400,
		"PlannedEndDate": 1581123600,
		"LanesAffected": "1 Alternating Lane(s)",
		"Latitude": 44.422604,
		"Longitude": -79.65403,
		"LatitudeSecondary": 0,
		"LongitudeSecondary": 0,
		"EventType": "roadwork",
		"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;"
	}
]

XML

Sample:
<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>
		<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. 1 Alternating Lane(s).
		</Description>
		<Reported>1580756400</Reported>
		<LastUpdated>1580399225</LastUpdated>
		<StartDate>1580756400</StartDate>
		<PlannedEndDate>1581123600</PlannedEndDate>
		<LanesAffected>1 Alternating Lane(s)</LanesAffected>
		<Latitude>44.422604</Latitude>
		<Longitude>-79.65403</Longitude>
		<LatitudeSecondary>0</LatitudeSecondary>
		<LongitudeSecondary>0</LongitudeSecondary>
		<EventType>roadwork</EventType>
		<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>