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 |
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": "ERS--4883",
"Organization": "ERS",
"RoadwayName": "HWY-49",
"DirectionOfTravel": "Eastbound",
"Description": "Marathon on HWY-49 Eastbound near Township Road 720. ",
"Reported": 1697720880,
"LastUpdated": 1697720526,
"StartDate": 1697720880,
"PlannedEndDate": null,
"LanesAffected": "No Data",
"Latitude": 55.222896,
"Longitude": -117.231872,
"LatitudeSecondary": 0,
"LongitudeSecondary": 0,
"EventType": "specialEvents",
"IsFullClosure": false,
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": null,
"DetourInstructions": null,
"Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active 24 hours a day<br/><br/>",
"RecurrenceSchedules": [
{
"StartDate": "10/19/2023 7:08:00 AM-06:00:00",
"EndDate": null,
"Times": [
{
"StartTime": "00:00:00-06:00:00",
"EndTime": "23:59:59-06:00:00"
}
],
"DaysOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
]
}
],
"EventSubType": "marathon",
"EncodedPolyline": "",
"Details": ""
},
{
"ID": "ERS--4878",
"Organization": "ERS",
"RoadwayName": "KKK",
"DirectionOfTravel": "Westbound",
"Description": "Parade on KKK Westbound from 400 m East of GGG to 530 m West of SSS . All Lanes Blocked. ",
"Reported": 1697654280,
"LastUpdated": 1697730172,
"StartDate": 1697654280,
"PlannedEndDate": null,
"LanesAffected": "All lanes blocked",
"Latitude": 53.26511,
"Longitude": -113.580516,
"LatitudeSecondary": 53.265103,
"LongitudeSecondary": -113.584475,
"EventType": "specialEvents",
"IsFullClosure": false,
"Restrictions": {
"Width": null,
"Height": null,
"Length": null,
"Weight": null,
"Speed": null
},
"DetourPolyline": "}ibdIfuftT?lJ@vP?^A~BiD@DaD@eBGkBOu@Gs@?_FAgAB[??JYj@k@F]LgCJaJX}DBo@Cm@M[MMGMU_BhCKC|AAfB@pF?|S@hL",
"DetourInstructions": [
"Head west on 50 Ave (HWY-39). Go for 369 m.",
"Turn right onto Grant MacEwan Blvd. Go for 94 m.",
"Turn right onto Ravine Vls. Go for 651 m.",
"Turn right onto Bridgeport Xing. Go for 77 m.",
"Turn right onto 50 Ave (HWY-39). Go for 517 m.",
"Arrive at 50 Ave (HWY-39)."
],
"Recurrence": "<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b><br/>Active 24 hours a day<br/><br/>",
"RecurrenceSchedules": [
{
"StartDate": "10/18/2023 12:38:00 PM-06:00:00",
"EndDate": null,
"Times": [
{
"StartTime": "00:00:00-06:00:00",
"EndTime": "23:59:59-06:00:00"
}
],
"DaysOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
]
}
],
"EventSubType": "parade",
"EncodedPolyline": "}ibdIfuftT?lJ@fL",
"Details": ""
}
]
XML
<EventList>
<Event>
<ID>ERS--4883</ID>
<Organization>ERS</Organization>
<RoadwayName>HWY-49</RoadwayName>
<DirectionOfTravel>Eastbound</DirectionOfTravel>
<Description>Marathon on HWY-49 Eastbound near Township Road 720. </Description>
<Reported>1697720880</Reported>
<LastUpdated>1697720526</LastUpdated>
<StartDate>1697720880</StartDate>
<PlannedEndDate/>
<LanesAffected>No Data</LanesAffected>
<Latitude>55.222896</Latitude>
<Longitude>-117.231872</Longitude>
<LatitudeSecondary>0</LatitudeSecondary>
<LongitudeSecondary>0</LongitudeSecondary>
<EventType>specialEvents</EventType>
<IsFullClosure>false</IsFullClosure>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<DetourPolyline/>
<DetourInstructions/>
<Recurrence>
<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b>
<br/>Active 24 hours a day
<br/>
<br/>
</Recurrence>
<RecurrenceSchedules>
<Schedule>
<StartDate>10/19/2023 7:08:00 AM-06:00:00</StartDate>
<EndDate/>
<Times>
<Schedule>
<StartTime>00:00:00-06:00:00</StartTime>
<EndTime>23:59:59-06:00:00</EndTime>
</Schedule>
</Times>
<DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek>
</Schedule>
</RecurrenceSchedules>
<EventSubType>marathon</EventSubType>
<EncodedPolyline/>
<Details/>
</Event>
<Event>
<ID>ERS--4878</ID>
<Organization>ERS</Organization>
<RoadwayName>KKK</RoadwayName>
<DirectionOfTravel>Westbound</DirectionOfTravel>
<Description>Parade on KKK Westbound from 400 m East of GGG to 530 m West of SSS . All Lanes Blocked. </Description>
<Reported>1697654280</Reported>
<LastUpdated>1697730172</LastUpdated>
<StartDate>1697654280</StartDate>
<PlannedEndDate/>
<LanesAffected>All lanes blocked</LanesAffected>
<Latitude>53.26511</Latitude>
<Longitude>-113.580516</Longitude>
<LatitudeSecondary>53.265103</LatitudeSecondary>
<LongitudeSecondary>-113.584475</LongitudeSecondary>
<EventType>specialEvents</EventType>
<IsFullClosure>false</IsFullClosure>
<Restrictions>
<Width/>
<Height/>
<Length/>
<Weight/>
<Speed/>
</Restrictions>
<DetourPolyline>}ibdIfuftT?lJ@vP?^A~BiD@DaD@eBGkBOu@Gs@?_FAgAB[??JYj@k@F]LgCJaJX}DBo@Cm@M[MMGMU_BhCKC|AAfB@pF?|S@hL</DetourPolyline>
<DetourInstructions>Head west on 50 Ave (HWY-39). Go for 369 m. Turn right onto Grant MacEwan Blvd. Go for 94 m. Turn right onto Ravine Vls. Go for 651 m. Turn right onto Bridgeport Xing. Go for 77 m. Turn right onto 50 Ave (HWY-39). Go for 517 m. Arrive at 50 Ave (HWY-39).</DetourInstructions>
<Recurrence>
<b>Mon, Tue, Wed, Thu, Fri, Sat, Sun:</b>
<br/>Active 24 hours a day
<br/>
<br/>
</Recurrence>
<RecurrenceSchedules>
<Schedule>
<StartDate>10/18/2023 12:38:00 PM-06:00:00</StartDate>
<EndDate/>
<Times>
<Schedule>
<StartTime>00:00:00-06:00:00</StartTime>
<EndTime>23:59:59-06:00:00</EndTime>
</Schedule>
</Times>
<DaysOfWeek>Monday Tuesday Wednesday Thursday Friday Saturday Sunday</DaysOfWeek>
</Schedule>
</RecurrenceSchedules>
<EventSubType>parade</EventSubType>
<EncodedPolyline>}ibdIfuftT?lJ@fL</EncodedPolyline>
<Details/>
</Event>
</EventList>