GET Cameras

Returns all cameras.

Request Information

https://511on.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
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

Views of a camera.

string

Response Formats

JSON

Sample:
[
{
    "Id": 455,
    "Source": "Maintenance - East",
    "Roadway": "Highway 401",
    "Direction": "Unknown",
    "Latitude": 45.010091,
    "Longitude": -74.997313,
    "Location": "Highway 401 East of Rockport Road",
    "Views": [
      {
        "Id": 489,
        "Url": "https://511on.ca/map/Cctv/489",
        "Status": "Enabled",
        "Description": "Looking East"
      }
    ]
  },
  {
    "Id": 456,
    "Source": "Maintenance - East",
    "Roadway": "Highway 401",
    "Direction": "Unknown",
    "Latitude": 44.219803,
    "Longitude": -77.24319,
    "Location": "Highway 401 at Shannonville Road",
    "Views": [
      {
        "Id": 490,
        "Url": "https://511on.ca/map/Cctv/490",
        "Status": "Enabled",
        "Description": "Looking East"
      },
      {
        "Id": 491,
        "Url": "https://on.stage.traveliq.co/map/Cctv/491",
        "Status": "Enabled",
        "Description": "Looking South"
      },
      {
        "Id": 492,
        "Url": "https://on.stage.traveliq.co/map/Cctv/492",
        "Status": "Enabled",
        "Description": "Looking West"
      }
    ]
  },
]

XML

Sample:
<CamerasList>
	<Cameras>
		<Id>455</Id>
		<Source>Maintenance - East</Source>
		<Roadway>Highway 401</Roadway>
		<Direction>Unknown</Direction>
		<Latitude>45.010091</Latitude>
		<Longitude>-74.997313</Longitude>
		<Location>Highway 401 East of Rockport Road</Location>
		<Views>
			<View>
				<Id>489</Id>
				<Url>https://511on.ca/map/Cctv/489</Url>
				<Status>Enabled</Status>
				<Description>Looking East</Description>
			</View>
		</Views>
	</Cameras>
	<Cameras>
		<Id>456</Id>
		<Source>Maintenance - East</Source>
		<Roadway>Highway 401</Roadway>
		<Direction>Unknown</Direction>
		<Latitude>44.219803</Latitude>
		<Longitude>-77.24319</Longitude>
		<Location>Highway 401 at Shannonville Road</Location>
		<Views>
			<View>
				<Id>490</Id>
				<Url>https://511on.ca/map/Cctv/490</Url>
				<Status>Enabled</Status>
				<Description>Looking East</Description>
			</View>
			<View>
				<Id>491</Id>
				<Url>https://on.stage.traveliq.co/map/Cctv/491</Url>
				<Status>Enabled</Status>
				<Description>Looking South</Description>
			</View>
			<View>
				<Id>492</Id>
				<Url>https://on.stage.traveliq.co/map/Cctv/492</Url>
				<Status>Enabled</Status>
				<Description>Looking West</Description>
			</View>
		</Views>
	</Cameras>
</CamerasList>