Topic: JS API: Get Car speed With
i want get car current speed but i cant do this. i am trying qx.event.type.GeoPosition but it not works please if anybody knows how to get car speed replay me. thanks...
New account creation is currently unavailable. Existing members can continue reading and joining discussions.
i want get car current speed but i cant do this. i am trying qx.event.type.GeoPosition but it not works please if anybody knows how to get car speed replay me. thanks...
var spec = [{type: "type",
data: "avl_unit",
flags: wialon.item.Item.dataFlag.base|wialon.item.Unit.dataFlag.lastMessage,
mode: 0}];
wialon.core.Session.getInstance().updateDataFlags(spec,function (code) {
if (code != 0) {
alert(wialon.core.Errors.getErrorText(code));
return;
}
var units = wialon.core.Session.getInstance().getItems("avl_unit");
for(var i=0;i <units.length; i++)
if(units[i].getPosition())
alert(units[i].getPosition().s);
});
thanks zuve it works... now i know getPosition.x and y is coordinats s is speed z is latitude and i cant understand what is c and sc?
http://docs.gurtam.com/en/hosting/sdk/w … atest_data