1

JS API: Get Car speed With

(20/10/2012 14:52:28 отредактировано unitedsecurity)

Тема: 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...

Великий и ужасный Гиоргий Каладзе
2

JS API: Get Car speed With

Re: JS API: Get Car speed With

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);                       
            });

Development Department
Gurtam
3

JS API: Get Car speed With

Re: JS API: Get Car speed With

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?

Великий и ужасный Гиоргий Каладзе
4

JS API: Get Car speed With

Re: JS API: Get Car speed With

http://docs.gurtam.com/en/hosting/sdk/w … atest_data

Development Department
Gurtam