_getRouteState

(API version 2.0)

WDS_RouteStateItem _getRouteState ( string kodf , string username , string pass , int idcar , int idroute )

Description

This function returns transport status

Parameters

string kodf
Company code
string username
username
string pass
password
int idcar
vehicle identifier
int idroute
transport identifier

Return value

WDS_RouteStateItem
  • string name

    name of transport

  • int idcar

    car identifier

  • string date_from

    date of transport start

  • string date_to

    date of transport end

  • string state

    transport status:

    0 - in planned
    1 - in draft
    2 - sent to driver
    3 - read by driver
    4 - confirmed by driver
    5 - in progress
    6 - completed
    11 - cancelled
    12 - rejected by the driver

  • int stops

    number of stops

  • int stops_completed

    number of completed stops

  • float planned_km

    planned distance in kilometers

  • string edited_by

    last edited by user with identifier

Examples

API version 2.0

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

Test

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

Company code
username
password
vehicle identifier
transport identifier

* Required field