GET Events

Returns all traffic events

Request Information

https://511la.org/api/v2/get/event

URI Parameters

NameDescriptionTypeAdditional information
key

Developer Key

string

Required

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":"17982",
    "Organization":"DOTD",
    "RoadwayName":"Highway 417",
    "DirectionOfTravel":"Eastbound",
    "Description":"Maintenance on HWY 417 Eastbound  between MOODIE DR (IC 134) and WOODROFFE AVE (IC 127). 2 Right Lane(s).",
    "Reported":"1517428634",
    "LastUpdated":"1517428803",
    "StartDate":"1517428634",
    "PlannedEndDate":"1517429103",
    "LanesAffected":"2 Right Lane(s)",
    "Latitude":45.33849,
    "Longitude":-75.841309999999993,
    "EventType":"roadwork"
  },
  {
    "ID":"516864",
    "Organization":"LADOTD",
    "RoadwayName":"Highway 11",
    "DirectionOfTravel":"Northbound",
    "Description":"Other on HWY 11 Northbound  at PROUDFOOT RD-SOUTH HIMSWORTH TWP C 7-8. 1  lane blocked.", 
    "Reported":"1517284800",
    "LastUpdated":"1517413620",
    "StartDate":"1517284800",
    "PlannedEndDate":"",
    "LanesAffected":"1  lane blocked",
    "Latitude":46.042139, 
    "Longitude":-79.341036, 
    "EventType":"accidentsAndIncidents"
  }
]

XML

Sample:
<EventList>
  <Event>
    <ID>17982</ID>
    <Organization>DOTD</Organization>
    <RoadwayName>Highway 417</RoadwayName>
    <DirectionOfTravel>Eastbound</DirectionOfTravel>
    <Description>
      Maintenance on HWY 417 Eastbound between MOODIE DR (IC 134) and WOODROFFE AVE (IC 127). 2 Right Lane(s).
    </Description>
    <Reported>1517428634</Reported>
    <LastUpdated>1517428803</LastUpdated>
    <StartDate>1517428634</StartDate>
    <PlannedEndDate>1517429103</PlannedEndDate>
    <LanesAffected>2 Right Lane(s)</LanesAffected>
    <Latitude>45.33849</Latitude>
    <Longitude>-75.841309999999993</Longitude>
    <EventType>roadwork</EventType>
  </Event>
  <Event>
    <ID>516864</ID>
    <Organization>LADOTD</Organization>
    <RoadwayName>Highway 11</RoadwayName>
    <DirectionOfTravel>Northbound</DirectionOfTravel>
    <Description>
      Other on HWY 11 Northbound at PROUDFOOT RD-SOUTH HIMSWORTH TWP C 7-8. 1 lane blocked.
    </Description>
    <Reported>1517284800</Reported>
    <LastUpdated>1517413620</LastUpdated>
    <StartDate>1517284800</StartDate>
    <PlannedEndDate/>
    <LanesAffected>1 lane blocked</LanesAffected>
    <Latitude>46.042139</Latitude>
    <Longitude>-79.341036</Longitude>
    <EventType>accidentsAndIncidents</EventType>
  </Event>
</EventList>