GET Events

Returns all traffic events.

Request Information

https://on.stage.traveliq.co/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.

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
IsFullClosure

True if all lanes are blocked for this event.

boolean
Comment

Extra information about the event

string
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
EventSubType

A more detailed and descriptive event type. No fixed list of sub types.

string
EncodedPolyline

A single string storing a series of coordinates. More information

string
LinkId

The link id on which this event occurs.

string

Response Formats

JSON

Sample:
[
	{
		"ID": "MTO--42128",
		"Organization": "MTO",
		"RoadwayName": "Highway 401",
		"DirectionOfTravel": "Westbound",
		"Description": "Construction on HWY 401 Westbound  between Furnival Rd / Elgin Rd 103, WEST LORNE and Victoria Road / Kent Road 17, RIDGETOWN. 1 Right Lane(s).",
		"Reported": 1693902600,
		"LastUpdated": 1693927992,
		"StartDate": 1693902600,
		"PlannedEndDate": 1694300400,
		"LanesAffected": "1 Right Lane(s)",
		"Latitude": 42.585457,
		"Longitude": -81.70653,
		"LatitudeSecondary": 0.0,
		"LongitudeSecondary": 0.0,
		"EventType": "roadwork",
		"IsFullClosure": false,
		"Recurrence": "",
		"RecurrenceSchedules": "",
		"LinkId": "1178566589",
		"Comment": "Detailed closure information is as follows: ALL DAYS: 1st Lane Closed at 04:30, 1st Lane Opened at 19:00;"
	},
	{
		"ID": "MTO--186184",
		"Organization": "MTO",
		"RoadwayName": "Highway 401",
		"DirectionOfTravel": "Westbound",
		"Description": "Construction on HWY 401 Westbound On-ramp at KENNEDY RD -SCARBOROUGH, Toronto. ALL LANES CLOSED.",
		"Reported": 1679968800,
		"LastUpdated": 1685572228,
		"StartDate": 1679968800,
		"PlannedEndDate": 1703239200,
		"LanesAffected": "ALL LANES CLOSED",
		"Latitude": 43.77495,
		"Longitude": -79.28458,
		"LatitudeSecondary": 0.0,
		"LongitudeSecondary": 0.0,
		"EventType": "roadwork",
		"IsFullClosure": false,
		"Recurrence": "",
		"RecurrenceSchedules": "",
		"LinkId": "32975603",
		"Comment": ""
	}
]

XML

Sample:
<EventList>
    <Event>
        <ID>MTO--42128</ID>
        <Organization>MTO</Organization>
        <RoadwayName>Highway 401</RoadwayName>
        <DirectionOfTravel>Westbound</DirectionOfTravel>
        <Description>Construction on HWY 401 Westbound between Furnival Rd / Elgin Rd 103, WEST LORNE and Victoria Road / Kent Road 17, RIDGETOWN. 1 Right Lane(s).</Description>
        <Reported>1693902600</Reported>
        <LastUpdated>1693927992</LastUpdated>
        <StartDate>1693902600</StartDate>
        <PlannedEndDate>1694300400</PlannedEndDate>
        <LanesAffected>1 Right Lane(s)</LanesAffected>
        <Latitude>42.585457</Latitude>
        <Longitude>-81.70653</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>roadwork</EventType>
        <IsFullClosure>false</IsFullClosure>
        <Recurrence/>
        <RecurrenceSchedules/>
        <LinkId>1178566589</LinkId>
        <Comment>Detailed closure information is as follows: ALL DAYS: 1st Lane Closed at 04:30, 1st Lane Opened at 19:00;</Comment>
    </Event>
    <Event>
        <ID>MTO--186184</ID>
        <Organization>MTO</Organization>
        <RoadwayName>Highway 401</RoadwayName>
        <DirectionOfTravel>Westbound</DirectionOfTravel>
        <Description>Construction on HWY 401 Westbound On-ramp at KENNEDY RD -SCARBOROUGH, Toronto. ALL LANES CLOSED.</Description>
        <Reported>1679968800</Reported>
        <LastUpdated>1685572228</LastUpdated>
        <StartDate>1679968800</StartDate>
        <PlannedEndDate>1703239200</PlannedEndDate>
        <LanesAffected>ALL LANES CLOSED</LanesAffected>
        <Latitude>43.77495</Latitude>
        <Longitude>-79.28458</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>roadwork</EventType>
        <IsFullClosure>false</IsFullClosure>
        <Recurrence/>
        <RecurrenceSchedules/>
        <LinkId>32975603</LinkId>
        <Comment/>
    </Event>
</EventList>