Api session event editor building generate water connection
API Event to Generate Water Connection.
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (FUNCTION Integer ID) | Function | |
| 1 | REQUIRED | (MultiPolygon with crs: EPSG:3857) | Area | |
| 2 | REQUIRED | (Floating point number) | Min Length | |
| 3 | REQUIRED | (Floating point number) | Max Length | |
| 4 | REQUIRED | (Floating point number) | Width | |
| 5 | REQUIRED | (Floating point number) | Large Road Area | |
| 6 | REQUIRED | (Floating point number) | Straight Distance | |
| 7 | REQUIRED | (Floating point number) | Max Height Difference | |
| 8 | REQUIRED | (Floating point number) | Ignore Upstream | |
| 9 | REQUIRED | (true, false) | Include Water Bodies | true or false |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Integer (Amount of generated Objects) |
| 300-600 | Codes Overview |
Example POST
Example POST: https://engine.tygron.com/api/session/event/editorbuilding/generate_water_connection/?crs=3857&f=HTML&token=API_TOKEN
with content:
[ 12, {
"type" : "MultiPolygon",
"coordinates" : [ [ [ [ 657384.7571861652, 6801356.7198541 ], [ 657384.7571861652, 6801298.502270633 ], [ 657517.4817974309, 6801298.502270633 ], [ 657517.4817974309, 6801356.7198541 ], [ 657384.7571861652, 6801356.7198541 ] ] ] ]
}, 80, 66, 35, 66, 4, 21, 24, true ]