_sendRoutePlan

(API version 2.0)

WDS_RoutePlanItem _sendRoutePlan ( string kodf , string username , string pass , int IdCar , string TextXml , int GeocodingOSM )

Description

The function imports the route into navigation in the vehicle, unlike the _sendRoutePlanToCar function, it updates the stops (does not delete the old once and does not insert the new one if same one already exists), pairs it according to PointNo - thats why we recommend using it only if you mark stops by number PointNo. Similarly, it updates actions at stops according type and text.

Categories

Tags

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
int IdCar
unique vehicle identifier
string TextXml
XML - see sample files
int GeocodingOSM
0 = Stop points are in the source xml
1 = Stop points are geocoded by street, city, zip code, state using an open street map

Return value

WDS_RoutePlanItem
  • int idRoute

    idRoute

  • int idDelivery

    idDelivery

  • WDS_RoutePlanStopItem[]

    List of route stops

    • WDS_RoutePlanStopItem
      • int idStop

        idStop

      • int[]

        List of actions

        • int item

Examples

API version 2.0

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

Test

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

Company code
Login username
Login password
unique vehicle identifier
XML - see sample files
0 = Stop points are in the source xml
1 = Stop points are geocoded by street, city, zip code, state using an open street map

* Required field