GET Cameras
Returns all cameras.
Request Information
https://511on.ca/api/v2/get/cameras
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. |
string |
Organization |
The name of the organization that provided this camera. |
string |
RoadwayName |
The roadway on which this camera is located. |
string |
DirectionOfTravel |
One of the following directions of travel: None, All Directions, Northbound, Eastbound, Southbound, Westbound, Inbound, Outbound, Both Directions. |
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 |
Name |
A name assigned to the camera. It will contain a fairly good description of the location where the camera is deployed. |
string |
Url |
The URL to fetch the camera image. |
string |
Status |
The status of the camera. |
string |
Description |
Additional information about a camera. |
string |
CityName |
The name of the city where the camera is located. |
string |
Response Formats
JSON
[
{
"Id": "31dbwlph0yi--1",
"Organization": "RWIS",
"RoadwayName": "Chesterton",
"DirectionOfTravel": "Unknown",
"Latitude": 45.352304,
"Longitude": -75.724945,
"Name": "English location",
"Url": "https://511on.ca/map/Cctv/31dbwlph0yi--1",
"Status": "Disabled",
"Description": "French Location",
"CityName": ""
},
{
"Id": "600001-0-0--1",
"Organization": "RWIS",
"RoadwayName": "HWY 400",
"DirectionOfTravel": "Unknown",
"Latitude": 45.33142,
"Longitude": -79.96399,
"Name": "Highway 400 at Highway 518",
"Url": "https://511on.ca/map/Cctv/600001-0-0--1",
"Status": "Enabled",
"Description": "Hwy 400 at Highway 518",
"CityName": ""
}
]
XML
<CamerasList>
<Cameras>
<Id>31dbwlph0yi--1</Id>
<Organization>RWIS</Organization>
<RoadwayName>Chesterton</RoadwayName>
<DirectionOfTravel>Unknown</DirectionOfTravel>
<Latitude>45.352304</Latitude>
<Longitude>-75.724945</Longitude>
<Name>English location</Name>
<Url>https://511on.ca/map/Cctv/31dbwlph0yi--1</Url>
<Status>Disabled</Status>
<Description>French Location</Description>
<CityName/>
</Cameras>
<Cameras>
<Id>600001-0-0--1</Id>
<Organization>RWIS</Organization>
<RoadwayName>HWY 400</RoadwayName>
<DirectionOfTravel>Unknown</DirectionOfTravel>
<Latitude>45.33142</Latitude>
<Longitude>-79.96399</Longitude>
<Name>Highway 400 at Highway 518</Name>
<Url>https://511on.ca/map/Cctv/600001-0-0--1</Url>
<Status>Enabled</Status>
<Description>Hwy 400 at Highway 518</Description>
<CityName/>
</Cameras>
</CamerasList>