Api session event editor netload import net: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 152: Line 152:
  "geometries" : [ {
  "geometries" : [ {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799394.21411588 ], [ 658785.9290069346, 6799394.21411588 ], [ 658785.9290069346, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799380.137858296 ], [ 658710.0493686302, 6799380.137858296 ], [ 658710.0493686302, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799443.676918154 ], [ 658740.3395067804, 6799443.676918154 ], [ 658740.3395067804, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799340.264194016 ], [ 658670.8817025909, 6799340.264194016 ], [ 658670.8817025909, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799438.604754143 ], [ 658655.343592581, 6799438.604754143 ], [ 658655.343592581, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799403.820806246 ], [ 658793.7622153152, 6799403.820806246 ], [ 658793.7622153152, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "HEAT", "SEWER", "GAS" ], [ "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", "SEWER", "GAS" ], [ "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, 6799413.500593707 ], [ 658689.9490603326, 6799413.500593707 ], [ 658689.9490603326, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799425.327490667 ], [ 658757.483887387, 6799425.327490667 ], [ 658757.483887387, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799421.379234627 ], [ 658704.8894882599, 6799421.379234627 ], [ 658704.8894882599, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799432.879692907 ], [ 658661.2651927792, 6799432.879692907 ], [ 658661.2651927792, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799421.052784909 ], [ 658746.460875718, 6799421.052784909 ], [ 658746.460875718, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799381.6255520675 ], [ 658749.1277071842, 6799381.6255520675 ], [ 658749.1277071842, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "ELECTRICITY", "SEWER", "GAS" ], [ "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", "SEWER" ], [ "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, 6799395.596244259 ], [ 658787.787018626, 6799395.596244259 ], [ 658787.787018626, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799456.434488508 ], [ 658717.3985844548, 6799456.434488508 ], [ 658717.3985844548, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799420.966706134 ], [ 658741.542991626, 6799420.966706134 ], [ 658741.542991626, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799454.69341598 ], [ 658755.2393313054, 6799454.69341598 ], [ 658755.2393313054, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  }, {
  }, {
  "type" : "MultiPolygon",
  "type" : "MultiPolygon",
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799326.743475501 ], [ 658771.2646821433, 6799326.743475501 ], [ 658771.2646821433, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799340.847250133 ], [ 658656.3927844977, 6799340.847250133 ], [ 658656.3927844977, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
  } ]
  } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "GAS", "INTERNET", "HEAT" ], [ "REQUEST_DEMOLISH_APPROVAL", "WAITING_FOR_DATE", "REQUEST_CONSTRUCTION_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 ] ], 10, 54 ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "ELECTRICITY", "SEWER", "SEWER" ], [ "NOTHING", "READY", "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 ] ], 54, 91 ]
</pre>
</pre>
{{article end|seealso=*[[api session event editor netload]]
{{article end|seealso=*[[api session event editor netload]]
*[[api session event editor netload]]
*[[api session items netloads]]
}}
}}


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

Revision as of 12:00, 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, 6799380.137858296 ], [ 658710.0493686302, 6799380.137858296 ], [ 658710.0493686302, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799340.264194016 ], [ 658670.8817025909, 6799340.264194016 ], [ 658670.8817025909, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799403.820806246 ], [ 658793.7622153152, 6799403.820806246 ], [ 658793.7622153152, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "INTERNET", "SEWER", "GAS" ], [ "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, 6799425.327490667 ], [ 658757.483887387, 6799425.327490667 ], [ 658757.483887387, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799432.879692907 ], [ 658661.2651927792, 6799432.879692907 ], [ 658661.2651927792, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799381.6255520675 ], [ 658749.1277071842, 6799381.6255520675 ], [ 658749.1277071842, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "SEWER", "HEAT", "SEWER" ], [ "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, 6799456.434488508 ], [ 658717.3985844548, 6799456.434488508 ], [ 658717.3985844548, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799454.69341598 ], [ 658755.2393313054, 6799454.69341598 ], [ 658755.2393313054, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 }, {
 "type" : "MultiPolygon",
 "coordinates" : [ [ [ [ 658636.7618515313, 6799461.8964563515 ], [ 658636.7618515313, 6799340.847250133 ], [ 658656.3927844977, 6799340.847250133 ], [ 658656.3927844977, 6799461.8964563515 ], [ 658636.7618515313, 6799461.8964563515 ] ] ] ]
 } ]
}, [ "Text 1", "Text 2", "Text 3" ], [ "ELECTRICITY", "SEWER", "SEWER" ], [ "NOTHING", "READY", "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 ] ], 54, 91 ]