Api session event editor netload import net: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Import Net {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(GeometryCollection with crs: EPSG:3857) |GeometryCollection | |- |1 |REQUIRED |(String or multiple values in array ["a", "b", "c"]) |String[] | |- |2 |REQUIRED |(NetType or multiple values in array [a, b, c]) |NetType[] | |- |3 |REQUIRED |(String or multiple values in array ["a", "b", "c"]) |String[] | |- |4 |REQUIRED |(Floating point number or multiple values in arra..."
 
No edit summary
Line 145: Line 145:
|}
|}
===Example POST===
===Example POST===
Example POST: https://engine.tygron.com/api/session/event/editornetload/import_net/?crs=3857&f=HTML&token=API_TOKEN
Example POST: https://engine.tygron.com/api/session/event/editornetload/import_net/?crs=3857&f=JSON&token=API_TOKEN


with content:  
with content:  
Line 152: Line 152:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799374.502164935 ], [ 658665.7023325876, 6799374.502164935 ], [ 658665.7023325876, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799346.400090302 ], [ 658662.3176329681, 6799346.400090302 ], [ 658662.3176329681, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799418.751396003 ], [ 658694.3244829695, 6799418.751396003 ], [ 658694.3244829695, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799336.324100023 ], [ 658683.5483399868, 6799336.324100023 ], [ 658683.5483399868, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799341.300377342 ], [ 658760.8555939179, 6799341.300377342 ], [ 658760.8555939179, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799308.483638885 ], [ 658757.1996635706, 6799308.483638885 ], [ 658757.1996635706, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "GAS", "SEWER", "SEWER" ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], {
}, [ "Text 1", "Text 2", "Text 3" ], [ "SEWER", "HEAT", "HEAT" ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], {
  "type" : "GeometryCollection",
  "type" : "GeometryCollection",
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799406.864416024 ], [ 658645.7985447575, 6799406.864416024 ], [ 658645.7985447575, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799365.007573414 ], [ 658699.4161496237, 6799365.007573414 ], [ 658699.4161496237, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799378.536476442 ], [ 658747.5263089957, 6799378.536476442 ], [ 658747.5263089957, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799336.808085084 ], [ 658752.6959341824, 6799336.808085084 ], [ 658752.6959341824, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799353.015104927 ], [ 658717.6016014665, 6799353.015104927 ], [ 658717.6016014665, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799443.917289761 ], [ 658782.0619388953, 6799443.917289761 ], [ 658782.0619388953, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "SEWER", "INTERNET", "SEWER" ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], {
}, [ "Text 1", "Text 2", "Text 3" ], [ "INTERNET", "INTERNET", "INTERNET" ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], {
  "type" : "GeometryCollection",
  "type" : "GeometryCollection",
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799330.574749479 ], [ 658695.1674096022, 6799330.574749479 ], [ 658695.1674096022, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799299.552688701 ], [ 658761.8982892901, 6799299.552688701 ], [ 658761.8982892901, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799418.434691162 ], [ 658727.2132388699, 6799418.434691162 ], [ 658727.2132388699, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799376.8636336615 ], [ 658742.20239088, 6799376.8636336615 ], [ 658742.20239088, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799430.3086950965 ], [ 658639.1607005419, 6799430.3086950965 ], [ 658639.1607005419, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799394.560053982 ], [ 658674.2810194353, 6799394.560053982 ], [ 658674.2810194353, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "HEAT", "ELECTRICITY", "ELECTRICITY" ], [ "REQUEST_PLOT_OWNER_APPROVAL", "DEMOLISH_APPROVED", "REQUEST_PLOT_OWNER_APPROVAL" ], [ true, false, true ], [ "Text 1", "Text 2", "Text 3" ], [ 1, 2, 3 ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], 64, 75 ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "SEWER", "INTERNET", "GAS" ], [ "CONSTRUCTION_DENIED", "DEMOLISHING", "CONSTRUCTION_APPROVED" ], [ true, false, true ], [ "Text 1", "Text 2", "Text 3" ], [ 1, 2, 3 ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], 37, 51 ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor netload]]}}
{{article end|seealso=*[[api session event editor netload]]}}


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

Revision as of 08:19, 1 April 2026

API Event to Import Net

Name Importance Type Description Values
0 REQUIRED (GeometryCollection with crs: EPSG:3857) GeometryCollection
1 REQUIRED (String or multiple values in array ["a", "b", "c"]) String[]
2 REQUIRED (NetType or multiple values in array [a, b, c]) NetType[]
3 REQUIRED (String or multiple values in array ["a", "b", "c"]) String[]
4 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0] or matrix [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]) double[][]
5 REQUIRED (GeometryCollection with crs: EPSG:3857) GeometryCollection
6 REQUIRED (String or multiple values in array ["a", "b", "c"]) String[]
7 REQUIRED (NetType or multiple values in array [a, b, c]) NetType[]
8 REQUIRED (String or multiple values in array ["a", "b", "c"]) String[]
9 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0] or matrix [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]) double[][]
10 REQUIRED (GeometryCollection with crs: EPSG:3857) GeometryCollection
11 REQUIRED (String or multiple values in array ["a", "b", "c"]) String[]
12 REQUIRED (NetType or multiple values in array [a, b, c]) NetType[]
13 REQUIRED (TimeState or multiple values in array [a, b, c]) TimeState[]
14 REQUIRED (Boolean or multiple values in array [true, false, true]) Boolean[]
15 REQUIRED (String or multiple values in array ["a", "b", "c"]) String[]
16 REQUIRED (Integer number or multiple values in array [1, 2, 3]) Integer[]
17 REQUIRED (String or multiple values in array ["a", "b", "c"]) String[]
18 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0] or matrix [[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]) double[][]
19 REQUIRED (Floating point number) Double
20 REQUIRED (Floating point number) Double

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Example POST: https://engine.tygron.com/api/session/event/editornetload/import_net/?crs=3857&f=JSON&token=API_TOKEN

with content:

[ {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799346.400090302 ], [ 658662.3176329681, 6799346.400090302 ], [ 658662.3176329681, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799336.324100023 ], [ 658683.5483399868, 6799336.324100023 ], [ 658683.5483399868, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799308.483638885 ], [ 658757.1996635706, 6799308.483638885 ], [ 658757.1996635706, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "SEWER", "HEAT", "HEAT" ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799365.007573414 ], [ 658699.4161496237, 6799365.007573414 ], [ 658699.4161496237, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799336.808085084 ], [ 658752.6959341824, 6799336.808085084 ], [ 658752.6959341824, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799443.917289761 ], [ 658782.0619388953, 6799443.917289761 ], [ 658782.0619388953, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "INTERNET", "INTERNET", "INTERNET" ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], {
 "type" : "GeometryCollection",
 "geometries" : [ {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799299.552688701 ], [ 658761.8982892901, 6799299.552688701 ], [ 658761.8982892901, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799376.8636336615 ], [ 658742.20239088, 6799376.8636336615 ], [ 658742.20239088, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799394.560053982 ], [ 658674.2810194353, 6799394.560053982 ], [ 658674.2810194353, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "SEWER", "INTERNET", "GAS" ], [ "CONSTRUCTION_DENIED", "DEMOLISHING", "CONSTRUCTION_APPROVED" ], [ true, false, true ], [ "Text 1", "Text 2", "Text 3" ], [ 1, 2, 3 ], [ "Text 1", "Text 2", "Text 3" ], [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ], 37, 51 ]