Api session items netnodes: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Manual revert |
||
| (35 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API Endpoint: /api/session/items/netnodes/ | |||
Edit items with events described at [[Api session event editor netnode]]. | |||
Default Query: | Default Query: | ||
| Line 16: | Line 16: | ||
}, | }, | ||
"sourceIDs" : [ ], | "sourceIDs" : [ ], | ||
"version" : | "version" : 1 | ||
}, { | }, { | ||
"connectedLineIDs" : [ 0, 12, 123 ], | "connectedLineIDs" : [ 0, 12, 123 ], | ||
| Line 27: | Line 27: | ||
}, | }, | ||
"sourceIDs" : [ ], | "sourceIDs" : [ ], | ||
"version" : | "version" : 2 | ||
} ]</syntaxhighlight> | } ]</syntaxhighlight> | ||
==Limit Queries== | ==Limit Queries== | ||
version=100: | version=100: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?version=100&token=API_TOKEN</syntaxhighlight> | ||
Pseudo-Mercator: | Pseudo-Mercator: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
Degrees: | Degrees: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?crs=4326&token=API_TOKEN</syntaxhighlight> | ||
Amersfoort / RD New: | Amersfoort / RD New: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?crs=28992&token=API_TOKEN</syntaxhighlight> | ||
Local Coordinates: | Local Coordinates: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?crs=LOCAL&token=API_TOKEN</syntaxhighlight> | ||
bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785: | bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKEN</syntaxhighlight> | ||
FOO: | FOO: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/net_nodes-foo/?crs=3857&token=API_TOKEN</syntaxhighlight> | ||
== | ==Get Queries== | ||
attributes: | |||
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/attributes/?token=API_TOKEN</syntaxhighlight> | |||
max version: | max version: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/version/?token=API_TOKEN</syntaxhighlight> | ||
count: | |||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/count/?token=API_TOKEN</syntaxhighlight> | ||
==Formats== | ==Formats== | ||
HTML: | HTML: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=HTML&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
JSON: | JSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=JSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GEOJSON: | GEOJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=GEOJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
GPKG: | GPKG: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=GPKG&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
DXF: | DXF: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=DXF&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
CSV: | CSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=CSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SSV: | SSV: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=SSV&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
SMILE: | SMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=SMILE&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPJSON: | ZIPJSON: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=ZIPJSON&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
ZIPSMILE: | ZIPSMILE: | ||
< | <syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/netnodes/?f=ZIPSMILE&token=API_TOKEN&crs=3857</syntaxhighlight> | ||
==Api Model NetNode== | |||
API Model description of NetNode | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| connectedLineIDs | |||
| int<nowiki>[]</nowiki> | |||
| | |||
|- | |||
| id | |||
| int | |||
| | |||
|- | |||
| loadIDs | |||
| int<nowiki>[]</nowiki> | |||
| | |||
|- | |||
| name | |||
| String | |||
| | |||
|- | |||
| point | |||
| Point | |||
| [[Point]] | |||
|- | |||
| sourceIDs | |||
| int<nowiki>[]</nowiki> | |||
| [[Source]]s ID | |||
|- | |||
| version | |||
| int | |||
| | |||
|} | |||
==Api Model Point== | |||
API Model description of Point | |||
{|class=wikitable | |||
!Name | |||
!Type | |||
!Description | |||
|- | |||
| type | |||
| String | |||
| [[Point]] | |||
|- | |||
| coordinates | |||
| double[] | |||
| x, y, (optional) z | |||
|} | |||
{{article end|seealso=*[[Api Content Items]] | {{article end|seealso=*[[Api Content Items]] | ||
*[[Api session event editor ]] | *[[Api session event editor netnode]] | ||
}} | }} | ||
[[Category:API]] | [[Category:API]] | ||
[[Category:Items]] | |||
Latest revision as of 07:06, 14 July 2026
API Endpoint: /api/session/items/netnodes/
Edit items with events described at Api session event editor netnode.
Default Query:
https://engine.tygron.com/api/session/items/netnodes/?f=JSON&token=API_TOKENExample Response:
[ {
"connectedLineIDs" : [ 0 ],
"id" : 0,
"loadIDs" : [ 0 ],
"name" : "NetNode 0",
"point" : {
"type" : "Point",
"coordinates" : [ 659045.3750031103, 6798911.888461599, 47.75 ]
},
"sourceIDs" : [ ],
"version" : 1
}, {
"connectedLineIDs" : [ 0, 12, 123 ],
"id" : 1,
"loadIDs" : [ ],
"name" : "NetNode 1",
"point" : {
"type" : "Point",
"coordinates" : [ 659077.8577249872, 6798911.888461599, 39.432 ]
},
"sourceIDs" : [ ],
"version" : 2
} ]Limit Queries
version=100:
https://engine.tygron.com/api/session/items/netnodes/?version=100&token=API_TOKENPseudo-Mercator:
https://engine.tygron.com/api/session/items/netnodes/?crs=3857&token=API_TOKENDegrees:
https://engine.tygron.com/api/session/items/netnodes/?crs=4326&token=API_TOKENAmersfoort / RD New:
https://engine.tygron.com/api/session/items/netnodes/?crs=28992&token=API_TOKENLocal Coordinates:
https://engine.tygron.com/api/session/items/netnodes/?crs=LOCAL&token=API_TOKENbbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785:
https://engine.tygron.com/api/session/items/netnodes/?crs=3857&bbox=658636.7618515313,6798649.869141218,659042.7958749933,6799055.882798785&token=API_TOKENFOO:
https://engine.tygron.com/api/session/items/net_nodes-foo/?crs=3857&token=API_TOKENGet Queries
attributes:
https://engine.tygron.com/api/session/items/netnodes/attributes/?token=API_TOKENmax version:
https://engine.tygron.com/api/session/items/netnodes/version/?token=API_TOKENcount:
https://engine.tygron.com/api/session/items/netnodes/count/?token=API_TOKENFormats
HTML:
https://engine.tygron.com/api/session/items/netnodes/?f=HTML&token=API_TOKEN&crs=3857JSON:
https://engine.tygron.com/api/session/items/netnodes/?f=JSON&token=API_TOKEN&crs=3857GEOJSON:
https://engine.tygron.com/api/session/items/netnodes/?f=GEOJSON&token=API_TOKEN&crs=3857GPKG:
https://engine.tygron.com/api/session/items/netnodes/?f=GPKG&token=API_TOKEN&crs=3857DXF:
https://engine.tygron.com/api/session/items/netnodes/?f=DXF&token=API_TOKEN&crs=3857CSV:
https://engine.tygron.com/api/session/items/netnodes/?f=CSV&token=API_TOKEN&crs=3857SSV:
https://engine.tygron.com/api/session/items/netnodes/?f=SSV&token=API_TOKEN&crs=3857SMILE:
https://engine.tygron.com/api/session/items/netnodes/?f=SMILE&token=API_TOKEN&crs=3857ZIPJSON:
https://engine.tygron.com/api/session/items/netnodes/?f=ZIPJSON&token=API_TOKEN&crs=3857ZIPSMILE:
https://engine.tygron.com/api/session/items/netnodes/?f=ZIPSMILE&token=API_TOKEN&crs=3857Api Model NetNode
API Model description of NetNode
| Name | Type | Description |
|---|---|---|
| connectedLineIDs | int[] | |
| id | int | |
| loadIDs | int[] | |
| name | String | |
| point | Point | Point |
| sourceIDs | int[] | Sources ID |
| version | int |
Api Model Point
API Model description of Point
| Name | Type | Description |
|---|---|---|
| type | String | Point |
| coordinates | double[] | x, y, (optional) z |