Api session event editor address set point: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Set the point of an address {|class=wikitable !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=== {|class=wikitable !Response Code: !Description |- |204 |No Content |- |300-600 |Codes Overview |} ===Example POST=== Example POST: https://engine.tygron.com/api/ses..."
 
No edit summary
Line 36: Line 36:
<pre>[ [ 1, 2, 3 ], [ {
<pre>[ [ 1, 2, 3 ], [ {
  "type" : "Point",
  "type" : "Point",
  "coordinates" : [ 658709.3509901097, 6799375.968744127 ]
  "coordinates" : [ 658700.2948072505, 6799407.756060726 ]
}, {
}, {
  "type" : "Point",
  "type" : "Point",
  "coordinates" : [ 658683.8845361582, 6799304.4802202815 ]
  "coordinates" : [ 658665.2979227003, 6799343.174602687 ]
}, {
}, {
  "type" : "Point",
  "type" : "Point",
  "coordinates" : [ 658665.1014022329, 6799445.533301746 ]
  "coordinates" : [ 658785.0259872664, 6799366.4530373635 ]
} ] ]
} ] ]
</pre>
</pre>

Revision as of 10:00, 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://engine.tygron.com/api/session/event/editoraddress/set_point/?crs=3857&f=HTML&token=API_TOKEN

with content:

[ [ 1, 2, 3 ], [ {
 "type" : "Point",
 "coordinates" : [ 658700.2948072505, 6799407.756060726 ]
}, {
 "type" : "Point",
 "coordinates" : [ 658665.2979227003, 6799343.174602687 ]
}, {
 "type" : "Point",
 "coordinates" : [ 658785.0259872664, 6799366.4530373635 ]
} ] ]