Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sidebar:remoteapi:codesamples:resources [05/06/2019 12:39]
chdi [Editing POI]
en:sidebar:remoteapi:codesamples:resources [05/06/2019 13:08]
chdi [Deleting POI]
Line 46: Line 46:
 </​code>​ </​code>​
  
-===== Editing ​POI =====+===== Editing ​geozone ​=====
  
 Now let's change the name and radius of the new geozone: Now let's change the name and radius of the new geozone:
Line 52: Line 52:
 https://​hst-api.wialon.com/​wialon/​ajax.html?​svc=resource/​update_zone&​ https://​hst-api.wialon.com/​wialon/​ajax.html?​svc=resource/​update_zone&​
  params={  params={
- "​n":"​Madrid",+ "​n":"​Gurtam",
 "​d":"​Autopista M-50, San Fernando de Henares 28830, Madrid, Spain",​ "​d":"​Autopista M-50, San Fernando de Henares 28830, Madrid, Spain",​
 "​t":​3,​ "​t":​3,​
-"​w":​10000,+"​w":​5000,
 "​f":​112,​ "​f":​112,​
 "​c":​2568583984,​ "​c":​2568583984,​
Line 73: Line 73:
 <code javascript>​ <code javascript>​
 [1, { [1, {
-    "​id": ​1, +    ​[8,​{"​n":"​Gurtam","​d":"​Autopista M-50, San Fernando de Henares 28830, Madrid, Spain",​"​id":​8,"f":112,"t":3,"w":5000,"​e":​19652,"​c":​2568583984,"​i":​4294967295,"​libId":​0,"​path":"","​b":​{"​min_x":​-3.83305691988,"min_y":40.3252262094,"max_x":-3.59741308012,"max_y":40.5053197906,"cen_x":​-3.715235,"​cen_y":​40.415273},"​ct":​1559737413,"​mt":1559737413}]
-    ​"n": "gurtam_office", +
-    ​"y": ​53.9106993703, +
-    ​"x": ​27.5166433228, +
-    ​"t": ​0, +
-    ​"i": ​6515, +
-    ​"e": ​50676+
 }] }]
 </​code>​ </​code>​
  
-You can check how changes have been applied by making the request [[../​apiref/​resource/​get_poi_data|get_poi_data]].+===== Deleting geozone =====
  
-===== Deleting POI ===== +To delete a geozone, use the request resource/update_geozone:
- +
-To delete a POI, use the request ​[[../​apiref/​resource/update_poi|update_poi]]:+
 <​code>​ <​code>​
-https://​hst-api.wialon.com/​wialon/​ajax.html?​svc=resource/​update_poi&+https://​hst-api.wialon.com/​wialon/​ajax.html?​svc=resource/​update_geozone&
  params={  params={
- "​itemId":​50936+ "​itemId":​37
- "​id":​1,+ "​id":​8,
  "​callMode":"​delete"​  "​callMode":"​delete"​
  }&​sid=<​your_sid>​  }&​sid=<​your_sid>​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam