GET Alerts

Returns all emergency alerts.

Request Information

https://511on.ca/api/v2/get/alerts

URI Parameters

NameDescriptionTypeAdditional 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


NameDescriptionType
Id

A unique identifier.

integer
Message

The alert details.

string
Notes

Additional alert details.

string
StartTime

The start time of the alert in unix time. More information

integer
EndTime

The end time of the alert in unix time. More information

integer
Regions

A list of regions affected. Made up of any number of the following: Central, Eastern, Northeast, Northwest, West

list

Response Formats

JSON

Sample:
[
  {
    "Id":2001,
    "Message":"HWY 6 Northbound - Argyle Street between 6th Line and Braemar Avenue remains closed. ONLY Southbound traffic turning ONTO Argyle Street from Highway 6 will be permitted.",
    "Notes":"Argyle Street between 6th Line and Braemar Avenue remains closed. ONLY Southbound traffic turning ONTO Argyle Street from Highway 6 will be permitted.",
    "StartTime": "1515646800",
    "EndTime": "1517634000",
    "Regions":[
      "Central",
      "Eastern",
      "Northeast",
      "Northwest",
      "West"
    ]
  },
  {
    "Id":2001,
    "Message":"Clairville: The right lane is closed in both directions on 427 at South of Clairville due to flooding. Use caution in the area.",
    "Notes":" 427 is still open but one should expect major delays in affected areas. Use caution in the area.”,
    "StartTime": "1514346800",
    "EndTime": "1517143000",
    "Regions":[
      "West"
    ]
  }
]

XML

Sample:
<AlertsList>
  <Alerts>
    <Id>2001</Id>
    <Message>
      HWY 6 Northbound - Argyle Street between 6th Line and Braemar Avenue remains closed. ONLY Southbound traffic turning ONTO Argyle Street from Highway 6 will be permitted.
    </Message>
    <Notes>
      Argyle Street between 6th Line and Braemar Avenue remains closed. ONLY Southbound traffic turning ONTO Argyle Street from Highway 6 will be permitted.
    </Notes>
    <StartTime>1515646800</StartTime>
    <EndTime>1517634000</EndTime>
    <Regions>
      <Regions>Central</Regions>
      <Regions>Eastern</Regions>
      <Regions>Northeast</Regions>
      <Regions>Northwest</Regions>
      <Regions>West</Regions>
    </Regions>
  </Alerts>
  <Alerts>
    <Id>2143</Id>
    <Message>
      Clairville: The right lane is closed in both directions on 427 at South of Clairville due to flooding. Use caution in the area.
    </Message>
    <Notes>
      427 is still open but one should expect major delays in affected areas. Use caution in the area.
    </Notes>
    <StartTime>1514346800</StartTime>
    <EndTime>1517143000</EndTime>
    <Regions>
      <Regions>West</Regions>
    </Regions>
  </Alerts>
</AlertsList>