Create a plan
Creating plans
Plans are needed to visualize the location of the cameras. You can upload any image, select among the available cameras and plot them on the image, where they actually stand and in which direction they are facing.
{
"image": "image binary data",
"name": "my card",
"cameras": [
{
"camera_id": 12,
"x": 0.2,
"y": 0.3,
"angle": 50,
"radius": 50.546,
"segment_angle": 80.332
}
],
"latitude": 25.645345244619257,
"longitude": -37.295444497828434
}
POST /api/v1/maps |
Parameters
binary
image, Plan image. Possible formats - jpeg,bmp,png
string
name, Plan name, which must be unique within the current user
int
group_id, ID of the Group belongs to the Map.
array
cameras, An array of cameras with x and y coordinates on the image with a rotation angle angle, and also radius (radius of view) and segment_angle (angle of rotation), this data is needed to draw cameras on the image.
double
latitude, Latitude coordinate of the plan location
double
longitude, Longitude coordinate of the plan location
200 |
Successful response
JSON
|
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|