Api session event editor netnode set location: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Set Location {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(Enumeration) |Network type |ELECTRICITY, GAS, HEAT, INTERNET or SEWER |- |1 |REQUIRED |(NET_NODE Integer ID) |Net Node ID | |- |2 |REQUIRED |(Point 3D with crs: EPSG:3857) |Location Point | |- |3 |OPTIONAL |(Floating point number) |Node merge distance (optional, default: 1.0m) | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- |204 |No..."
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 43: Line 43:
|}
|}
===Example POST===
===Example POST===
Example POST: https://engine.tygron.com/api/session/event/editornetnode/set_location/?crs=3857&f=HTML&token=API_TOKEN
Example POST: https://engine.tygron.com/api/session/event/editornetnode/set_location/?crs=3857&f=JSON&token=API_TOKEN


with content:  
with content:  
<pre>[ "INTERNET", 81, {
<pre>[ "GAS", 4, {
  "type" : "Point",
  "type" : "Point",
  "coordinates" : [ 658761.6432999234, 6799363.0212789895, -0.78 ]
  "coordinates" : [ 658675.6274282571, 6799358.204151612, -0.12 ]
}, 1.0 ]
}, 1.0 ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor netnode]]}}
{{article end|seealso=*[[Api session event editor netnode]]
*[[Api session items netnodes]]
}}


[[Category:API]]
[[Category:API]]

Latest revision as of 12:09, 1 April 2026

API Event to Set Location

Name Importance Type Description Values
0 REQUIRED (Enumeration) Network type ELECTRICITY, GAS, HEAT, INTERNET or SEWER
1 REQUIRED (NET_NODE Integer ID) Net Node ID
2 REQUIRED (Point 3D with crs: EPSG:3857) Location 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/editornetnode/set_location/?crs=3857&f=JSON&token=API_TOKEN

with content:

[ "GAS", 4, {
 "type" : "Point",
 "coordinates" : [ 658675.6274282571, 6799358.204151612, -0.12 ]
}, 1.0 ]