Api session event editor netline add for points
API Event to Connect start and end point with one (or more) Net Line(s) of a specified Net Function. Nodes are created for start and end point. Optionally connection the two points using the road system. Also specify at what distance the new Nodes are merged with existing Nodes.
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (NET_FUNCTION Integer ID or multiple values in array [1, 2, 3]) | Net Function ID | |
| 1 | REQUIRED | (Point 3D with crs: EPSG:3857 or multiple values in array [a, b, c]) | Start Point | |
| 2 | REQUIRED | (Point 3D with crs: EPSG:3857 or multiple values in array [a, b, c]) | End Point | |
| 3 | OPTIONAL | (true, false) | Connect via Roads (false = connect direct between points) | |
| 4 | OPTIONAL | (Floating point number) | Node merge distance (optional, default: 1.0m) |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Example POST: https://engine.tygron.com/api/session/event/editornetline/add_for_points/?crs=3857&f=JSON&token=API_TOKEN
with content:
[ [ 1, 2, 3 ], [ {
"type" : "Point",
"coordinates" : [ 658771.7275609301, 6799416.592930928, -1.68 ]
}, {
"type" : "Point",
"coordinates" : [ 658717.2572846146, 6799348.336033135, -1.35 ]
}, {
"type" : "Point",
"coordinates" : [ 658730.4712558741, 6799403.143546383, -1.49 ]
} ], [ {
"type" : "Point",
"coordinates" : [ 658693.9103282655, 6799343.705687417, -0.8 ]
}, {
"type" : "Point",
"coordinates" : [ 658664.8431645939, 6799342.939106412, -1.04 ]
}, {
"type" : "Point",
"coordinates" : [ 658775.9438182297, 6799332.505816202, -1.13 ]
} ], false, 1.0 ]