GET Construction
Returns all construction projects.
Request Information
https://511on.ca/api/v2/get/constructionprojects
URI Parameters
Name | Description | Type | Additional 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
Name | Description | Type |
---|---|---|
ID |
A unique identifier. |
integer |
SourceId |
The source id for the construction project. |
string |
Organization |
The name of the organization that provided this construction project. |
string |
RoadwayName |
The roadway affected by this construction project. |
string |
DirectionOfTravel |
The direction of travel affected by this construction project. |
string |
Description |
A summary of the construction project details which often includes a location description, impact on traffic and lane reductions. |
string |
Reported |
The date the construction project was reported in Unix time. More information |
integer |
LastUpdated |
The date the construction project details were last updated in Unix time. More information |
integer |
StartDate |
The start date of the construction project in Unix time. More information |
integer |
PlannedEndDate |
The date the construction project is expected to end in Unix time. More information |
integer |
LanesAffected |
Describes the lane or number of lanes affected by the construction project. 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 construction project. One of the following: roadwork |
string |
IsFullClosure |
All lanes are closed. |
boolean |
Comment |
Extra information about the event |
string |
EncodedPolyline |
A single string storing a series of coordinates. More information |
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 |
LinkId |
The link id on which this construction project occurs. |
string |
Response Formats
JSON
[
{
"ID": 725,
"SourceId": "2023-2025-1373367297",
"Organization": "MTO-constructions",
"RoadwayName": "7",
"DirectionOfTravel": "Both Directions",
"Description": "Expect delays up to 10 minutes.\n Highway 7 Credit River, Silver Creek Bridges\n \n \n May 03, 2024 - May 10, 2024",
"Reported": 1684123200,
"LastUpdated": 1714667654,
"StartDate": 1684123200,
"PlannedEndDate": 1728014400,
"LanesAffected": "No Data",
"Latitude": 43.6472402650575,
"Longitude": -79.8562995620411,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "roadwork",
"IsFullClosure": false,
"Comment": "May 03, 2024 - May 10, 2024",
"EncodedPolyline": "gzkiGz|kfN",
"Recurrence": "",
"RecurrenceSchedules": "",
"LinkId": "1085261716"
},
{
"ID": 727,
"SourceId": "2023-2021-1507959574",
"Organization": "MTO-constructions",
"RoadwayName": "89",
"DirectionOfTravel": "Both Directions",
"Description": "Expect delays up to 10 minutes.\n Industrial Parkway to west of Simcoe Road 50 Adjala-Tosorontio\n \n \n May 03, 2024 - May 10, 2024",
"Reported": 1685678400,
"LastUpdated": 1714667576,
"StartDate": 1685678400,
"PlannedEndDate": 1694750400,
"LanesAffected": "No Data",
"Latitude": 44.1474600873817,
"Longitude": -79.8857371979466,
"LatitudeSecondary": null,
"LongitudeSecondary": null,
"EventType": "roadwork",
"IsFullClosure": false,
"Comment": "May 03, 2024 - May 10, 2024",
"EncodedPolyline": "spmlGztqfNjAbI`@`CtDdVhAjH??lArHHl@d@rCnChQ~Fbd@|Gxg@p@hF",
"Recurrence": "",
"RecurrenceSchedules": "",
"LinkId": "113054907"
}
]
XML
<ConstructionProjectsList>
<ConstructionProjects>
<ID>725</ID>
<SourceId>2023-2025-1373367297</SourceId>
<Organization>MTO-constructions</Organization>
<RoadwayName>7</RoadwayName>
<DirectionOfTravel>Both Directions</DirectionOfTravel>
<Description>Expect delays up to 10 minutes. Highway 7 Credit River, Silver Creek Bridges May 03, 2024 - May 10, 2024</Description>
<Reported>1684123200</Reported>
<LastUpdated>1714667654</LastUpdated>
<StartDate>1684123200</StartDate>
<PlannedEndDate>1728014400</PlannedEndDate>
<LanesAffected>No Data</LanesAffected>
<Latitude>43.6472402650575</Latitude>
<Longitude>-79.8562995620411</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>roadwork</EventType>
<IsFullClosure>false</IsFullClosure>
<Comment>May 03, 2024 - May 10, 2024</Comment>
<EncodedPolyline>gzkiGz|kfN</EncodedPolyline>
<Recurrence/>
<RecurrenceSchedules/>
<LinkId>1085261716</LinkId>
</ConstructionProjects>
<ConstructionProjects>
<ID>727</ID>
<SourceId>2023-2021-1507959574</SourceId>
<Organization>MTO-constructions</Organization>
<RoadwayName>89</RoadwayName>
<DirectionOfTravel>Both Directions</DirectionOfTravel>
<Description>Expect delays up to 10 minutes. Industrial Parkway to west of Simcoe Road 50 Adjala-Tosorontio May 03, 2024 - May 10, 2024</Description>
<Reported>1685678400</Reported>
<LastUpdated>1714667576</LastUpdated>
<StartDate>1685678400</StartDate>
<PlannedEndDate>1694750400</PlannedEndDate>
<LanesAffected>No Data</LanesAffected>
<Latitude>44.1474600873817</Latitude>
<Longitude>-79.8857371979466</Longitude>
<LatitudeSecondary/>
<LongitudeSecondary/>
<EventType>roadwork</EventType>
<IsFullClosure>false</IsFullClosure>
<Comment>May 03, 2024 - May 10, 2024</Comment>
<EncodedPolyline>spmlGztqfNjAbI`@`CtDdVhAjH??lArHHl@d@rCnChQ~Fbd@|Gxg@p@hF</EncodedPolyline>
<Recurrence/>
<RecurrenceSchedules/>
<LinkId>113054907</LinkId>
</ConstructionProjects>
</ConstructionProjectsList>