GET Events

Returns all traffic events.

Request Information

https://mass511.com/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 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
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
Severity

Describes the severity of the event with default value of Unknown.

string
EventSubType

A more detailed and descriptive event type. No fixed list of sub types.

string

Response Formats

JSON

Sample:
[
  {
    "ID": "MassERS-136758",
    "Organization": "MassERS",
    "RoadwayName": "RT-9",
    "DirectionOfTravel": "Westbound",
    "Description": "RT-9 Westbound  at Damon Rd",
    "Reported": 1591977600,
    "LastUpdated": 1592230988,
    "StartDate": 1591977600,
    "PlannedEndDate": 1595014200,
    "Latitude": 42.33379,
    "Longitude": -72.62081,
    "LatitudeSecondary": 0.0,
    "LongitudeSecondary": 0.0,
    "EventType": "roadwork",
    "Severity": "Unknown",
    "EventSubType": "Road Construction"
  },
  {
    "ID": "MassERS-137092",
    "Organization": "MassERS",
    "RoadwayName": "I-90",
    "DirectionOfTravel": "Westbound",
    "Description": "I-90 Westbound  0.18 mi. from before Brookfield Rd to 0.47 mi. before Brookfield Rd",
    "Reported": 1593556740,
    "LastUpdated": 1594720365,
    "StartDate": 1593556740,
    "PlannedEndDate": null,
    "Latitude": 42.13529,
    "Longitude": -72.12559,
    "LatitudeSecondary": 42.15499,
    "LongitudeSecondary": -72.16101,
    "EventType": "roadwork",
    "Severity": "Unknown",
    "EventSubType": "Paving Operations"
  }
]

XML

Sample:
<EventList>
    <Event>
        <ID>MassERS-136758</ID>
        <Organization>MassERS</Organization>
        <RoadwayName>RT-9</RoadwayName>
        <DirectionOfTravel>Westbound</DirectionOfTravel>
        <Description>RT-9 Westbound at Damon Rd</Description>
        <Reported>1591977600</Reported>
        <LastUpdated>1592230988</LastUpdated>
        <StartDate>1591977600</StartDate>
        <PlannedEndDate>1595014200</PlannedEndDate>
        <Latitude>42.33379</Latitude>
        <Longitude>-72.62081</Longitude>
        <LatitudeSecondary>0</LatitudeSecondary>
        <LongitudeSecondary>0</LongitudeSecondary>
        <EventType>roadwork</EventType>
        <Severity>Unknown</Severity>
        <EventSubType>Road Construction</EventSubType>
    </Event>
    <Event>
        <ID>MassERS-137092</ID>
        <Organization>MassERS</Organization>
        <RoadwayName>I-90</RoadwayName>
        <DirectionOfTravel>Westbound</DirectionOfTravel>
        <Description>I-90 Westbound 0.18 mi. from before Brookfield Rd to 0.47 mi. before Brookfield Rd</Description>
        <Reported>1593556740</Reported>
        <LastUpdated>1594720365</LastUpdated>
        <StartDate>1593556740</StartDate>
        <PlannedEndDate/>
        <Latitude>42.13529</Latitude>
        <Longitude>-72.12559</Longitude>
        <LatitudeSecondary>42.15499</LatitudeSecondary>
        <LongitudeSecondary>-72.16101</LongitudeSecondary>
        <EventType>roadwork</EventType>
        <Severity>Unknown</Severity>
        <EventSubType>Paving Operations</EventSubType>
    </Event>
</EventList>