GetCameraStatus Method
GetCameraStatus returns camera status for all cameras in a given region. It can be used to refresh current camera status without the need to retrieve all other camera data.
Syntax
GetCameraStatus(int intRegionID, string strPassword)
Parameters
Name | Type | Description |
---|---|---|
intRegionID | int | Unique region identifier, as returned by other web methods such as GetRegions. |
strPassword | string | Unique id/password supplied to you previously. |
Return Value
Type: XML
Fields for each returned camera will include:
Name | Type | Description |
---|---|---|
CameraID | int | Unique camera identifier. |
DetectedOutOfService | bool | True if the camera is currently detected as out-of-service. |
Example
Request |
---|
http://www.vizzion.com/TrafficCamsService/TrafficCams.asmx/GetCameraStatus?intRegionID=1&strPassword=<password> |
Response |
---|
... <Cameras diffgr:id="Cameras1" msdata:rowOrder="0"> <CameraID>1</CameraID> <DetectedOutOfService>false</DetectedOutOfService> </Cameras> <Cameras diffgr:id="Cameras2" msdata:rowOrder="1"> <CameraID>2</CameraID> <DetectedOutOfService>true</DetectedOutOfService> </Cameras> ... |