GET Events
Returns all traffic events.
Request Information
https://www.manitoba511.ca/api/v2/get/event
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
Developer Key |
string |
Required |
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 |
SourceId |
The source id of the event. |
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 |
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 |
Comment |
Extra information about the event |
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 |
Response Formats
JSON
[
{
"ID": 1,
"SourceId": "18",
"Organization": "ERS",
"RoadwayName": "HWY-1",
"DirectionOfTravel": "East",
"Description": "Flooding on HWY-1 Eastbound at Third Creek. All Lanes Closed. Width Restriction: 1m Height Restriction: 2m Length Restriction: 3m Weight Restriction: 40kg Speed Restriction: 20km/h Activities: Caution, Chemical spill, Debris on road, Detour, Detour in effect, Emergency vehicle only, Flood preparation in progress, Impassable, Local Traffic Only, No heavy truck traffic allowed, No overweight loads allowed, No overwidth loads allowed, One lane traffic, Reduce speed as posted, Rough road, Signed and marked, Soft and muddy, Two way traffic, Various locations, Washout, Watch for equipment & persons working, Water on road. Visibility: Fair. Expect Delays: Up to 3 hours",
"Reported": 1663800180,
"LastUpdated": 1683302602,
"StartDate": 1663800180,
"PlannedEndDate": null,
"LanesAffected": "All lanes closed",
"Latitude": 49.8794252795842,
"Longitude": -97.4453992959416,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "closures",
"EventSubType": "Flooding",
"IsFullClosure": true,
"Severity": "None",
"Comment": null,
"EncodedPolyline": null,
"Restrictions": {
"Width": 1,
"Height": 2,
"Length": 3,
"Weight": 40,
"Speed": 20
},
"DetourPolyline": "oamoHvhwqQ`F_rANcE`AwV\\_Jh@eNNcEVwIDqBHgFDaD@uD@gC@iB?a@@uABgA@w@BcAhALz@JMdCoJfgCCnC",
"DetourInstructions": [
"Head toward Gaol Rd on Portage Ave (HWY-1). Go for 2.3 km.",
"Turn right toward Portage Ave. Go for 75 m.",
"Turn right onto Portage Ave. Go for 1.7 km.",
"Arrive at Portage Ave. Your destination is on the left."
],
"Recurrence": "",
"RecurrenceSchedules": ""
},
{
"ID": 2,
"SourceId": "19",
"Organization": "ERS",
"RoadwayName": "HWY-10A",
"DirectionOfTravel": "North",
"Description": "Motor Vehicle Collision on HWY-10A Northbound near Jct Highway 275. All Lanes Closed. Width Restriction: 10m Height Restriction: 20m Length Restriction: 30m Weight Restriction: 40kg Speed Restriction: 50km/h Activities: Caution, One lane traffic, Water on road. Visibility: Poor. Expect Delays: Up to 3 hours ",
"Reported": 1663800300,
"LastUpdated": 1666383691,
"StartDate": 1663800300,
"PlannedEndDate": null,
"LanesAffected": "All lanes closed",
"Latitude": 52.1118362627781,
"Longitude": -101.273948521162,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "closures",
"EventSubType": "Motor Vehicle Collision",
"IsFullClosure": true,
"Severity": "None",
"Comment": "this is MB public details",
"EncodedPolyline": null,
"Restrictions": {
"Width": 10,
"Height": 20,
"Length": 30,
"Weight": 40,
"Speed": 50
},
"DetourPolyline": "",
"DetourInstructions": "",
"Recurrence": "",
"RecurrenceSchedules": ""
}
]
XML
<EventList>
<Event>
<ID>1</ID>
<SourceId>18</SourceId>
<Organization>ERS</Organization>
<RoadwayName>HWY-1</RoadwayName>
<DirectionOfTravel>East</DirectionOfTravel>
<Description>Flooding on HWY-1 Eastbound at Third Creek. All Lanes Closed. Width Restriction: 1m Height Restriction: 2m Length Restriction: 3m Weight Restriction: 40kg Speed Restriction: 20km/h Activities: Caution, Chemical spill, Debris on road, Detour, Detour in effect, Emergency vehicle only, Flood preparation in progress, Impassable, Local Traffic Only, No heavy truck traffic allowed, No overweight loads allowed, No overwidth loads allowed, One lane traffic, Reduce speed as posted, Rough road, Signed and marked, Soft and muddy, Two way traffic, Various locations, Washout, Watch for equipment & persons working, Water on road. Visibility: Fair. Expect Delays: Up to 3 hours</Description>
<Reported>1663800180</Reported>
<LastUpdated>1683302602</LastUpdated>
<StartDate>1663800180</StartDate>
<PlannedEndDate/>
<LanesAffected>All lanes closed</LanesAffected>
<Latitude>49.8794252795842</Latitude>
<Longitude>-97.4453992959416</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>closures</EventType>
<EventSubType>Flooding</EventSubType>
<IsFullClosure>true</IsFullClosure>
<Severity>None</Severity>
<Comment/>
<EncodedPolyline/>
<Restrictions>
<Width>1.00</Width>
<Height>2.00</Height>
<Length>3.00</Length>
<Weight>40.00</Weight>
<Speed>20.00</Speed>
</Restrictions>
<DetourPolyline>oamoHvhwqQ`F_rANcE`AwV\_Jh@eNNcEVwIDqBHgFDaD@uD@gC@iB?a@@uABgA@w@BcAhALz@JMdCoJfgCCnC</DetourPolyline>
<DetourInstructions>Head toward Gaol Rd on Portage Ave (HWY-1). Go for 2.3 km. Turn right toward Portage Ave. Go for 75 m. Turn right onto Portage Ave. Go for 1.7 km. Arrive at Portage Ave. Your destination is on the left.</DetourInstructions>
<Recurrence/>
<RecurrenceSchedules/>
</Event>
<Event>
<ID>2</ID>
<SourceId>19</SourceId>
<Organization>ERS</Organization>
<RoadwayName>HWY-10A</RoadwayName>
<DirectionOfTravel>North</DirectionOfTravel>
<Description>Motor Vehicle Collision on HWY-10A Northbound near Jct Highway 275. All Lanes Closed. Width Restriction: 10m Height Restriction: 20m Length Restriction: 30m Weight Restriction: 40kg Speed Restriction: 50km/h Activities: Caution, One lane traffic, Water on road. Visibility: Poor. Expect Delays: Up to 3 hours </Description>
<Reported>1663800300</Reported>
<LastUpdated>1666383691</LastUpdated>
<StartDate>1663800300</StartDate>
<PlannedEndDate/>
<LanesAffected>All lanes closed</LanesAffected>
<Latitude>52.1118362627781</Latitude>
<Longitude>-101.273948521162</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>closures</EventType>
<EventSubType>Motor Vehicle Collision</EventSubType>
<IsFullClosure>true</IsFullClosure>
<Severity>None</Severity>
<Comment>this is MB public details</Comment>
<EncodedPolyline/>
<Restrictions>
<Width>10.00</Width>
<Height>20.00</Height>
<Length>30.00</Length>
<Weight>40.00</Weight>
<Speed>50.00</Speed>
</Restrictions>
<DetourPolyline/>
<DetourInstructions/>
<Recurrence/>
<RecurrenceSchedules/>
</Event>
</EventList>