GET Events
Returns all traffic events.
Request Information
https://511.alberta.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 |
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 |
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 |
Details |
Event Details |
string |
Response Formats
JSON
[
{
"ID": 58,
"SourceId": "4841",
"Organization": "ERS",
"RoadwayName": "Premier Way",
"DirectionOfTravel": "West",
"Description": "Parade on Premier Way Westbound from Pitt Ave SW to Carleton St SW . ",
"Reported": 1697738820,
"LastUpdated": 1697220531,
"StartDate": 1697738820,
"PlannedEndDate": 1697743800,
"LanesAffected": "No Data",
"Latitude": 51.0255326069246,
"Longitude": -114.08658917176,
"LatitudeSecondary": 51.0263666029486,
"LongitudeSecondary": -114.091570338812,
"EventType": "specialEvents",
"EventSubType": "parade",
"IsFullClosure": false,
"Severity": "None",
"EncodedPolyline": "q|lvHdpiwT?JCrCOfBkA|K?X@L?^GJIDI\\m@dE",
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": "",
"DetourInstructions": "",
"Recurrence": "<b>Thu:</b><br/>Active 24 hours a day<br/><br/>",
"RecurrenceSchedules": [
{
"StartDate": "10/19/2023 12:07:00 PM-06:00:00",
"EndDate": "10/19/2023 1:30:00 PM-06:00:00",
"Times": [
{
"StartTime": "00:00:00-06:00:00",
"EndTime": "23:59:59-06:00:00"
}
],
"DaysOfWeek": [
"Thursday"
]
}
],
"Details": ""
},
{
"ID": 61,
"SourceId": "4898",
"Organization": "ERS",
"RoadwayName": "HWY-24",
"DirectionOfTravel": "South",
"Description": "General Information on HWY-24 Southbound near Railway Ave. Lane Blocked. Width Restriction: 1m Height Restriction: 2m Length Restriction: 3m Weight Restriction: 50kg Speed Restriction: 30km/hr Activities: Road Closed, Lane closure, Sidewalk closed, Use alternate route, One - lane alt traffic, Lane direction reversal, No passing, Speed reduction, Temp traffic signals, Rough road, Fresh oil, No centerline marking, Grooved pavement, Loose chips, Narrow lane, Narrow shoulder, Pavement drop-off, No wide loads, Height restriction, Flag persons, Pilot vehicles, Be prepared to stop, Traffic congestion, On site detour, Local road detour, Expect traffic delays, One lane travel, Ramp closed, Bridge closed, Two way traffic, Uneven pavement, Width restriction, Weight restriction, Treat as 4 way stop Visibility: Fog Additional Restrictions: Hazmat Prohibited, Escort Vehicle Required, DPS Escort Required, No Oversized Loads",
"Reported": 1697813400,
"LastUpdated": 1697814957,
"StartDate": 1697813400,
"PlannedEndDate": null,
"LanesAffected": "Lane Blocked",
"Latitude": 51.0209076170721,
"Longitude": -113.53989,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "generalInfo",
"EventSubType": "general",
"IsFullClosure": false,
"Severity": "Major",
"EncodedPolyline": null,
"Restrictions": {
"Width": 1.00,
"Height": 2.00,
"Length": 3.00,
"Weight": 50.00,
"Speed": 30.00
},
"DetourPolyline": "",
"DetourInstructions": "",
"Recurrence": "",
"RecurrenceSchedules": "",
"Details": ""
}
]
XML
<EventList>
<Event>
<ID>58</ID>
<SourceId>4841</SourceId>
<Organization>ERS</Organization>
<RoadwayName>Premier Way</RoadwayName>
<DirectionOfTravel>West</DirectionOfTravel>
<Description>Parade on Premier Way Westbound from Pitt Ave SW to Carleton St SW . </Description>
<Reported>1697738820</Reported>
<LastUpdated>1697220531</LastUpdated>
<StartDate>1697738820</StartDate>
<PlannedEndDate>1697743800</PlannedEndDate>
<LanesAffected>No Data</LanesAffected>
<Latitude>51.0255326069246</Latitude>
<Longitude>-114.08658917176</Longitude>
<LatitudeSecondary>51.0263666029486</LatitudeSecondary>
<LongitudeSecondary>-114.091570338812</LongitudeSecondary>
<EventType>specialEvents</EventType>
<EventSubType>parade</EventSubType>
<IsFullClosure>false</IsFullClosure>
<Severity>None</Severity>
<EncodedPolyline>q|lvHdpiwT?JCrCOfBkA|K?X@L?^GJIDI\m@dE</EncodedPolyline>
<Restrictions>
<Width />
<Height />
<Length />
<Weight />
<Speed />
</Restrictions>
<DetourPolyline></DetourPolyline>
<DetourInstructions></DetourInstructions>
<Recurrence><b>Thu:</b><br/>Active 24 hours a day<br/><br/></Recurrence>
<RecurrenceSchedules>
<Schedule>
<StartDate>10/19/2023 12:07:00 PM-06:00:00</StartDate>
<EndDate>10/19/2023 1:30:00 PM-06:00:00</EndDate>
<Times>
<Schedule>
<StartTime>00:00:00-06:00:00</StartTime>
<EndTime>23:59:59-06:00:00</EndTime>
</Schedule>
</Times>
<DaysOfWeek>Thursday</DaysOfWeek>
</Schedule>
</RecurrenceSchedules>
<Details></Details>
</Event>
<Event>
<ID>61</ID>
<SourceId>4898</SourceId>
<Organization>ERS</Organization>
<RoadwayName>HWY-24</RoadwayName>
<DirectionOfTravel>South</DirectionOfTravel>
<Description>General Information on HWY-24 Southbound near Railway Ave. Lane Blocked. Width Restriction: 1m Height Restriction: 2m Length Restriction: 3m Weight Restriction: 50kg Speed Restriction: 30km/hr Activities: Road Closed, Lane closure, Sidewalk closed, Use alternate route, One - lane alt traffic, Lane direction reversal, No passing, Speed reduction, Temp traffic signals, Rough road, Fresh oil, No centerline marking, Grooved pavement, Loose chips, Narrow lane, Narrow shoulder, Pavement drop-off, No wide loads, Height restriction, Flag persons, Pilot vehicles, Be prepared to stop, Traffic congestion, On site detour, Local road detour, Expect traffic delays, One lane travel, Ramp closed, Bridge closed, Two way traffic, Uneven pavement, Width restriction, Weight restriction, Treat as 4 way stop Visibility: Fog Additional Restrictions: Hazmat Prohibited, Escort Vehicle Required, DPS Escort Required, No Oversized Loads</Description>
<Reported>1697813400</Reported>
<LastUpdated>1697814957</LastUpdated>
<StartDate>1697813400</StartDate>
<PlannedEndDate />
<LanesAffected>Lane Blocked</LanesAffected>
<Latitude>51.0209076170721</Latitude>
<Longitude>-113.53989</Longitude>
<LatitudeSecondary />
<LongitudeSecondary />
<EventType>generalInfo</EventType>
<EventSubType>general</EventSubType>
<IsFullClosure>false</IsFullClosure>
<Severity>Major</Severity>
<EncodedPolyline />
<Restrictions>
<Width>1.00</Width>
<Height>2.00</Height>
<Length>3.00</Length>
<Weight>50.00</Weight>
<Speed>30.00</Speed>
</Restrictions>
<DetourPolyline></DetourPolyline>
<DetourInstructions></DetourInstructions>
<Recurrence></Recurrence>
<RecurrenceSchedules></RecurrenceSchedules>
<Details></Details>
</Event>
</EventList>