Api session event editor netline move and insert

From Tygron Support wiki
Jump to navigation Jump to search

API Event to Place an existing Node at a new location and insert it in an existing Net Line, potentially splitting the Net Line into two parts. Also specify at what distance the new Nodes are merged with existing Nodes.

Name Importance Type Description Values
0 REQUIRED (NET_NODE Integer ID) Net Node ID
1 REQUIRED (NET_LINE Integer ID) Net Line ID
2 REQUIRED (Point 3D with crs: EPSG:3857) New Node Point
3 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/move_and_insert/?crs=3857&f=JSON&token=API_TOKEN

with content:

[ 36, 33, {
 "type" : "Point",
 "coordinates" : [ 658761.4825104501, 6799369.691527194, -1.1 ]
}, 1.0 ]