-
*api options isnt working, i am not recieving any errors however the time trip changes and split round trips arent comming back in response… … i am using curl PHP
// Use libcurl to connect and communicate
$ch = curl_init(); // Initialize a cURL session
curl_setopt($ch, CURLOPT_URL, ‘https://api.routexl.nl/v2/tour’); // Set the URL
curl_setopt($ch, CURLOPT_HEADER, 0); // No header in the output
curl_setopt($ch, CURLOPT_POST, 1); // Do a regular HTTP POST
curl_setopt($ch, CURLOPT_POSTFIELDS, ‘locations=’ . json_encode($array) . ‘¶meters={“rounds”:“3”,“type”:“car”,“speed”:“15”,“balance”:“10”,“maxroundtime”:“30”}’);// Add the locations
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return the output as a string
curl_setopt($ch, CURLOPT_ENCODING, ‘gzip, deflate’); // Compress
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); // Basic authorization
curl_setopt($ch, CURLOPT_USERPWD, ‘000:000’); // Your credentials
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Unsafe!
my location array is comming fine so i dont think that is needed in here…
i also tryed to test the skipOptimisation=true and it worked as planned however
setting it too false still showed the same route as true. i had to remove that option to get it too optomize.
thanks for ya help in advance