Creating a map
Maps are used to visualize the placement of cameras.
You can upload any image and select cameras from the available options to overlay them on the image, indicating their real-world positions and orientations.
POST/api/v1/mapsHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
imagerequired | binary | Map Image | |||||||
namerequired | string | Map Name | |||||||
camerasrequired | array | Array of cameras with x and y coordinates on the image and rotation angle, these data are needed to render the cameras on the image | |||||||
latituderequired | double | Latitude coordinate of the location plan | |||||||
longituderequired | double | Longitude coordinate of the location plan |
Response | |||||||||
200 | Successful response | ||||||||
JSON
| |||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|