_sendRoutePlanToCar2

(API version 2.0)

int _sendRoutePlanToCar2 ( 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.

Files

Categories

Tags

Parameters

string kodf
Company login 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

int

0 - bad login, attempt to update a non-existent transport..
-4 - TextXml parameter did not pass XML validation
-100 failed geocoding by open street map. - order stop number (example -102 the second stop failed geocoding)

Examples

API version 2.0

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

Test

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

Company login 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