GET Grouped Cameras

Return all group cameras.

Request Information

https://511on.ca/api/v2/get/groupedcameras

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


NameDescriptionType
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
Views

Views of a camera.

string

Response Formats

JSON

Sample:
[
	{
		"Id": "1mvtkw50ixh|1",
		"Organization": "CityOfToronto",
		"RoadwayName": "",
		"DirectionOfTravel": "Toronto Bound",
		"Latitude": 43.8526,
		"Longitude": -79.023693,
		"Views": [
			{
				"Id": "1mvtkw50ixh--1",
				"Name": "N/A",
				"Url": "http://localhost:54134/map/Cctv/1mvtkw50ixh--1",
				"Status": "Disabled",
				"Description": "N/A"
			}
		]
	},
	{
		"Id": "1uap243mm2y|1",
		"Organization": "CityOfToronto",
		"RoadwayName": "HWY 6",
		"DirectionOfTravel": "Unknown",
		"Latitude": 26.07605,
		"Longitude": -80.567897,
		"Views": [
			{
				"Id": "1uap243mm2y--1",
				"Name": "test location",
				"Url": "http://localhost:54134/map/Cctv/1uap243mm2y--1",
				"Status": "Disabled",
				"Description": "test data"
			}
		]
	}
]

XML

Sample:
<GroupedCamerasList>
    <GroupedCameras>
        <Id>1mvtkw50ixh|1</Id>
        <Organization>CityOfToronto</Organization>
        <RoadwayName/>
        <DirectionOfTravel>Toronto Bound</DirectionOfTravel>
        <Latitude>43.8526</Latitude>
        <Longitude>-79.023693</Longitude>
        <Views>
            <View>
                <Id>1mvtkw50ixh--1</Id>
                <Name>N/A</Name>
                <Url>http://localhost:54134/map/Cctv/1mvtkw50ixh--1</Url>
                <Status>Disabled</Status>
                <Description>N/A</Description>
            </View>
        </Views>
    </GroupedCameras>
    <GroupedCameras>
        <Id>1uap243mm2y|1</Id>
        <Organization>CityOfToronto</Organization>
        <RoadwayName>HWY 6</RoadwayName>
        <DirectionOfTravel>Unknown</DirectionOfTravel>
        <Latitude>26.07605</Latitude>
        <Longitude>-80.567897</Longitude>
        <Views>
            <View>
                <Id>1uap243mm2y--1</Id>
                <Name>test location</Name>
                <Url>http://localhost:54134/map/Cctv/1uap243mm2y--1</Url>
                <Status>Disabled</Status>
                <Description>test data</Description>
            </View>
        </Views>
    </GroupedCameras>
</GroupedCamerasList>