GET Cameras
Returns all cameras.
Request Information
https://511.gov.pe.ca/api/v2/get/cameras
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 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 |
Response Formats
JSON
[ { "Id":"zjr3kyr1brj--1", "Organization":"IBI Accounts", "RoadwayName":"Peters Rd ", "DirectionOfTravel":"Both Directions", "Latitude":46.393, "Longitude":-63.15003, "Name":"Location Regression", "Url":"https://pei.ibi511.com/map/Cctv/zjr3kyr1brj--1", "Status":"Disabled", "Description":"Regression Testing description "}, { "Id":"RPEAL--2", "Organization":"DTI", "RoadwayName":"Albany Hwy 1 E", "DirectionOfTravel":"Inbound", "Latitude":46.2778, "Longitude":-63.6207, "Name":"Albany Hwy 1 E", "Url":"https://pei.ibi511.com/map/Cctv/RPEAL--2", "Status":"Enabled", "Description":"N/A"} ]
XML
<CamerasList> <Cameras> <Id>zjr3kyr1brj--1</Id> <Organization>IBI Accounts</Organization> <RoadwayName>Peters Rd </RoadwayName> <DirectionOfTravel>Both Directions</DirectionOfTravel> <Latitude>46.393</Latitude> <Longitude>-63.15003</Longitude> <Name>Location Regression</Name> <Url>https://pei.ibi511.com/map/Cctv/zjr3kyr1brj--1</Url> <Status>Disabled</Status> <Description>Regression Testing description </Description> </Cameras> <Cameras> <Id>RPEAL--2</Id> <Organization>DTI</Organization> <RoadwayName>Albany Hwy 1 E</RoadwayName> <DirectionOfTravel>Inbound</DirectionOfTravel> <Latitude>46.2778</Latitude> <Longitude>-63.6207</Longitude> <Name>Albany Hwy 1 E</Name> <Url>https://pei.ibi511.com/map/Cctv/RPEAL--2</Url> <Status>Enabled</Status> <Description>N/A</Description> </Cameras> </CamerasList>