GET Cameras API Documentation
Returns all cameras.
Request Information
https://511.gnb.ca/api/v2/get/cameras
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key |
Developer Key |
string |
Required |
| 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
| Name | Description | Type |
|---|---|---|
| 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 |
One of the following directions where the camera is facing: 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 |
| Location |
The location of the camera. |
string |
| SortOrder |
Given sort order for camera |
integer |
| Views |
Display all camera views. |
object |
Response Formats
[
{
"Id": 3,
"Source": "IBI",
"SourceId": "10",
"Roadway": "Route 148",
"Direction": "Unknown",
"Latitude": 46.1088333,
"Longitude": -66.6144167,
"Location": "Durham Bridge Route 148 S",
"SortOrder": 0,
"Views": [
{
"Id": 600,
"Url": "https://nb.stage.traveliq.co/map/Cctv/600",
"Status": "Enabled",
"Description": ""
},
{
"Id": 601,
"Url": "https://nb.stage.traveliq.co/map/Cctv/601",
"Status": "Enabled",
"Description": "N/A"
}
]
},
{
"Id": 4,
"Source": "IBI",
"SourceId": "11",
"Roadway": "Welsford",
"Direction": "Unknown",
"Latitude": 45.4423,
"Longitude": -66.3301,
"Location": "Eagle Rock Road E",
"SortOrder": 0,
"Views": [
{
"Id": 602,
"Url": "https://nb.stage.traveliq.co/map/Cctv/602",
"Status": "Enabled",
"Description": "N/A"
},
{
"Id": 603,
"Url": "https://nb.stage.traveliq.co/map/Cctv/603",
"Status": "Enabled",
"Description": "N/A"
}
]
}
]
<CamerasList>
<Cameras>
<Id>3</Id>
<Source>IBI</Source>
<SourceId>10</SourceId>
<Roadway>Route 148</Roadway>
<Direction>Unknown</Direction>
<Latitude>46.1088333</Latitude>
<Longitude>-66.6144167</Longitude>
<Location>Durham Bridge Route 148 S</Location>
<SortOrder>0</SortOrder>
<Views>
<View>
<Id>600</Id>
<Url>https://nb.stage.traveliq.co/map/Cctv/600</Url>
<Status>Enabled</Status>
<Description></Description>
</View>
<View>
<Id>601</Id>
<Url>https://nb.stage.traveliq.co/map/Cctv/601</Url>
<Status>Enabled</Status>
<Description>N/A</Description>
</View>
</Views>
</Cameras>
<Cameras>
<Id>4</Id>
<Source>IBI</Source>
<SourceId>11</SourceId>
<Roadway>Welsford</Roadway>
<Direction>Unknown</Direction>
<Latitude>45.4423</Latitude>
<Longitude>-66.3301</Longitude>
<Location>Eagle Rock Road E</Location>
<SortOrder>0</SortOrder>
<Views>
<View>
<Id>602</Id>
<Url>https://nb.stage.traveliq.co/map/Cctv/602</Url>
<Status>Enabled</Status>
<Description>N/A</Description>
</View>
<View>
<Id>603</Id>
<Url>https://nb.stage.traveliq.co/map/Cctv/603</Url>
<Status>Enabled</Status>
<Description>N/A</Description>
</View>
</Views>
</Cameras>
</CamerasList>