Api session event editor building generate rotation angles
Jump to navigation
Jump to search
API Endpoint: editorbuilding/generate_rotation_angles.
Description: Calculation a rotation angle for Building having the identifying attribute polygons, optionally only for specified Building.
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Identifying attribute | |
| 1 | REQUIRED | (String) | Rotation attribute | |
| 2 | OPTIONAL | (BUILDING Integer ID or multiple values in array [1, 2, 3]) | Specific BuildingIDs only (optional) |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Curl example POST:
curl 'https://engine.tygron.com/api/session/event/editorbuilding/generate_rotation_angles/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Identifying attribute", "Rotation attribute", "" ]'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "Identifying attribute", "Rotation attribute", "" ]'
};
fetch("https://engine.tygron.com/api/session/event/editorbuilding/generate_rotation_angles/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));