GET Events
Returns all traffic events.
Request Information
https://511yukon.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. |
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 |
IsFullClosure |
True if all lanes are blocked for this event. |
string |
Details |
Event Details |
string |
Response Formats
JSON
[ { "ID": "ERS--350", "Organization": "ERS", "RoadwayName": "HWY-1", "DirectionOfTravel": "Northbound", "Description": "Accident involving a bus on HWY-1 Northbound near roadway marker 1730. ", "Reported": 1638468637, "LastUpdated": 1638468664, "StartDate": 1638468637, "PlannedEndDate": null, "LanesAffected": "No Data", "Latitude": 61.521725000000007, "Longitude": -139.327457, "LatitudeSecondary": 0.0, "LongitudeSecondary": 0.0, "EventType": "accidentsAndIncidents", "IsFullClosure": false, "Details": "Accident involving a bus on HWY-1 Northbound" }, { "ID": "ERS--348", "Organization": "ERS", "RoadwayName": "HWY-1", "DirectionOfTravel": "Southbound", "Description": "Accident blocking lanes on HWY-1 Southbound near roadway marker 1574. ", "Reported": 1638460411, "LastUpdated": 1638460432, "StartDate": 1638460411, "PlannedEndDate": null, "LanesAffected": "No Data", "Latitude": 60.793635, "Longitude": -137.51403, "LatitudeSecondary": 0.0, "LongitudeSecondary": 0.0, "EventType": "accidentsAndIncidents", "IsFullClosure": false, "Details": "Accident blocking lanes on HWY-1 Southbound" } ]
XML
<EventList> <Event> <ID>ERS--350</ID> <Organization>ERS</Organization> <RoadwayName>HWY-1</RoadwayName> <DirectionOfTravel>Northbound</DirectionOfTravel> <Description>Accident involving a bus on HWY-1 Northbound near roadway marker 1730. </Description> <Reported>1638468637</Reported> <LastUpdated>1638468664</LastUpdated> <StartDate>1638468637</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>61.521725</Latitude> <Longitude>-139.327457</Longitude> <LatitudeSecondary>0</LatitudeSecondary> <LongitudeSecondary>0</LongitudeSecondary> <EventType>accidentsAndIncidents</EventType> <IsFullClosure>false</IsFullClosure> <Details>Accident involving a bus on HWY-1</Details> </Event> <Event> <ID>ERS--348</ID> <Organization>ERS</Organization> <RoadwayName>HWY-1</RoadwayName> <DirectionOfTravel>Southbound</DirectionOfTravel> <Description>Accident blocking lanes on HWY-1 Southbound near roadway marker 1574. </Description> <Reported>1638460411</Reported> <LastUpdated>1638460432</LastUpdated> <StartDate>1638460411</StartDate> <PlannedEndDate/> <LanesAffected>No Data</LanesAffected> <Latitude>60.793635</Latitude> <Longitude>-137.51403</Longitude> <LatitudeSecondary>0</LatitudeSecondary> <LongitudeSecondary>0</LongitudeSecondary> <EventType>accidentsAndIncidents</EventType> <IsFullClosure>false</IsFullClosure> <Details>Accident blocking lanes on HWY-1</Details> </Event> </EventList>