_getCarsIDPosition
(API version 2.0)WDS_Position2[] _getCarsIDPosition ( string kodf , string username , string pass [ , string carid_list ] )
Description
Function returns information about current vehicle positions of the vehicle list.
Categories
Parameters
- string kodf
- company code
- string username
- user name
- string pass
- password
- string carid_list
- vehicle ID list separated by commas (e.g. "8,45,214")
An empty string will start a function for all active vehicles.
Return value
-
WDS_Position2
-
int
cd
vehicle ID
-
float
Zs
latitude
-
float
Zd
longitude
-
string
pt
position time (GMT)
-
string
lp
position time (local)
-
int
sd
speed
-
string
LN
place
-
string
i1
input 1
-
string
i2
input 2
-
string
i3
input 3
-
string
i4
input 4
-
int
EE
voltage
- int Hg
- float Fl
- int FW
- int Hb
-
float
Km
odometer
- int LB
- int Wr
- float T1
- float T2
- float T3
- int D1
- int D2
- int D3
- int D4
- int D5
- string st
- int ca
-
int
A1
alarm 1
-
int
A2
alarm 2
-
string
VM
Vehicle Model
-
string
VP
Vehicle producer
-
string
VC
Vehicle code from CAN
-
string
i1s
input 1 description
-
string
i2s
input 2 description
-
string
i3s
input 3 description
-
string
i4s
input 4 description
- int CP
-
string
ac_dallas
dallas ID
-
float
usedfuel
consumed fuel by the flow meter
-
float
altitude
altitude
-
int
destodes
number of meters to the destination (ETA)
-
string
timetodes
time to the destination (ETA)
- int sgarmin
-
float
fearthwidthd
fearthwidth
-
float
fearthlengthd
fearthlength
- string gdatetime
- int tdevice
-
int
num_sms
number of sms
- int swnastav
- int mil
-
string
bdat
date of last generated route (GMT) YYYY-mm-dd hh:mm:ss
-
string
cdat
date of last generated cross boarding (GMT) YYYY-mm-dd hh:mm:ss
-
string
ddat
Date to when all states, cities and streets are generated (GMT) YYYY-mm-dd hh:mm:ss datum do kdy mame dogenerovany nazvy statu, obci a ulic v GMT ve formatu YYYY-mm-dd hh:mm:ss
-
int
cd
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_getCarsIDPosition($kodf, $username, $pass, $carid_list);
Test
To test the function, enter parameters in form below and press Try it out button.