_getCarsPosition

(API version 2.0)

WDS_Position _getCarsPosition ( string kodf , string username , string pass , int carid )

Description

Function returns information about current vehicle position.
Returned positions (Zs, Zd, latitude, longitude, etc.) are independent of car log book. This positions are incoming from vehicle periodically as part of state message of the vehicle (STA message).
Parameters Zs, Zd, latidude, longitude, location, location_state, location_city, location_street aren't filled if it is private ride and a user doesn't have a permission to show private rides.

Categories

Parameters

string kodf
company code
string username
user name
string pass
password
int carid
vehicle ID

Return value

WDS_Position
  • int carid

    vehicle ID

  • float Zs

    latitude

  • float Zd

    longitude

  • float latitude

    latitude

  • float longitude

    longitude

  • string positiontime

    time position (GMT)

  • string localpostime

    time position ( local time)

  • int speed

    speed

  • string Location

    Location (value could be empty)

  • string Location_state

    Location, country (value could be empty)

  • string Location_city

    Location, city (value could be empty)

  • string Location_street

    Location, street (value could be empty)

  • string input1

    input 1

  • string input2

    input 2

  • string input3

    input 3

  • string input4

    input 4

  • string ac_dallas

    Dallas logged in

  • float km

    odometer

  • float usedfuel

    consumed fuel

  • float fueltank

    the state of the fuel in the tank (from the end of the last ride)

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_getCarsPosition($kodf, $username, $pass, $carid);

Test

To test the function, enter parameters in form below and press Try it out button.

company code
user name
password
vehicle ID

* Required field