Api session event editor address set point: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
|}
|}
===Example POST===
===Example POST===
Example POST: https://engine.tygron.com/api/session/event/editoraddress/set_point/?crs=3857&f=HTML&token=API_TOKEN
Example POST: https://power.tygron.com/api/session/event/editoraddress/set_point/?crs=3857&f=HTML&token=API_TOKEN


with content:  
with content:  
<pre>[ [ 1, 2, 3 ], [ {
<pre>[ [ 1, 2, 3 ], [ {
  "type" : "Point",
  "type" : "Point",
  "coordinates" : [ 658681.9713038397, 6799379.704218351 ]
  "coordinates" : [ 657430.5588004664, 6801277.179050349 ]
}, {
}, {
  "type" : "Point",
  "type" : "Point",
  "coordinates" : [ 658776.6957932411, 6799442.884341566 ]
  "coordinates" : [ 657461.1305738769, 6801325.512954953 ]
}, {
}, {
  "type" : "Point",
  "type" : "Point",
  "coordinates" : [ 658755.908475376, 6799306.840044472 ]
  "coordinates" : [ 657495.658044628, 6801215.024279368 ]
} ] ]
} ] ]
</pre>
</pre>

Revision as of 13:16, 30 March 2026

API Event to Set the point of an address

Name Importance Type Description Values
0 REQUIRED (ADDRESSE Integer ID or multiple values in array [1, 2, 3]) Address ID
1 REQUIRED (Point with crs: EPSG:3857 or multiple values in array [a, b, c]) Point

Response Codes

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

Example POST

Example POST: https://power.tygron.com/api/session/event/editoraddress/set_point/?crs=3857&f=HTML&token=API_TOKEN

with content:

[ [ 1, 2, 3 ], [ {
 "type" : "Point",
 "coordinates" : [ 657430.5588004664, 6801277.179050349 ]
}, {
 "type" : "Point",
 "coordinates" : [ 657461.1305738769, 6801325.512954953 ]
}, {
 "type" : "Point",
 "coordinates" : [ 657495.658044628, 6801215.024279368 ]
} ] ]