This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:codesamples:resources [05/06/2019 12:41] chdi [Editing POI] |
en:sidebar:remoteapi:codesamples:resources [05/06/2019 13:08] (current) 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":"Gurtam office", | + | "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 77: | Line 77: | ||
</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> |
|