1

SDK questions

Тема: SDK questions

Hey Gurtam,

How I can get all unit details like below

Unit Name items[0][nm]
Unit id items[0][id]
Unit Latitude    items[0][pos][x]
Unit Longtude    items[0][pos][y]
Speed of the Unit items[0][pos][s]
Unit is Off
Unit is Moving
current location of the unit

as i use below API URL but still not able to get all details as you have on the page which are best response value that i can set and get the details same

http://gps.tawasolmap.com/wialon/ajax.htmlparams={"spec":
{"itemsType":"avl_unit","propName":"sys_user_creator","propValueMask":"","sortType":"sys_name","propType":"creatortree"},
"force":1,"flags":1,"from":0,"to":200}}],"flags":0}&sid=0d0458258841aebb5b9a1334cf53ea77

  • SDK questions
2

SDK questions

(22/09/2020 21:21:44 отредактировано cerpas)

Re: SDK questions

Hello for this case use core/search/items whit flags, basic properties + position to eval if the unit is in movement just see the param velocity in position object and maybe get the ignition sensor to make a better evaluation.

https://sdk.wialon.com/wiki/en/sidebar/ … ormat/unit

Regards