_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
  • int IdDelivery

    ID delivery

  • int IdRoute

    ID route of delivery

  • string RouteName

    route name

  • int IdCar

    unique vehicle identifier

  • string CarIdentifikator

    number plate

  • string Driver

    driver

  • float FromEw

    latitude beginning of the route

  • float FromEl

    longitude beginning of the route

  • string FromPlace

    from where

  • float ToEw

    latitude end od route

  • float ToEl

    longitude end od route

  • string ToPlace

    where

  • float Weight

    weight

  • float Capacity

    capacity (m3)

  • float Distance

    distance [meters]

  • string DateRoute

    date of delivery

  • string DateStart

    start time

  • string DateEnd

    end time

  • string Sendtime

    time of sending

  • string Note

    note

  • string ReadTime

    Time of reading by the driver

  • string AccTime
  • string ReTime
  • string DeliverTime
  • int StopCount

    Number of stops on the route

  • int IdDriver

    ID driver

  • int IdDriver2

    ID second driver

  • string Driver2

    second driver

  • int IdTrailer

    ID semitrailer

  • string Trailer

    number plate of semitrailer

  • string Customer

    Cusomer

  • string Price

    price

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