FOR OFFICIAL USE ONLY (FOUO) UNCLASSIFIED CONTROLLED INFORMATION (UCI)
UCI/FOUO may be distributed only after permission of the public information officer and the regional records access officer has granted and identified the recipient(s) and use of information. Mark conspicuously each part of an electronically transmitted message that contains UCI/FOUO information.

GET api/GetCameras

Returns all cameras.

Request Information

https://511ny.org/api/getcameras?key={key}&format={format}

URI Parameters

Api Call
NameDescriptionTypeAdditional information
key

Developer Key.

string

Required

format

Valid values are xml or json.

string

Required

Response Information

Resource Description


Api Call
NameDescriptionTypeAdditional information
Latitude

The latitude describing the location. Format: double between -90 and 90.

decimal number

None.

Longitude

The longitude describing the location. Format: double between -180 and 180.

decimal number

None.

ID

A unique identifier.

string

None.

Name

A name assigned to the camera. It will contain a fairly good description of the location where the camera is deployed.

string

None.

DirectionOfTravel

One of the following directions of travel: None, All Directions, Northbound, Eastbound, Southbound, Westbound, Inbound, Outbound, Both Directions.

string

None.

RoadwayName

The roadway name on which this camera is located.

string

None.

Url

The url to fetch the camera image.

string

None.

VideoUrl

The URL to fetch the camera live video stream.

string

None.

Disabled

Boolean value represents whether the camera has disabled or not.

boolean

None.

Blocked

Boolean value represents whether the camera has blocked or not.

boolean

None.

Response Formats

application/xml, text/xml

Sample:
<ArrayOfCamera xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Camera>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
    <ID>sample string 3</ID>
    <Name>sample string 4</Name>
    <DirectionOfTravel>sample string 5</DirectionOfTravel>
    <RoadwayName>sample string 6</RoadwayName>
    <Url>sample string 7</Url>
    <VideoUrl>sample string 8</VideoUrl>
    <Disabled>true</Disabled>
    <Blocked>true</Blocked>
  </Camera>
  <Camera>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
    <ID>sample string 3</ID>
    <Name>sample string 4</Name>
    <DirectionOfTravel>sample string 5</DirectionOfTravel>
    <RoadwayName>sample string 6</RoadwayName>
    <Url>sample string 7</Url>
    <VideoUrl>sample string 8</VideoUrl>
    <Disabled>true</Disabled>
    <Blocked>true</Blocked>
  </Camera>
</ArrayOfCamera>

application/json, text/json

Sample:
[
  {
    "Latitude": 1.1,
    "Longitude": 2.1,
    "ID": "sample string 3",
    "Name": "sample string 4",
    "DirectionOfTravel": "sample string 5",
    "RoadwayName": "sample string 6",
    "Url": "sample string 7",
    "VideoUrl": "sample string 8",
    "Disabled": true,
    "Blocked": true
  },
  {
    "Latitude": 1.1,
    "Longitude": 2.1,
    "ID": "sample string 3",
    "Name": "sample string 4",
    "DirectionOfTravel": "sample string 5",
    "RoadwayName": "sample string 6",
    "Url": "sample string 7",
    "VideoUrl": "sample string 8",
    "Disabled": true,
    "Blocked": true
  }
]