GET Events

Returns all traffic events.

Request Information

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

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

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
Restrictions

Different types of restriction: Width (metres), Height (metres), Weight (tonnes) and Speed (km/h).

list
DetourPolyline

Google Encoded Polyline for the detour

string
DetourInstructions

Turn by turn instructions for the detour

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
Details

Event Details

string

Response Formats

JSON

Sample:
[
	{
		"ID": "ERS--750",
		"Organization": "ERS",
		"RoadwayName": "River Dr",
		"DirectionOfTravel": "Eastbound",
		"Description": "Blasting on River Dr Eastbound near Rowlinson Dr.    3/28/2023 10:46 AM  Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day ",
		"Reported": 1680021960,
		"LastUpdated": 1678812567,
		"StartDate": 1680021960,
		"PlannedEndDate": null,
		"LanesAffected": "No Data",
		"Latitude": 62.091963,
		"Longitude": -136.297391,
		"LatitudeSecondary": 0.0,
		"LongitudeSecondary": 0.0,
		"EventType": "roadwork",
		"IsFullClosure": false,
		"Restrictions": {
			"Width": null,
			"Height": null,
			"Length": null,
			"Weight": null,
			"Speed": null
		},
		"DetourPolyline": "sg~yJdl{~XZkAx@eD",
		"DetourInstructions": [
			"Head southeast on River Dr. Go for 79 m.",
			"Arrive at River Dr."
		],
		"Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active all day<br/><br/>",
		"RecurrenceSchedules": [
			{
				"StartDate": "3/28/2023 10:46:00 AM-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"
				]
			}
		],
		"EventSubType": "blasting",
		"Details": "Blasting on River Dr Eastbound near Rowlinson Dr"
	},
	{
		"ID": "ERS--757",
		"Organization": "ERS",
		"RoadwayName": "Alaska Hwy",
		"DirectionOfTravel": "Both Directions",
		"Description": "Filming on Alaska Hwy Both Directions from Little Rancheria Bridge (km 1066) to Big Creek Bridge (km 1066). All Lanes Closed.    3/15/2023 11:38 AM  Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day ",
		"Reported": 1678901880,
		"LastUpdated": 1678901962,
		"StartDate": 1678901880,
		"PlannedEndDate": null,
		"LanesAffected": "All Lanes Closed",
		"Latitude": 60.195212,
		"Longitude": -130.118977,
		"LatitudeSecondary": 60.195041,
		"LongitudeSecondary": -130.119528,
		"EventType": "closures",
		"IsFullClosure": true,
		"Restrictions": {
			"Width": null,
			"Height": null,
			"Length": null,
			"Weight": null,
			"Speed": null
		},
		"DetourPolyline": null,
		"DetourInstructions": [
			"Head southwest on Alaska Hwy (HWY-1). Go for 36 m.",
			"Arrive at Alaska Hwy (HWY-1)."
		],
		"Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active all day<br/><br/>",
		"RecurrenceSchedules": [
			{
				"StartDate": "3/15/2023 11:38:00 AM-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"
				]
			}
		],
		"EventSubType": "filming",
		"Details": null
	}
]

XML

Sample:
<EventList>
    <Event>
        <ID>ERS--750</ID>
        <Organization>ERS</Organization>
        <RoadwayName>River Dr</RoadwayName>
        <DirectionOfTravel>Eastbound</DirectionOfTravel>
        <Description>Blasting on River Dr Eastbound near Rowlinson Dr. 3/28/2023 10:46 AM Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day </Description>
        <Reported>1680021960</Reported>
        <LastUpdated>1678812567</LastUpdated>
        <StartDate>1680021960</StartDate>
        <PlannedEndDate/>
        <LanesAffected>No Data</LanesAffected>
        <Latitude>62.091963</Latitude>
        <Longitude>-136.297391</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>roadwork</EventType>
        <IsFullClosure>false</IsFullClosure>
        <Restrictions>
            <Width/>
            <Height/>
            <Length/>
            <Weight/>
            <Speed/>
        </Restrictions>
        <DetourPolyline>sg~yJdl{~XZkAx@eD</DetourPolyline>
        <DetourInstructions>Head southeast on River Dr. Go for 79 m. Arrive at River Dr.</DetourInstructions>
        <Recurrence>
            <b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b>
            <br/>Active all day
            
            <br/>
            <br/>
        </Recurrence>
        <RecurrenceSchedules>
            <Schedule>
                <StartDate>3/28/2023 10:46:00 AM-07:00:00</StartDate>
                <EndDate/>
                <Times>
                    <Schedule>
                        <StartTime>00:00:00-07:00:00</StartTime>
                        <EndTime>23:59:59-07:00:00</EndTime>
                    </Schedule>
                </Times>
                <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek>
            </Schedule>
        </RecurrenceSchedules>
        <EventSubType>blasting</EventSubType>
        <Details>Blasting on River Dr Eastbound near Rowlinson Dr</Details>
    </Event>
    <Event>
        <ID>ERS--757</ID>
        <Organization>ERS</Organization>
        <RoadwayName>Alaska Hwy</RoadwayName>
        <DirectionOfTravel>Both Directions</DirectionOfTravel>
        <Description>Filming on Alaska Hwy Both Directions from Little Rancheria Bridge (km 1066) to Big Creek Bridge (km 1066). All Lanes Closed. 3/15/2023 11:38 AM Mon, Tue, Wed, Thu, Fri, Sat, Sun: Active all day </Description>
        <Reported>1678901880</Reported>
        <LastUpdated>1678901962</LastUpdated>
        <StartDate>1678901880</StartDate>
        <PlannedEndDate/>
        <LanesAffected>All Lanes Closed</LanesAffected>
        <Latitude>60.195212</Latitude>
        <Longitude>-130.118977</Longitude>
        <LatitudeSecondary>60.195041</LatitudeSecondary>
        <LongitudeSecondary>-130.119528</LongitudeSecondary>
        <EventType>closures</EventType>
        <IsFullClosure>true</IsFullClosure>
        <Restrictions>
            <Width/>
            <Height/>
            <Length/>
            <Weight/>
            <Speed/>
        </Restrictions>
        <DetourPolyline/>
        <DetourInstructions>Head southwest on Alaska Hwy (HWY-1). Go for 36 m. Arrive at Alaska Hwy (HWY-1).</DetourInstructions>
        <Recurrence>
            <b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b>
            <br/>Active all day
                
            <br/>
            <br/>
        </Recurrence>
        <RecurrenceSchedules>
            <Schedule>
                <StartDate>3/15/2023 11:38:00 AM-07:00:00</StartDate>
                <EndDate/>
                <Times>
                    <Schedule>
                        <StartTime>00:00:00-07:00:00</StartTime>
                        <EndTime>23:59:59-07:00:00</EndTime>
                    </Schedule>
                </Times>
                <DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek>
            </Schedule>
        </RecurrenceSchedules>
        <EventSubType>filming</EventSubType>
        <Details/>
    </Event>
</EventList>