_editRoute

(API version 2.0)

int _editRoute ( string kodf , string username , string pass , WDS_OptimalRouteItem routeItem )

Description

The function changes the order delivery route, if it does not exist (or RouteItem.IdRoute == 0), inserts a new one.

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
WDS_OptimalRouteItem routeItem
WDS_OptimalRouteItem

Return value

int

IdRoute OK
0 user could not log in
-1 delivery is locked, can not be edited
-2 edit route failed
-3 you must enter valid RouteItem.IdDelivery
-5 The company has not right to Optimize traffic

Examples

API version 2.0

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

Test

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

Company code
Login username
Login password
WDS_OptimalRouteItem routeItem
ID delivery
ID route of delivery
route name
unique vehicle identifier
number plate
driver
latitude beginning of the route
longitude beginning of the route
from where
latitude end od route
longitude end od route
where
weight
capacity (m3)
distance [meters]
date of delivery
start time
end time
time of sending
note
Time of reading by the driver
Number of stops on the route
ID driver
ID second driver
second driver
ID semitrailer
number plate of semitrailer
Cusomer
price
WDS_OptimalRouteItem

* Required field