GET Events

Returns all traffic events

Request Information

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

URI Parameters

NameDescriptionTypeAdditional information
format

Valid values are 'xml' or 'json', default 'json'.

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 events 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

double
LongitudeSecondary

double
EventType

The type of event. One of the following: roadwork, closures or accidentsAndIncidents

string

Response Formats

JSON

Sample:
[
  {
    "ID":"ERS--306",
    "Organization":"ERS",
    "RoadwayName":"85 ST SW",
    "DirectionOfTravel":"Northbound",
    "Description":"Minor accident on 85 ST SW Northbound   at     983 m Before   17 AVE SW  ",
    "Reported":1524488940,
    "LastUpdated":1524489695,
    "StartDate":1524488940,
    "PlannedEndDate":null,
    "LanesAffected":"No Data",
    "Latitude":51.046845,
    "Longitude":-114.211074,
    "EventType":"accidentsAndIncidents"
  },
  {
    "ID":"ERS--305",
    "Organization":"ERS",
    "RoadwayName":"85 ST SW",
    "DirectionOfTravel":"Northbound",
    "Description":"Road reconstruction on 85 ST SW Northbound   at     669 m Before   14 AVE SW  ",
    "Reported":1524405060,
    "LastUpdated":1524491514,
    "StartDate":1524405060,
    "PlannedEndDate":1524247620,
    "LanesAffected":"No Data",
    "Latitude":51.051211,
    "Longitude":-114.210889,
    "EventType":"roadwork"
  }
]

XML

Sample:
<EventList>
  <Event>
    <ID>ERS--306</ID>
    <Organization>ERS</Organization>
    <RoadwayName>85 ST SW</RoadwayName>
    <DirectionOfTravel>Northbound</DirectionOfTravel>
    <Description>
      Minor accident on 85 ST SW Northbound at 983 m Before 17 AVE SW
    </Description>
    <Reported>1524488940</Reported>
    <LastUpdated>1524489695</LastUpdated>
    <StartDate>1524488940</StartDate>
    <PlannedEndDate/>
    <LanesAffected>No Data</LanesAffected>
    <Latitude>51.046845</Latitude>
    <Longitude>-114.211074</Longitude>
    <EventType>accidentsAndIncidents</EventType>
  </Event>
  <Event>
    <ID>ERS--305</ID>
    <Organization>ERS</Organization>
    <RoadwayName>85 ST SW</RoadwayName>
    <DirectionOfTravel>Northbound</DirectionOfTravel>
    <Description>
      Road reconstruction on 85 ST SW Northbound at 669 m Before 14 AVE SW
    </Description>
    <Reported>1524405060</Reported>
    <LastUpdated>1524491514</LastUpdated>
    <StartDate>1524405060</StartDate>
    <PlannedEndDate>1524247620</PlannedEndDate>
    <LanesAffected>No Data</LanesAffected>
    <Latitude>51.051211</Latitude>
    <Longitude>-114.210889</Longitude>
    <EventType>roadwork</EventType>
  </Event>
</EventList>