GET Cameras

Returns all cameras.

Request Information

https://511.alberta.ca/api/v2/get/cameras

URI Parameters

URI Parameters
NameDescriptionTypeAdditional 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


Resource Description
NameDescriptionType
Id

A unique identifier.

integer
Source

The name of the source that provided this camera.

string
SourceId

The source id of the camera.

string
Roadway

The roadway on which this camera is located.

string
Direction

The wind direction at the time of reported maximum wind speed over the last 10 minutes

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
Location

The location of the camera.

string
Views

Display all camera views.

object

Response Formats

JSON

Sample:
[
    {
        "Id": 1,
        "Source": "511 Alberta",
        "SourceId": "1dgkqi3g2n0",
        "Roadway": "Stoney Trail test",
        "Direction": "Unknown",
        "Latitude": 51.106617,
        "Longitude": -114.223475,
        "Location": "Stoney Trail - Nose Hill Drive NW (W of E INT)",
        "Views": [
            {
                "Id": 1367,
                "Url": "https://511.alberta.ca/map/Cctv/1367",
                "Status": "Enabled",
                "Description": "C134"
            }
        ]
    },
    {
        "Id": 2,
        "Source": "QA tester",
        "SourceId": "1pztf1pjc53",
        "Roadway": "test camera 25",
        "Direction": "Unknown",
        "Latitude": 0,
        "Longitude": 0,
        "Location": "test location",
        "Views": [
            {
                "Id": 1368,
                "Url": "https://511.alberta.ca/map/Cctv/1368",
                "Status": "Disabled",
                "Description": "test data"
            }
        ]
    }
]

XML

Sample:
<CamerasList>
	<Cameras>
		<Id>1</Id>
		<Source>511 Alberta</Source>
		<SourceId>1dgkqi3g2n0</SourceId>
		<Roadway>Stoney Trail test</Roadway>
		<Direction>Unknown</Direction>
		<Latitude>51.106617</Latitude>
		<Longitude>-114.223475</Longitude>
		<Location>Stoney Trail - Nose Hill Drive NW (W of E INT)</Location>
		<Views>
			<View>
				<Id>1367</Id>
				<Url>https://511.alberta.ca/map/Cctv/1367</Url>
				<Status>Enabled</Status>
				<Description>C134</Description>
			</View>
		</Views>
	</Cameras>
	<Cameras>
		<Id>2</Id>
		<Source>QA tester</Source>
		<SourceId>1pztf1pjc53</SourceId>
		<Roadway>test camera 25</Roadway>
		<Direction>Unknown</Direction>
		<Latitude>0</Latitude>
		<Longitude>0</Longitude>
		<Location>test location</Location>
		<Views>
			<View>
				<Id>1368</Id>
				<Url>https://511.alberta.ca/map/Cctv/1368</Url>
				<Status>Disabled</Status>
				<Description>test data</Description>
			</View>
		</Views>
	</Cameras>
<CamerasList>