Api session items areas: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 68: Line 68:
==Formats==
==Formats==
HTML:  
HTML:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=HTML&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=HTML&token=API_TOKEN&crs=3857</syntaxhighlight>
JSON:  
JSON:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=JSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=JSON&token=API_TOKEN&crs=3857</syntaxhighlight>
GEOJSON:  
GEOJSON:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=GEOJSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=GEOJSON&token=API_TOKEN&crs=3857</syntaxhighlight>
GPKG:  
GPKG:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=GPKG&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=GPKG&token=API_TOKEN&crs=3857</syntaxhighlight>
DXF:  
DXF:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=DXF&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=DXF&token=API_TOKEN&crs=3857</syntaxhighlight>
CSV:  
CSV:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=CSV&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=CSV&token=API_TOKEN&crs=3857</syntaxhighlight>
SSV:  
SSV:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=SSV&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=SSV&token=API_TOKEN&crs=3857</syntaxhighlight>
SMILE:  
SMILE:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=SMILE&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=SMILE&token=API_TOKEN&crs=3857</syntaxhighlight>
ZIPJSON:  
ZIPJSON:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=ZIPJSON&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=ZIPJSON&token=API_TOKEN&crs=3857</syntaxhighlight>
ZIPSMILE:  
ZIPSMILE:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=ZIPSMILE&token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/areas/?f=ZIPSMILE&token=API_TOKEN&crs=3857</syntaxhighlight>
==Api Model Area==
==Api Model Area==
API Model description of Area
API Model description of Area
Line 101: Line 101:
| center
| center
| Point
| Point
| [[#Api Model Point|Point]]
| [[Point]]
|-
|-
| id
| id
Line 117: Line 117:
| polygons
| polygons
| MultiPolygon
| MultiPolygon
| [[#Api Model MultiPolygon|MultiPolygon]]
| [[MultiPolygon]]
|-
|-
| relations
| relations
Line 151: Line 151:
| type
| type
| String
| String
| [[#Api Model MultiPolygon|MultiPolygon]]
| [[MultiPolygon]]
|-
|-
| coordinates
| coordinates
| double[][][][]
| double[][][][]
| array of [[#Api Model Polygon|Polygon]]s; [[#Api Model Polygon|Polygon]] is array of outer and optional inner rings; rings is array of coordinates; coordinates is array of [x,y,(optional) z]
| array of [[Polygon]]s; [[Polygon]] is array of outer and optional inner rings; rings is array of coordinates; coordinates is array of [x,y,(optional) z]
|}
|}


Line 168: Line 168:
| type
| type
| String
| String
| [[#Api Model Point|Point]]
| [[Point]]
|-
|-
| coordinates
| coordinates

Latest revision as of 07:43, 22 June 2026

API Endpoint: /api/session/items/areas/

Edit items with events described at Api session event editor area.

Default Query:

https://engine.tygron.com/api/session/items/areas/?f=JSON&token=API_TOKEN

Example Response:

[ {
  "attributes" : {
    "ACTIVE" : [ 1.0 ],
    "COLOR" : [ -6642027.0 ]
  },
  "center" : {
    "type" : "Point",
    "coordinates" : [ 658758.7539618125, 6799054.6042297175, 44.792 ]
  },
  "id" : 0,
  "maquetteOverride" : null,
  "name" : "Area",
  "polygons" : {
    "type" : "MultiPolygon",
    "coordinates" : [ [ [ [ 658853.0042034745, 6799058.615645016 ], [ 658851.9842460075, 6799066.578391472 ], [ 658850.2918961977, 6799074.429085737 ], [ 658847.94177127, 6799082.106013204 ], [ 658844.9468643129, 6799089.557203418 ], [ 658841.3331615041, 6799096.724189491 ], [ 658837.1234007488, 6799103.561496871 ], [ 658832.3484406329, 6799110.015530561 ], [ 658827.0440121504, 6799116.042439843 ], [ 658821.2474704315, 6799121.598373932 ], [ 658815.0010430146, 6799126.642730138 ], [ 658808.346957438, 6799131.138153902 ], [ 658801.3388101931, 6799135.053786966 ], [ 658794.0220770903, 6799138.36039521 ], [ 658786.4519787569, 6799141.035240881 ], [ 658778.6821116839, 6799143.058834491 ], [ 658770.7676964987, 6799144.414934827 ], [ 658762.7672021004, 6799145.0970452605 ], [ 658754.7390973885, 6799145.0970452605 ], [ 658746.7386029902, 6799144.414934827 ], [ 658738.8241878048, 6799143.058834491 ], [ 658731.0543207319, 6799141.035240881 ], [ 658723.4842223984, 6799138.36039521 ], [ 658716.1674892956, 6799135.053786966 ], [ 658709.1577179146, 6799131.139777972 ], [ 658702.5068806102, 6799126.642730138 ], [ 658696.2588290572, 6799121.598373932 ], [ 658690.4622873383, 6799116.042439843 ], [ 658685.1578588558, 6799110.015530561 ], [ 658680.3828987399, 6799103.561496871 ], [ 658676.1731379846, 6799096.724189491 ], [ 658672.5594351758, 6799089.555579355 ], [ 658669.5661523548, 6799082.106013204 ], [ 658667.214403291, 6799074.429085737 ], [ 658665.5220534812, 6799066.580015526 ], [ 658664.5020960142, 6799058.615645016 ], [ 658664.1626515706, 6799050.59444046 ], [ 658664.5020960142, 6799042.573243854 ], [ 658665.5220534812, 6799034.61052101 ], [ 658667.214403291, 6799026.76148941 ], [ 658669.5661523548, 6799019.0846144315 ], [ 658672.5594351758, 6799011.635113136 ], [ 658676.1731379846, 6799004.464954313 ], [ 658680.3828987399, 6798997.629354677 ], [ 658685.1578588558, 6798991.173786552 ], [ 658690.4622873383, 6798985.14697024 ], [ 658696.2588290572, 6798979.591129807 ], [ 658702.5068806102, 6798974.548489276 ], [ 658709.1577179146, 6798970.051528442 ], [ 658716.1674892956, 6798966.135975195 ], [ 658723.4842223984, 6798962.829437302 ], [ 658731.0543207319, 6798960.154650514 ], [ 658738.8241878048, 6798958.132726663 ], [ 658746.7386029902, 6798956.775033504 ], [ 658754.7390973885, 6798956.09456297 ], [ 658762.7672021004, 6798956.09456297 ], [ 658770.7676964987, 6798956.775033504 ], [ 658778.6821116839, 6798958.132726663 ], [ 658786.4519787569, 6798960.154650514 ], [ 658794.0220770903, 6798962.829437302 ], [ 658801.3388101931, 6798966.135975195 ], [ 658808.3485815742, 6798970.049904404 ], [ 658815.0010430146, 6798974.548489276 ], [ 658821.2474704315, 6798979.591129807 ], [ 658827.0440121504, 6798985.14697024 ], [ 658832.3484406329, 6798991.173786552 ], [ 658837.1234007488, 6798997.629354677 ], [ 658841.3331615041, 6799004.464954313 ], [ 658844.9468643129, 6799011.633489088 ], [ 658847.94177127, 6799019.0846144315 ], [ 658850.2918961977, 6799026.76148941 ], [ 658851.9842460075, 6799034.61052101 ], [ 658853.0042034745, 6799042.573243854 ], [ 658853.3452720542, 6799050.59444046 ], [ 658853.0042034745, 6799058.615645016 ] ] ] ]
  },
  "relations" : null,
  "sourceIDs" : [ 1000001 ],
  "version" : 1
}, {
  "attributes" : {
    "ACTIVE" : [ 1.0 ],
    "COLOR" : [ -1.1156189E7 ],
    "OOPIE" : [ 94.0 ]
  },
  "center" : {
    "type" : "Point",
    "coordinates" : [ 659054.0836208455, 6798899.024563928, 40.502 ]
  },
  "id" : 1,
  "maquetteOverride" : null,
  "name" : "Area (2)",
  "polygons" : {
    "type" : "MultiPolygon",
    "coordinates" : [ [ [ [ 659143.4549576816, 6798911.089440973 ], [ 659142.3732830432, 6798919.068282583 ], [ 659140.5818609316, 6798926.917209755 ], [ 659138.0936844358, 6798934.572884931 ], [ 659134.929867325, 6798941.976842419 ], [ 659131.1147716406, 6798949.067368267 ], [ 659126.6792559683, 6798955.7859964 ], [ 659121.6590513022, 6798962.080756758 ], [ 659116.0947610447, 6798967.899679161 ], [ 659110.0302368703, 6798973.197289515 ], [ 659103.5174511339, 6798977.929737752 ], [ 659096.6051279185, 6798982.0596699575 ], [ 659089.3501119873, 6798985.552980365 ], [ 659081.8124963758, 6798988.382059442 ], [ 659074.0507499833, 6798990.524169922 ], [ 659066.1282141175, 6798991.961446793 ], [ 659058.1098542222, 6798992.682521388 ], [ 659050.0573874689, 6798992.682521388 ], [ 659042.0374034374, 6798991.961446793 ], [ 659034.1181158439, 6798990.524169922 ], [ 659026.3547453153, 6798988.382059442 ], [ 659018.8155055676, 6798985.552980365 ], [ 659011.5621137725, 6798982.0596699575 ], [ 659004.6497905571, 6798977.929737752 ], [ 658998.1353806846, 6798973.197289515 ], [ 658992.0708565102, 6798967.899679161 ], [ 658986.5081903888, 6798962.080756758 ], [ 658981.4879857227, 6798955.7859964 ], [ 658977.0524700504, 6798949.067368267 ], [ 658973.2373743659, 6798941.976842419 ], [ 658970.071933119, 6798934.572884931 ], [ 658967.5837566232, 6798926.917209755 ], [ 658965.7923345118, 6798919.066658555 ], [ 658964.7122840093, 6798911.089440973 ], [ 658964.3501016604, 6798903.045646268 ], [ 658964.7122840093, 6798895.003483584 ], [ 658965.7923345118, 6798887.024665694 ], [ 658967.5837566232, 6798879.175777204 ], [ 658970.071933119, 6798871.518530398 ], [ 658973.2373743659, 6798864.114637359 ], [ 658977.0524700504, 6798857.025809942 ], [ 658981.4879857227, 6798850.30563976 ], [ 658986.5081903888, 6798844.010966325 ], [ 658992.0708565102, 6798838.192132981 ], [ 658998.1353806846, 6798832.8946109805 ], [ 659004.6497905571, 6798828.162247533 ], [ 659011.5621137725, 6798824.034017855 ], [ 659018.8155055676, 6798820.540777152 ], [ 659026.3547453153, 6798817.71175673 ], [ 659034.1181158439, 6798815.569691985 ], [ 659042.0374034374, 6798814.132446433 ], [ 659050.0573874689, 6798813.409763738 ], [ 659058.1098542222, 6798813.409763738 ], [ 659066.1282141175, 6798814.132446433 ], [ 659074.0507499833, 6798815.569691985 ], [ 659081.8124963758, 6798817.71175673 ], [ 659089.3501119873, 6798820.540777152 ], [ 659096.6051279185, 6798824.034017855 ], [ 659103.5174511339, 6798828.162247533 ], [ 659110.0302368703, 6798832.8946109805 ], [ 659116.0947610447, 6798838.192132981 ], [ 659121.6590513022, 6798844.010966325 ], [ 659126.6792559683, 6798850.30563976 ], [ 659131.1147716406, 6798857.025809942 ], [ 659134.929867325, 6798864.113013343 ], [ 659138.0936844358, 6798871.518530398 ], [ 659140.5818609316, 6798879.175777204 ], [ 659142.3732830432, 6798887.024665694 ], [ 659143.4549576816, 6798895.003483584 ], [ 659143.8155158944, 6798903.045646268 ], [ 659143.4549576816, 6798911.089440973 ] ] ] ]
  },
  "relations" : null,
  "sourceIDs" : [ 1000001 ],
  "version" : 3
} ]

Limit Queries

version=100:

https://engine.tygron.com/api/session/items/areas/?version=100&token=API_TOKEN

Pseudo-Mercator:

https://engine.tygron.com/api/session/items/areas/?crs=3857&token=API_TOKEN

Degrees:

https://engine.tygron.com/api/session/items/areas/?crs=4326&token=API_TOKEN

Amersfoort / RD New:

https://engine.tygron.com/api/session/items/areas/?crs=28992&token=API_TOKEN

Local Coordinates:

https://engine.tygron.com/api/session/items/areas/?crs=LOCAL&token=API_TOKEN

bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785:

https://engine.tygron.com/api/session/items/areas/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKEN

FOO:

https://engine.tygron.com/api/session/items/areas-foo/?crs=3857&token=API_TOKEN

Show Queries

max version:

https://engine.tygron.com/api/session/items/areas/version/?token=API_TOKEN

size:

https://engine.tygron.com/api/session/items/areas/size/?token=API_TOKEN

Formats

HTML:

https://engine.tygron.com/api/session/items/areas/?f=HTML&token=API_TOKEN&crs=3857

JSON:

https://engine.tygron.com/api/session/items/areas/?f=JSON&token=API_TOKEN&crs=3857

GEOJSON:

https://engine.tygron.com/api/session/items/areas/?f=GEOJSON&token=API_TOKEN&crs=3857

GPKG:

https://engine.tygron.com/api/session/items/areas/?f=GPKG&token=API_TOKEN&crs=3857

DXF:

https://engine.tygron.com/api/session/items/areas/?f=DXF&token=API_TOKEN&crs=3857

CSV:

https://engine.tygron.com/api/session/items/areas/?f=CSV&token=API_TOKEN&crs=3857

SSV:

https://engine.tygron.com/api/session/items/areas/?f=SSV&token=API_TOKEN&crs=3857

SMILE:

https://engine.tygron.com/api/session/items/areas/?f=SMILE&token=API_TOKEN&crs=3857

ZIPJSON:

https://engine.tygron.com/api/session/items/areas/?f=ZIPJSON&token=API_TOKEN&crs=3857

ZIPSMILE:

https://engine.tygron.com/api/session/items/areas/?f=ZIPSMILE&token=API_TOKEN&crs=3857

Api Model Area

API Model description of Area

Name Type Description
attributes Map<String,double[]>
center Point Point
id int
maquetteOverride Map<String,double[]>
name String
polygons MultiPolygon MultiPolygon
relations Map<Relation,int> Map<Relation,int>
sourceIDs int[] Sources ID
version int

Api Model GeometryCollection

API Model description of GeometryCollection

Name Type Description

Api Model MultiPolygon

API Model description of MultiPolygon

Name Type Description
type String MultiPolygon
coordinates double[][][][] array of Polygons; Polygon is array of outer and optional inner rings; rings is array of coordinates; coordinates is array of [x,y,(optional) z]

Api Model Point

API Model description of Point

Name Type Description
type String Point
coordinates double[] x, y, (optional) z

Api Model Relation

API Enumeration description of Relation

Name Description
OWNER
CONSTRUCTOR
DEMOLISHER
PERMITTER
SENDER
RECEIVER
NETOWNER
BORDER_A
BORDER_B
BUILDING
WEATHER
PARENT
RESULT_PARENT
CONTENT